[Logs UI] [ML] Use ML's mlAnomalySearch for all searches on the anomaly index #67861
Labels
chore
Feature:Logs UI
Logs UI feature
Team:Infra Monitoring UI - DEPRECATED
DEPRECATED - Label for the Infra Monitoring UI team. Use Team:obs-ux-infra_services
Milestone
ML has the function
mlAnomalySearch
which is shared via the setup contract and can be used to search the anomaly index.mlAnomalySearch
is a simple wrapper around the standard elasticsearch search function, but also adds some additional checks.Currently only a license check is performed, but it will soon perform a user capabilities check and once ML introduces space aware jobs, it will ensure the jobs being searched are available in the current space.
Rather than calling
you can call
Note,
index
can be omitted as'.ml-anomalies-*'
is hardcoded.The text was updated successfully, but these errors were encountered: