mirror of
https://git.ianrenton.com/ian/spothole.git
synced 2025-10-27 08:49:27 +00:00
Starting to implement alerts #17
This commit is contained in:
@@ -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:
|
||||
|
||||
@@ -224,7 +224,7 @@ function loadOptions() {
|
||||
$("#filters-container-2").append(generateFilterCard("DX Continent", "dx_continent", options["continents"]));
|
||||
$("#filters-container-2").append(generateFilterCard("DE Continent", "de_continent", options["continents"]));
|
||||
$("#filters-container-2").append(generateFilterCard("Modes", "mode_type", options["mode_types"]));
|
||||
$("#filters-container-2").append(generateFilterCard("Sources", "source", options["sources"]));
|
||||
$("#filters-container-2").append(generateFilterCard("Sources", "source", options["spot_sources"]));
|
||||
|
||||
// Load filter settings from settings storage
|
||||
loadSettings();
|
||||
Reference in New Issue
Block a user