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: github.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:0727b0d1-363d-db84-2e1b-75bd30c9023d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 92CC:4D567:422371:57BE5B:698E5837 |
| html-safe-nonce | 8dda0d319c503064ca3c585e8e97d469e0cd39dee6dd88c97ff37bed6d0438f6 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MkNDOjRENTY3OjQyMjM3MTo1N0JFNUI6Njk4RTU4MzciLCJ2aXNpdG9yX2lkIjoiMjg1ODA1MDcwNTczNzc5OTczNSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | b8a78532f76cb191407cbfb6ddbfbee8a9ee797592fb18b0f933ad8722841236 |
| 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 | 0e08b85f0035d49bc4c22868f70a4d30fb8c2a777936895c37e78df095242ddc |
| 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 | 9416d07f3607b074b276ccc81546278f89608a08 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width