Search insights

Base URL
https://api.elastic-cloud.com/api Elastic Cloud API.
Auth

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.

Path parameters

resourceType enum required

The type of the resource.

Values: deployments projects clusters
resourceId string required

The resource ID (Deployment ID, Serverless project ID, or Connected cluster ID) to get insights for. It must be a resource of the type given in resourceType.

Example: deployment-123

Request body

The search criteria. When the body is omitted, every default applies.

from string

The start of the time window, either in ISO 8601 format with seconds and a Z or offset time zone, or as a UNIX epoch in milliseconds. The bound is inclusive. Insights that are still open or that closed at or after this time are included. Defaults to 24 hours before the time of the request.

to string

The end of the time window, either in ISO 8601 format with seconds and a Z or offset time zone, or as a UNIX epoch in milliseconds. The bound is inclusive. Only insights that started at or before this time are included. Defaults to the time of the request. Must not be earlier than from.

order enum · default: desc

By default, the most recent insights are returned first. Use asc to return the oldest insights first. The value is case-sensitive.

Values: asc desc
cursor string

When paginating over a list of insights, the cursor found in the previous page leads to the next page of insights. When this parameter is set, the search criteria and the order of the request that returned the cursor are used, and all the other parameters except size are validated but otherwise ignored. The cursor is an opaque value: pass it back exactly as received, and do not parse it or build one yourself, because its format can change without notice.

size integer · format: int64 · min: 1 · default: 1000

When paginating over a list of insights, the number of insights to return. Defaults to 1000 when omitted. Values above 5000 are hard capped to 5000.

rules string[]

The IDs of the rules whose insights to return. Values are matched case-insensitively. The list of rule IDs is available at https://ela.st/autoops-insights. An unknown rule ID is rejected with a 400 error. Which rules can raise insights depends on the resource type in the URL.

severities enum[]

The severities of the insights to return. Values are case-sensitive and lowercase. The severity matched is the one recorded when the insight was raised, which can differ from autoops.severity if the severity of the rule changed afterwards.

Values: critical high medium low info
include_closed boolean · default: false

A boolean indicating whether closed insights should also be returned.

actionable_only boolean · default: false

When true, only insights with at least one recommended action are returned.

tags string[]

The tags to match. A tag matches the whole value of a tag of the insight, case-insensitively. The available insight tags depend on the rule and on the resource type in the URL, and they are namespaced, for example domain:performance or scope:node. The list of tags is available at https://ela.st/autoops-insights.

modified_only boolean · default: false

When true, the from and to time window is matched against the time each insight was last updated (event.updated) instead of its start and end times. Only the latest update time of the insight is considered, so an insight that was open during the time window is not returned if it was updated again after to. The include_closed setting still applies.

Responses

The insights that match the search criteria.

application/json
ok boolean required

Indicates whether the request succeeded. Always true for successful responses.

match_count integer · format: int64 required

The total number of insights that match the search criteria, across all pages. When the request carries a cursor, it is the total for the criteria of the original search, not the number of insights that remain.

return_count integer · format: int64 required

The number of insights that have been returned in the response. When this number equals the page size, which is the requested size capped at 5000, the response carries a cursor and there might be more insights to return.

cursor string

The cursor to the next page of insights. Pass it in the cursor field of the next search request. It is omitted when the page has fewer insights than the page size, which is the requested size capped at 5000. For example, a request with a size of 6000 that returns 5000 insights carries a cursor. The cursor is an opaque value: do not parse it or build one yourself, because its format can change without notice.

insights object[] required

The insights that match the search criteria.

@timestamp string · format: date-time required

The time when the insight was raised, in ISO 8601 format (UTC).

event object required
id string required

The public ID of the insight, as a UUID.

start string · format: date-time required

The time when the insight was raised, in ISO 8601 format (UTC).

end string · format: date-time

The time when the insight was closed, in ISO 8601 format (UTC). Omitted while the insight is open.

duration integer · format: int64

The duration of the insight in nanoseconds (end minus start). Omitted while the insight is open.

updated string · format: date-time

The time when AutoOps last updated the insight, in ISO 8601 format (UTC). It equals start when the insight is raised, AutoOps moves it forward each time it confirms that the insight is still open, and it equals end when the insight is closed.

url string required

The URL that returns this insight.

tags string[]

The tags of the insight, for example domain:performance or scope:node. Tag values keep the casing in which they are defined. The list of tags is available at https://ela.st/autoops-insights.

service object required
type string required

The service type. Always elasticsearch.

id string required

The resource ID (deployment ID, project ID, or connected cluster ID).

name string required

The name of the resource. It can be empty when the resource has no name.

elasticsearch object required
cluster object required
id string required

The ID of the Elasticsearch cluster.

name string required

The name of the Elasticsearch cluster. It can be empty when the cluster has no name.

observer object required
name string required

The observer name. Always autoops.

rule object required
id string required

The ID of the rule that raised the insight, in lowercase. Use it in the rules field of a search request. The list of rule IDs is available at https://ela.st/autoops-insights.

name string required

The short, human-readable name of the rule.

description string required

The description of the rule and an explanation of its potential impact, as plain text.

message string required

The context and conditions that led to the insight being raised, as plain text.

autoops object required
title string required

The human-readable title of the insight, as plain text.

severity enum

The severity level of an insight.

Values: critical high medium low info
Base URL
https://api.elastic-cloud.com/api Elastic Cloud API.