URL をリクエストする

https://api.dotcom-monitor.com/config_api_v1/devices/DisableAlert を投稿する

複数のデバイスに対して、指定された期間のアラートを無効にします。

ヘッダー パラメーター

Content-Type: application/json
例 30 分間アラートを無効にする要求の本文を投稿する
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{
"DisableAlert":
[
{
"Device_ID": 271438,
"Alert_Silence_Min": 10
},
{
"Device_ID": 271439,
"Alert_Silence_Min": 30
}
]
}
{ "DisableAlert": [ { "Device_ID": 271438, "Alert_Silence_Min": 10 }, { "Device_ID": 271439, "Alert_Silence_Min": 30 } ] }
{
                "DisableAlert":
                [
                               {
                                               "Device_ID": 271438,
                                               "Alert_Silence_Min": 10
                               },
                               {
                                               "Device_ID": 271439,
                                               "Alert_Silence_Min": 30
                               }
                ]
}

 

ボディ パラメータ

種類 必須 形容
Device_ID

int32

true

アラートを無効にするデバイスの名前。
Alert_Silence_min

int32

true

すべてのアラートが無効になっている時間を分単位で定義します。

成功の応答

応答の例
Plain text
Copy to clipboard
Open code in new window
EnlighterJS 3 Syntax Highlighter
{
"Success":true,
"Result":"Bulk alert silence has been completed."
}
{ "Success":true, "Result":"Bulk alert silence has been completed." }
{
    "Success":true,
    "Result":"Bulk alert silence has been completed."
}