AlertHistories [v1]
/v1/alerthistories
getGet alert histories
Retrieve a list of alert histories based on specified filters.
Parameters
start(in query):integerrequiredStart time for querying alert histories (timestamp). Required.
end(in query):integerrequiredEnd time for querying alert histories (timestamp). Required.
alertKind(in query):stringType of alert (resource or event). Optional, defaults to all.
alertStrategy(in query):stringAlert strategy to filter by. Optional, defaults to all.
alertObjectKind(in query):stringResource type of the alert object. Optional, defaults to all.
alertObjectName(in query):stringResource name of the alert object. Optional, defaults to all.
alertObjectCluster(in query):stringCluster of the alert object. Required for Node/Deployment/Statefulset/Daemonset. Optional, defaults to all.
alertObjectNamespace(in query):stringNamespace of the alert object. Required for Deployment/Statefulset/Daemonset. Optional, defaults to all.
page(in query):integerPage number to retrieve. Optional, defaults to 1.
pageSize(in query):integerNumber of items per page. Optional, defaults to 20.
orderBy(in query):stringField to sort results by. Optional, defaults to -startsAt.
Response
200AlertHistory: Successful response with list of alert histories.
AlertHistory
next:stringURL for the next page of results.
previous:stringURL for the previous page of results.
page_size:integerNumber of items per page.
num_pages:integerTotal number of pages.
count:integerTotal number of results.
results:[]AlertHistoryResult
AlertHistoryResult
alertHistoryName:stringKey for the alert history.
alertName:stringName of the alert rule.
alertStrategy: AlertHistoryStrategyinvolvedObject: AlertHistoryInvolvedObjectlabels: AlertHistoryLabelsmessagesCount:integerNumber of alert occurrences.
startsAt:stringStart time of the alert.
endsAt:stringEnd time of the alert.
AlertHistoryStrategy
name:stringName of the alert strategy.
namespace:stringNamespace of the alert strategy.
AlertHistoryInvolvedObject
cluster:stringCluster of the involved resource.
kind:stringType of the involved resource.
name:stringName of the involved resource.
namespace:stringNamespace of the involved resource.
AlertHistoryLabels
alert_cluster:stringCluster of the alert rule.
alert_project:stringProject of the alert rule.
alert_namespace:stringNamespace of the alert rule.
alert_resource:stringName of the alert strategy.
alert_name:stringName of the alert rule.
alert_involved_object_kind:stringKind of the involved resource.
alert_involved_object_namespace:stringNamespace of the involved resource.
alert_involved_object_name:stringName of the involved resource.
alert_indicator:stringIndicator for the alert rule.
alert_indicator_comparison:stringComparison operator for the alert rule.
alert_indicator_threshold:stringThreshold for the alert rule.
alert_indicator_unit:stringUnit for the alert rule.
severity:stringSeverity level of the alert.