Skip to content

feat: add backend status in the landing page GET /#107

Draft
dalpasso wants to merge 12 commits intomainfrom
dynamic-monitoring-of-providers
Draft

feat: add backend status in the landing page GET /#107
dalpasso wants to merge 12 commits intomainfrom
dynamic-monitoring-of-providers

Conversation

@dalpasso
Copy link
Copy Markdown
Collaborator

@dalpasso dalpasso commented Apr 24, 2026

Important: this PR uses the branch dynamic-monitoring-of-collections as base. Leaving as draft until this branch is merged. See #108

Report the status (online/offline) of the backends in the landing page.

A backend is considered as online if the number of collection it provides is above a given threshold (set via setting provider_online_status_threshold).

The following properties will be made available for each backend:

  • status: value "online" or "offline";
  • last_status_check: the most recent status check among all the collections of the provider;
  • last_successful_check: the most recent successful status check among all the collections of the provider. None is all collections are offline.

If no status information is available for all the collections of the provider, then these properties are omitted.

Example of a fragment of the response of GET /. The status is missing from the provider peps cause no status info is available for it.

  "federation": {
    "wekeo_ecmwf": {
      "title": "wekeo",
      "description": "WEkEO - ECMWF data",
      "url": "https://www.wekeo.eu/",
      "status": "online",
      "last_status_check": "2026-04-23T07:24:31Z",
      "last_successful_check": "2026-04-23T07:24:31Z"
    },
    "peps": {
      "title": "peps",
      "description": "The PEPS platform, the French \"mirror site\", redistributes the products of Sentinel satellites,\nS1A, S1B, S2A and S2B, S3A and S3B from COPERNICUS, the European system for the Earth monitoring.\n",
      "url": "https://peps.cnes.fr"
    },
  }

@dalpasso dalpasso self-assigned this Apr 24, 2026
@dalpasso dalpasso force-pushed the dynamic-monitoring-of-providers branch from 470d4f8 to 02ac624 Compare April 24, 2026 14:44
@dalpasso dalpasso marked this pull request as draft April 24, 2026 14:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants