You need to enable JavaScript to run this app.
导航

PCAlarmAck

最近更新时间2024.05.07 20:48:38

首次发布时间2022.11.15 20:38:48

调用PCAlarmAck接口设置ACK。

请求说明

  • 请求方式:POST
  • 请求地址:/?Action=PCAlarmAck&Version=2022-10-28
ServiceName : apmplus_openapi
Region : cn-beijing
X-App-Ids : xxx
Content-Type : application/json

请求参数

Query

参数类型是否必选示例值描述
ActionStringPCAlarmAck接口名称。当前 API 的名称为 PCAlarmAck
VersionString2022-10-28接口版本。当前 API 的版本为 2022-10-28

Body

参数类型是否必选示例值描述
commonObject of CommonParams-通用参数。
idLong1报警规则ID。
durationLong30ack时间,单位为秒。

CommonParams

参数类型是否必选示例值描述
osStringpc系统。
aidLong12345App ID。
envStringcrash环境信息。

返回参数

参数类型示例值描述
dataObject of AckResponseData-返回内容。
errmsgString""错误信息,成功为空。
errnoInteger200错误码,成功为200。

AckResponseData

参数类型示例值描述
ack_until_timeLong1667572449下次执行时间。

请求示例

POST /?Action=PCAlarmAck&Version=2022-10-28
{
    "common": {
        "aid": 12345,
        "os": "pc",
        "site_type": "Va",
        "env": "crash"
    },
    "id": 1,
    "duration": 30
}

返回示例

{
    "errmsg": "station",
    "errno": 200,
    "data": {
        "ack_until_time": 1667572449
    }
}