通知数量
POST
https://api.flashcat.cloud/report/oncall/notifications
最后修改时间:2025-01-08 02:51:44
请求参数
Authorization
在 query 添加参数
app_key
示例:
app_key: 2f68dbbf-519d-4f01-9636-e2421b68f379
Header 参数
Content-Type
string
必需
示例值:
application/json
Body 参数application/json
channel_ids
array[integer]
协作空间列表
step
enum<string>
统计周期
枚举值:
dayweekmonth
start_time
integer
开始时间戳
end_time
integer
结束时间戳
示例
{
"channel_ids": [
0
],
"step": "day",
"start_time": 0,
"end_time": 0
}
示例代码
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
请求示例请求示例
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.flashcat.cloud/report/oncall/notifications?app_key' \
--header 'Content-Type: application/json' \
--data-raw ''
返回响应
🟢200成功
application/json
Body
error
object (DutyError)
可选
code
enum<string>
错误码
枚举值:
InvalidParameterInvalidContentTypeUnauthorizedAccessDeniedMethodNotAllowedRequestTooFrequentlyRequestVerifyRequiredDangerousOperationRequestLockedRouteNotFoundBalanceNotEnoughUndonedOrderExistResourceNotFoundInternalErrorReferenceExist
message
string
错误描述
data
object
可选
items
array [object {4}]
必需
示例
{
"error": {
"code": "InvalidParameter",
"message": "string"
},
"data": {
"items": [
{
"ts": 0,
"sms_cnt": 0,
"voice_cnt": 0,
"email_cnt": 0
}
]
}
}

添加官方技术人员微信
在这里,获得使用上的任何帮助,快速上手企业告警一站式响应平台FlashDuty


修改于 2025-01-08 02:51:44