Skip to content

Implement a servers.url selecting logic in uptime monitoring #164

Description

@newgene

The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata:

self.api_server = api_doc['servers'][0]['url']

We should implement a more flexible logic to pick the "preferred" servers.url entry for the uptime monitoring.

We can use the same logic from the BTE project, documented here:

biothings/biothings_explorer#442

also summarized in:

NCATSTranslator/TranslatorEngineering#71 (comment)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions