feat: add backend status in the landing page GET /#107
Draft
feat: add backend status in the landing page GET /#107
GET /#107Conversation
rename internal core method '_get_collection()' to '_format_collection()' remove label:assets if null
current eodag branch used in this branch does not have the required version
470d4f8 to
02ac624
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Important: this PR uses the branch
dynamic-monitoring-of-collectionsas base. Leaving as draft until this branch is merged. See #108Report 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.Noneis 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 providerpepscause no status info is available for it.