Alert Metrics - Label TOP
DevelopingPOST
/insight/alert/metrics/label/topRequest
Body Params application/json
start_time
integer
Start time
Timestamp in seconds, incident trigger time must be greater than this
end_time
integer
End time
Timestamp in seconds, incident trigger time must be less than or equal to this. Maximum time span is 6 months, if aggregate_unit is day, maximum time span is 31 days.
team_ids
array[integer]
Team ID list
channel_ids
array[integer]
Channel ID list
severities
array[string]
Severity
Allowed values:
InfoWarningCritical
time_zone
string
Timezone
Default timezone Asia/Shanghai, used for results and grouping timezone. Must be in tzdata format. Please refer to this list for acceptable values.
order_by
enum<string>
Sort field
Allowed values:
total_alert_cnttotal_alert_event_cnt
asc
boolean
Ascending order
Default descending
k
integer
Data count
Return all by default
>= 1<= 100
label
enum<string>
Label
Allowed values:
checkresource
Example
{
"start_time": 0,
"end_time": 0,
"team_ids": [
0
],
"channel_ids": [
0
],
"severities": [
"Info"
],
"time_zone": "string",
"order_by": "total_alert_cnt",
"asc": true,
"k": 1,
"label": "check"
}
Request samples
Responses
成功(200)
HTTP Code: 200
Content Type : JSONapplication/json
Data Schema
error
object (DutyError)
optional
code
enum<string>
Error code
Allowed values:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
Error description
data
array [object {3}]
optional
total_alert_cnt
integer
Alert count
total_alert_event_cnt
integer
Alert event count
label
string
Label value
Example
{
"error": {
"code": "string",
"message": "string"
},
"data": [
{
"total_alert_cnt": 11,
"total_alert_event_cnt": 11,
"label": "HTTP response error"
},
{
"total_alert_cnt": 1,
"total_alert_event_cnt": 1,
"label": "cpu.ide<28"
}
]
}
Last modified: 2 个月前