5085b62c9c
Resolves #68096 , removing unnecessary scripted metric query from overview page and unifying the Check and Ping types. This simplifies the types in a number of ways, and reduces the total quantity of code to execute the queries for the overview page. It also fixes the Tls and related types which were inconsistent and presented a problem here since they are used by this JS. There are now three stages where before there were four: Find potential matches: where we determine which monitor IDs are eligible for the overview page Refine potential matches: where we determine which ones actually match and return the summary documents for each location to build the MonitorSummary object Get monitor histograms: where we calculate the histograms for each monitor. In the future we might make this a separate API call. This improves the overall code structure, and leaves the test coverage about the same depending on how you look at it. I think we can do more to improve the quality of code / tests here, but this seemed like a good initial place to draw the line for now. In perfunctory testing on our internal observability clusters I saw perf improve from 2.5s to 1.1s on the Uptime homepage with no filters. So, it looks like there are potentially perf improvements (no real benchmarking was done). Previously, this returned all pings from the latest check group. This was not actually used anywhere, only the summary pings are required for the current UI, so we now only return those from the list API as this saves a query. |
||
---|---|---|
.. | ||
accessibility | ||
alerting_api_integration | ||
api_integration | ||
apm_api_integration | ||
case_api_integration | ||
common | ||
detection_engine_api_integration | ||
encrypted_saved_objects_api_integration | ||
endpoint_api_integration_no_ingest | ||
functional | ||
functional_embedded | ||
functional_with_es_ssl | ||
ingest_manager_api_integration | ||
kerberos_api_integration | ||
licensing_plugin | ||
login_selector_api_integration | ||
observability_api_integration | ||
oidc_api_integration | ||
page_load_metrics | ||
pki_api_integration | ||
plugin_api_integration | ||
plugin_api_perf | ||
plugin_functional | ||
reporting_api_integration | ||
saml_api_integration | ||
saved_object_api_integration | ||
saved_objects_field_count | ||
security_solution_cypress | ||
security_solution_endpoint | ||
spaces_api_integration | ||
stack_functional_integration | ||
token_api_integration | ||
ui_capabilities | ||
upgrade_assistant_integration | ||
visual_regression | ||
mocha_decorations.d.ts | ||
tsconfig.json |