dots.v2.insights.alertInstances.get()
Generated on 13 Nov 2026
from DoTs version
v1.24.0
Usage
client.v2.insights.alertInstances.get(requestConfiguration?: RequestConfiguration<AlertInstancesRequestBuilderGetQueryParameters>): Promise<undefined | AlertInstancesGetResponse>Description
To list alert instances for your account, send a GET request to
/v2/insights/alert-instances. Alert instances are read-only records of
alert rule firings against your resources.
Results can optionally be filtered by status, rule_id, or
resource_urn.
Results are ordered by triggered_at descending (newest first). Because
the list is append-only and continuously growing, offset-based pagination
is best-effort: newly triggered instances may shift older rows onto
subsequent pages between fetches. For stable pagination, filter by
rule_id or a fixed time window on the client side.
Parameters
perPageinteger optionalExample:
2Number of items returned per page
pageinteger optionalExample:
1Which 'page' of paginated results to return.
statusstring optionalOptional filter. When set, only alert instances with this status are
returned.ruleIdstring optionalExample:
8f3a2b1c-4d5e-6f7a-8b9c-0d1e2f3a4b5cOptional filter. When set, only alert instances fired by the alert rule
with this ID are returned.resourceUrnstring optionalExample:
do:droplet:12345Optional filter. When set, only resources associated with this resource URN
are returned.
Request Sample
Pagination
This method returns paginated results. The response includes a links.pages object with URLs for navigating between pages. To retrieve the next page, parse the next URL and pass the page query parameter:
let response = await client.v2.insights.alertInstances.get();
let pages = response?.links?.pages;
while (pages && "next" in pages && typeof pages.next === "string") {
const page = Number(new URL(pages.next).searchParams.get("page"));
response = await client.v2.insights.alertInstances.get({
queryParameters: {
page,
},
});
pages = response?.links?.pages;
}Response Example
More Information
See /v2/insights/alert-instances in the API reference for additional detail on responses, headers, parameters, and more.