Skip to content

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

Draft
dalpasso wants to merge 17 commits into
mainfrom
dynamic-monitoring-of-providers
Draft

feat: add backend status in the landing page GET /#107
dalpasso wants to merge 17 commits into
mainfrom
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.
  • successful_collections: number of online collections in the provider;
  • failed_collections: number of offline collections in the provider;
  • total_collections: total number of collections in the provider (online, offline, no status info available).

Note that it's possible that no status information is available for some collection. In such case case successful_collections + failed_collections < total_collections.

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": {
      "description": "WEkEO - ECMWF data",
      "title": "wekeo",
      "status": "online",
      "last_status_check": "2026-05-06T17:46:33Z",
      "successful_collections": 34,
      "failed_collections": 1,
      "total_collections": 37
    }
  }

@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
@dalpasso dalpasso force-pushed the dynamic-monitoring-of-providers branch from 02ac624 to 7e88d40 Compare April 27, 2026 15:29
@dalpasso dalpasso force-pushed the dynamic-monitoring-of-providers branch from 7e88d40 to 1d5fd50 Compare April 28, 2026 13:51
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