godo.Insights.ListAlertInstances()
Generated on 5 Nov 2026
from godo version
v1.236.0
Usage
client.Insights.ListAlertInstances(ctx context.Context, opt *godo.AlertInstanceListOptions) ([]godo.AlertInstance, *godo.Response, error)Description
ListAlertInstances lists alert instances, newest trigger first.
This method sends a GET request to /v2/insights/alert-instances.
Parameters
opt*godo.AlertInstanceListOptions
Fields of godo.AlertInstanceListOptions
AlertInstanceListOptions are filters for listing alert instances.
PageintPerPageintStatusstringRuleIDstringResourceURNstring
Returns
- []godo.AlertInstance
- *godo.Response
The HTTP response, with pagination
Links,Meta, andRatelimit information.- error
Non-nil when the request fails. API errors are returned as
*godo.ErrorResponse.
Fields of godo.AlertInstance
AlertInstance is a read-only firing of an alert rule against a resource.
IDstringRuleIDstringSeveritystringStatusstringResourceURNstringValuefloat64TriggeredAttime.TimeLastTriggeredAttime.TimeResolvedAt*time.TimeLastNotifiedAt*time.Time
Request Sample
Pagination
This method returns one page of results. Response.Links carries the pagination state; loop until IsLastPage reports true.
Response Example
More Information
See GET /v2/insights/alert-instances in the API reference for additional detail on responses, headers, parameters, and more.
See the Go package documentation for the source of this method.