You need to enable JavaScript to run this app.
最新活动
产品
解决方案
定价
合作与生态
支持与服务
开发者
了解我们
导航

PCAlarmMetricTrend

更新时间:2022.11.18 16:20:56

调用PCAlarmMetricTrend接口查看报警指标趋势。

请求参数

Query

参数类型是否必选示例值描述
ActionStringPCAlarmMetricTrend请求名称
VersionString2022-10-28请求版本

Body

参数类型是否必选示例值描述
commonobject of common-通用参数
time_filterobject of time_filter-时间过滤
idi641报警规则ID

common

参数类型是否必选示例值描述
aidi6412345App ID
envstringcrash环境信息
osstringpc系统

time_filter

参数类型是否必选示例值描述
start_timei321655308800开始时间
granularityi323聚合颗粒度,单位为秒
end_timei321655971939结束时间

返回参数

参数类型示例值描述
datastringsuccess返回数据
error_msgstring""错误信息
error_noi64200错误码

示例

请求示例

POST /?Action=PCAlarmMetricTrend&Version=2022-10-28 
{
    "common": {
        "aid": 12345,
        "os": "pc",
        "env": "crash",
        "site_type": ""
    },
    "time_filter": {
        "start_time": 1655308800,
        "end_time": 1655971939,
        "granularity": 3
    },
    "id": 1
}

正常返回示例

{
    "data": {},
    "errmsg": "",
    "errno": 200
}

异常返回示例

{
    "ResponseMetadata": {
        "RequestId": "201806041104200100100232280022D30",
        "Action": "PCAlarmMetricTrend",
        "Version": "2022-10-28",
        "Service": "***",
        "Region": "cn-north-1",
        "Error": {
            "Code": "200000",
            "Message": "参数异常"
        }
    }
}