この操作では、アラートテンプレートの一覧を照会します。
デバッグ
API Explorer を使用してデバッグを実行できます。 API Explorer を使用することで、さまざまな操作を実行して API の使用を簡素化できます。 たとえば、API の呼び出し、SDK サンプルコードの動的な生成、API の取得をすることができます。
リクエストパラメーター
パラメーター | データ型 | 必須/省略可能 | 例 | 説明 |
---|---|---|---|---|
Action | String | 必須 | DescribeMonitorGroups |
実行する操作。 値を DescribeMonitorGroups に設定します。 |
SelectContactGroups | Boolean | 省略可能 | true |
返される結果に、関連するアラート連絡先グループを含めるを示します。 |
PageNumber | Integer | 省略可能 | 1 |
ページの番号。 既定値: 1 。 |
PageSize | Integer | 省略可能 | 10 |
各ページのレコード数。 既定値 : 10 。 |
Keyword | String | 省略可能 | test |
アプリケーショングループの名前。 アプリケーショングループ名に基づいたあいまい検索を実行できます。 |
InstanceId | String | 省略可能 | xxx-1 |
リソースグループの ID 。 指定したインスタンスが属するアプリケーショングループを検索できます。 |
GroupName | String | 省略可能 | My group |
アプリケーショングループの ID 。 |
レスポンスパラメーター
パラメーター | データ型 | 例 | 説明 |
---|---|---|---|
Code | Integer | 200 |
ステータスコード。 値が 200 の場合、呼び出しが成功したことを示します。 |
Message | String | success |
ステータスの説明。 Code パラメーターが 200 の場合、Message パラメーターは null になります。 |
PageNumber | Integer | 1 |
ページの番号。 |
PageSize | Integer | 10 |
各ページのレコード数。 |
RequestId | String | 3121AE7D-4AFF-4C25-8F1D-C8226EBB1F42 |
トラブルシューティングのリクエスト ID。 |
Resources |
関連付けられたリソース。 |
||
└BindUrl | String | http://xxx |
k8 から同期される URL。 |
└ContactGroups |
アラート連絡先グループ。 |
||
└Name | String | Default alert contact group |
アラート連絡先グループの名前。 |
└GmtCreate | Long | 1510286840000 |
作成時間。 1970 年 1 月 1 日の 00:00:00 から経過した時間を示す整数です。 単位 :ミリ秒。 |
└GmtModified | Long | 1540370711000 |
変更時間。 1970 年 1 月 1 日の 00:00:00 から経過した時間を示す整数です。 単位 :ミリ秒。 |
└GroupId | Long | 12345 |
グループの ID 。 |
└GroupName | String | Application group 1 |
アプリケーショングループの ID 。 |
└ServiceId | String | service-1 |
サービスの ID 。 |
└Type | String | custom |
グループの種類。 有効値 :
|
Success | Boolean | true |
呼び出しが成功したかを示します。 値が true の場合、呼び出しが成功したことを示します。 値が false の場合、呼び出しが失敗したことを示します。 |
Total | Integer | 10 |
返されるレコードの総数。 |
例
リクエスト例
http(s)://[Endpoint]/? Action=DescribeMonitorGroups
&<Common request parameters>
通常のレスポンス例
XML
形式
<DescribeMonitoringConfigResponse>
<PageNumber>1</PageNumber>
<PageSize>30</PageSize>
<RequestId>31BC7201-00F2-47B2-B7B9-6A173076ACE8</RequestId>
<Success>true</Success>
<Code>200</Code>
<Total>20</Total>
<Resource>
<Resource>
<GroupName>demo</GroupName>
<Type>custom</Type>
<ContactGroups>
<ContactGroup>
<Name>xxx</Name>
</ContactGroup>
</ContactGroups>
<ServiceId>49922</ServiceId>
<GmtCreate>1489043796000</GmtCreate>
<GmtModified>1525183537000</GmtModified>
<GroupId>13263</GroupId>
</Resource>
</Resource>
</DescribeMonitoringConfigResponse>
JSON
形式
{
"PageNumber": 1,
"PageSize":30,
"RequestId":"31BC7201-00F2-47B2-B7B9-6A173076ACE8",
"Success":true,
"Code":200,
"Total":1,
"Resource":{
"Resource":{
{
"GroupName":"demo",
"Type":"custom",
"ServiceId":49922,
"ContactGroups":{
"ContactGroup":[
{
"Name":"xxx"
}
]
},
"GmtCreate":1489043796000,
"GroupId":13263,
"GmtModified":1525183537000
}
]
}
}