Incident Count
POST
/report/oncall/incidentsMaximum time span supported is 6 months
Request
Header Params
Content-Type
string
required
Example:
application/json
Body Params application/json
channel_ids
array[integer]
Channel list
Empty means query all, 0 means query global incidents, in this case alert and event counts will not be returned
step
enum<string>
Statistics cycle
Day, Week, Month
Allowed values:
dayweekmonth
start_time
integer
Start timestamp
end_time
integer
End timestamp
Example
{
"channel_ids": [
0
],
"step": "day",
"start_time": 0,
"end_time": 0
}
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
object
optional
items
array [object {4}]
required
Example
Not configured
Last modified: 2 个月前