kibana/x-pack/test
Andrew Cholakian 5085b62c9c
[Uptime] Remove Scripted Metric Query (#69229)
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.
2020-07-09 08:51:55 -05:00
..
accessibility
alerting_api_integration ServiceNow push to Incident generic implementation (supporting both Case specific and generic Alerts) (#68464) 2020-07-06 16:38:45 -07:00
api_integration [Uptime] Remove Scripted Metric Query (#69229) 2020-07-09 08:51:55 -05:00
apm_api_integration [RUM Dashboard] New rum services api to replace usage of get services API (#70746) 2020-07-08 11:26:34 +02:00
case_api_integration
common [SECURITY SOLUTION][INGEST] Task/endpoint list tests (#69419) 2020-06-25 11:10:39 -04:00
detection_engine_api_integration skip flaky suite (#69632) 2020-07-08 14:50:23 -07:00
encrypted_saved_objects_api_integration [Encrypted Saved Objects] Adds support for migrations in ESO (#69513) 2020-06-25 17:23:31 +01:00
endpoint_api_integration_no_ingest Skip failing endgame tests (#70548) 2020-07-01 23:01:21 -07:00
functional [Security Solution][Endpoint] User Manifest Cleanup + Artifact Compression (#70759) 2020-07-09 00:43:58 -04:00
functional_embedded Rename HttpServerInfo.host to hostname (#70792) 2020-07-07 16:54:39 +02:00
functional_with_es_ssl Fixed adding an extra space character on selecting alert variable in action text fields (#70028) 2020-07-02 18:08:14 -07:00
ingest_manager_api_integration [Ingest Manager] Support limiting integrations on an agent config (#70542) 2020-07-06 14:12:15 -07:00
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 chore(NA): upgrade to lodash@4 (#69868) 2020-07-03 01:30:13 +01:00
plugin_functional [Audit Logging] Add AuditTrail service (#69278) 2020-07-07 21:16:39 +02:00
reporting_api_integration [API Integration Tests] usageApi service to expose the private telemetry API (#70057) 2020-06-30 20:14:59 +01:00
saml_api_integration Rename HttpServerInfo.host to hostname (#70792) 2020-07-07 16:54:39 +02:00
saved_object_api_integration
saved_objects_field_count CI Reporter for saved objects field count (#70580) 2020-07-07 16:53:47 +02:00
security_solution_cypress updates consumer to siem (#71117) 2020-07-09 07:45:10 +02:00
security_solution_endpoint [SECURITY SOLUTION] Rename to hosts and administration (#70913) 2020-07-08 17:27:52 -04:00
spaces_api_integration
stack_functional_integration [QA] stack integration tests (not run in ci) (#70904) 2020-07-08 11:54:03 -06:00
token_api_integration
ui_capabilities
upgrade_assistant_integration Add new elasticsearch client (#69905) 2020-07-08 17:21:00 +02:00
visual_regression
mocha_decorations.d.ts Update eslint related packages (#48513) 2019-10-21 16:32:31 -07:00
tsconfig.json