Incident Metrics - Raw Data
DevelopingPOST
/insight/incident/metrics/rawRequest
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.
p
integer
Page number
Starts from 1
limit
integer
Items per page
asc
boolean
Ascending order
orderby
string
Sort field
Example
{
"start_time": 0,
"end_time": 0,
"team_ids": [
0
],
"channel_ids": [
0
],
"severities": [
"Info"
],
"time_zone": "string",
"p": 0,
"limit": 0,
"asc": true,
"orderby": "string"
}
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 {14}]
optional
incident_id
string
Incident ID
account_id
integer
Account ID
team_id
integer
Team ID
channel_id
integer
Channel ID
severity
string
Severity
created_at
integer
Created time
is_acked
boolean
Whether acknowledged
is_assigned
boolean
Whether assigned
is_reassigned
boolean
Whether reassigned
escalated_by
string
Escalation method
closed_by
string
Closure method
seconds_to_first_ack
integer
First acknowledgment time
seconds_to_close
integer
Closure time
seconds_to_engage
integer
Processing time
Example
{
"error": {
"code": "string",
"message": "string"
},
"data": [
{
"incident_id": "",
"account_id": 0,
"team_id": 0,
"channel_id": 0,
"severity": "Info",
"created_at": 0,
"is_acked": false,
"is_assigned": false,
"is_reassigned": false,
"escalated_by": "",
"closed_by": "",
"seconds_to_first_ack": 0,
"seconds_to_close": 0,
"seconds_to_engage": 0
}
]
}
Last modified: 2 个月前