Title: Implement a servers.url selecting logic in uptime monitoring · Issue #164 · SmartAPI/smartAPI · GitHub
Open Graph Title: Implement a servers.url selecting logic in uptime monitoring · Issue #164 · SmartAPI/smartAPI
X Title: Implement a servers.url selecting logic in uptime monitoring · Issue #164 · SmartAPI/smartAPI
Description: The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata: smartAPI/src/utils/monitor.py Line 113 in 9d20791 self.api_server = api_doc['servers'][0]['url'] We should implement a more flex...
Open Graph Description: The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata: smartAPI/src/utils/monitor.py Line 113 in 9d20791 self.api_server = api_doc['servers'][0...
X Description: The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata: smartAPI/src/utils/monitor.py Line 113 in 9d20791 self.api_server = api_doc['servers...
Opengraph URL: https://github.com/SmartAPI/smartAPI/issues/164
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Implement a servers.url selecting logic in uptime monitoring","articleBody":"The current logic in `src/utils/monitor.py` is to pick the first entry from the `servers` block of API metadata:\r\n\r\nhttps://github.com/SmartAPI/smartAPI/blob/9d2079135bed7ef57e2d55d6f8f79bd0e2e92104/src/utils/monitor.py#L113\r\n\r\nWe should implement a more flexible logic to pick the \"preferred\" `servers.url` entry for the uptime monitoring.\r\n\r\nWe can use the same logic from the BTE project, documented here:\r\n\r\nhttps://github.com/biothings/BioThings_Explorer_TRAPI/issues/442\r\n\r\nalso summarized in:\r\n\r\nhttps://github.com/NCATSTranslator/TranslatorArchitecture/issues/71#issuecomment-1110252733","author":{"url":"https://github.com/newgene","@type":"Person","name":"newgene"},"datePublished":"2022-05-04T21:10:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/164/smartAPI/issues/164"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:1dfe7edf-3e4d-cde5-a415-b6291f33318f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | BFA8:653CE:903CE2:C33180:698E3C21 |
| html-safe-nonce | 208baa73551f53d3137060f385b8c7899c3b8ab982d1d4f9529cd55642695a1a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCRkE4OjY1M0NFOjkwM0NFMjpDMzMxODA6Njk4RTNDMjEiLCJ2aXNpdG9yX2lkIjoiMzg1NDg4MTk3OTEzNzY3MDE3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 42121d356a32a9629559591069d87c5679da6041965c6513f7b943947afb9e1a |
| hovercard-subject-tag | issue:1225974523 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/SmartAPI/smartAPI/164/issue_layout |
| twitter:image | https://opengraph.githubassets.com/bc68961a9836740293c2680ce9e7c4f583fdaf92c47c2164691927436ef45f8b/SmartAPI/smartAPI/issues/164 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/bc68961a9836740293c2680ce9e7c4f583fdaf92c47c2164691927436ef45f8b/SmartAPI/smartAPI/issues/164 |
| og:image:alt | The current logic in src/utils/monitor.py is to pick the first entry from the servers block of API metadata: smartAPI/src/utils/monitor.py Line 113 in 9d20791 self.api_server = api_doc['servers'][0... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | newgene |
| hostname | github.com |
| expected-hostname | github.com |
| None | a5632af64f7fed7bff1d6a428d1aca1b94fa7a48f760de2d39d9b1effdbf0082 |
| turbo-cache-control | no-preview |
| go-import | github.com/SmartAPI/smartAPI git https://github.com/SmartAPI/smartAPI.git |
| octolytics-dimension-user_id | 24528940 |
| octolytics-dimension-user_login | SmartAPI |
| octolytics-dimension-repository_id | 35257642 |
| octolytics-dimension-repository_nwo | SmartAPI/smartAPI |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 35257642 |
| octolytics-dimension-repository_network_root_nwo | SmartAPI/smartAPI |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | aa1fa9100f85cd8b602c63c7e337f9151e70024f |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width