Get insight by ID
- Base URL
-
https://api.elastic-cloud.com/apiElastic Cloud API.
- GET /v1/monitoring/{resourceType}/{resourceId}/insights/{insightId}
Returns a specific insight by ID.
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
The requested insight.
-
insightobjectrequired -
An insight. Properties that have no value are omitted from the response instead of being set to
null. -
@timestampstring · format: date-timerequired -
The time when the insight was raised, in ISO 8601 format (UTC).
-
eventobjectrequired -
startstring · format: date-timerequired -
The time when the insight was raised, in ISO 8601 format (UTC).
-
endstring · format: date-time -
The time when the insight was closed, in ISO 8601 format (UTC). Omitted while the insight is open.
-
durationinteger · format: int64 -
The duration of the insight in nanoseconds (
endminusstart). Omitted while the insight is open. -
tagsstring[] -
The tags of the insight, for example
domain:performanceorscope:node. Tag values keep the casing in which they are defined. The list of tags is available at https://ela.st/autoops-insights. - The list of tags.
-
ruleobjectrequired -
idstringrequired -
The ID of the rule that raised the insight, in lowercase. Use it in the
rulesfield of a search request. The list of rule IDs is available at https://ela.st/autoops-insights. - The list of rule IDs.
-
messagestringrequired -
The context and conditions that led to the insight being raised, as plain text.
Bad request, returned when the stored resource type cannot be resolved.
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,
the resource is not of the type given in resourceType, insightId is not a valid
UUID, or the insight does not exist on that resource.
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.
An unexpected error occurred on the server. Retry the request later. When AutoOps is temporarily unavailable, the response has no body.