Search insights
- Base URL
-
https://api.elastic-cloud.com/apiElastic Cloud API.
- POST /v1/monitoring/{resourceType}/{resourceId}/insights/_search
Returns a paginatable list of insights that were open (active) at any
point during the selected time interval and that match the specified criteria.
An insight matches the time interval when it started at or before to and it is
still open, or was closed at or after from. By default, only insights that are
currently open are returned; closed insights that overlapped the selected time
interval are included only when include_closed is set to true in the request body.
Insights of rules that were disabled for the resource are never returned.
The insights are sorted by their start time (event.start).
Each criterion narrows the results: an insight is returned only when it matches all the criteria that are set. Within a criterion that takes a list, an insight matches when it matches any of the values.
Results are paginated with a cursor: when return_count equals the page size, which is
the requested size capped at 5000, the response carries a cursor; pass it in the next
request to get the next page. Because a full page always carries a cursor, even when no
insights remain, the page that follows the last insight can be empty.
The caller must be authorized to read AutoOps data for the deployment, project, or connected cluster named in the path, and the resource must belong to the organization of the caller. Access is checked for that single resource on every request.
Responses
Bad request: a malformed body, a value that cannot be read as the type of its field,
an unknown enumeration value, an unknown rule ID, a date that is not valid, a size
lower than 1, an invalid cursor, or a to date earlier than from.
Unauthorized: the credentials are missing, invalid, or expired, the organization they belong to has no AutoOps account, or the credentials could not be verified.
Forbidden: the caller is not authorized to read AutoOps data for the resource
named in the path, or resourceType is not one of the supported values.
Not found: AutoOps has no resource with that ID for the organization of the caller,
or the resource is not of the type given in resourceType.
Too many requests: the organization exceeded the request rate limit of the API,
which is applied per organization. Retry after a few seconds. Responses from this
API don't include Retry-After or x-ratelimit-* headers.