Starting to implement alerts #17

This commit is contained in:
Ian Renton
2025-10-04 18:09:54 +01:00
parent 55893949b8
commit 74153a9d94
29 changed files with 552 additions and 109 deletions

View File

@@ -214,6 +214,10 @@ paths:
type: integer
description: Number of spots currently in the system.
example: 123
"num_alerts":
type: integer
description: Number of alerts currently in the system.
example: 123
"cleanup":
type: object
properties:
@@ -240,11 +244,16 @@ paths:
type: string
description: The last time an API endpoint was accessed on the web server
example: 2025-09-28T20:31:00+00:00
providers:
spot_providers:
type: array
description: An array of all the data providers.
description: An array of all the spot providers.
items:
$ref: '#/components/schemas/ProviderStatus'
$ref: '#/components/schemas/SpotProviderStatus'
alert_providers:
type: array
description: An array of all the alert providers.
items:
$ref: '#/components/schemas/AlertProviderStatus'
/options:
@@ -287,7 +296,7 @@ paths:
example: "POTA"
sources:
type: array
description: An array of all the supported data sources (providers).
description: An array of all the supported data sources.
items:
type: string
example: "Cluster"
@@ -339,10 +348,10 @@ components:
Spot:
type: object
properties:
guid:
type: string
description: Globally unique identifier to distinguish this spot from any others.
example: d8a3f1b6-cb73-464e-b717-54b7004aa04f
id:
type: integer
description: Unique identifier based on a hash of the spot to distinguish this one from any others.
example: 123987609816349182
dx_call:
type: string
description: Callsign of the operator that has been spotted
@@ -578,7 +587,7 @@ components:
description: The ID the source gave it, if any.
example: "GUID-123456"
ProviderStatus:
SpotProviderStatus:
type: object
properties:
name:
@@ -602,6 +611,26 @@ components:
description: The time of the latest spot received by this provider.
example: 2025-09-28T20:31:00+00:00
AlertProviderStatus:
type: object
properties:
name:
type: string
description: The name of the provider.
example: POTA
enabled:
type: boolean
description: Whether the provider is enabled or not.
example: true
status:
type: string
description: The status of the provider.
example: OK
last_updated:
type: string
description: The last time at which this provider received data.
example: 2025-09-28T20:31:00+00:00
Band:
type: object
properties: