この操作では、イベントアラートルールの通知方法を照会します。
デバッグ
API Explorer を使用してデバッグを実行できます。 API Explorerを使用すると、API の使用を簡素化するためにさまざまな操作を実行できます。 たとえば、API の呼び出し、SDK サンプル コードの動的な生成、API の取得をすることができます。
リクエストパラメーター
パラメーター | データ型 | 必須/省略可能 | 例 | 説明 |
---|---|---|---|---|
Action | String | 必須 | DescribeEventRuleTargetList |
実行する操作。 値を DescribeEventRuleTargetList に設定します。 |
RuleName | String | 必須 | testRule |
アラートルールの名前。 |
レスポンスパラメーター
パラメーター | データ型 | 例 | 説明 |
---|---|---|---|
Message | String | success |
エラーメッセージ。 |
RequestId | String | 87170bc7-e28a-4c93-b9bf-90a1dbe84736 |
トラブルシューティングのリクエスト ID。 |
Code | String | 200 |
ステータスコード。 値が 200 の場合、呼び出しが成功したことを示します。 |
MnsParameters |
MNS 通知。 |
||
└Id | String | 2 |
MNS 通知の一意の ID。 |
└Queue | String | testQueue |
MNS キューの名前。 |
└Region | String | cn-hangzhou |
MNS がデプロイされているリージョン。 |
ContactParameters |
アラート連絡先グループ通知。 |
||
└ContactGroupName | String | Default alert contact group |
アラート連絡先グループの名前。 |
└Id | String | 1 |
アラート連絡先グループ通知の一意の ID。 |
└Level | String | 3 |
アラートの通知方法。 有効値 : 2、3、4。
|
FcParameters |
関数計算通知。 |
||
└FunctionName | String | fcTest1 |
関数の名前。 |
└Id | String | 3 |
関数計算通知の一意の ID。 |
└Region | String | cn-qingdao |
関数計算がデプロイされるリージョン。 |
└ServiceName | String | service1 |
関数計算サービスの名前。 |
SlsParameters |
ログサービス通知。 |
||
└Id | String | 4 |
ログサービス通知の一意の ID。 |
└LogStore | String | logstore_test |
ログストアの名前。 |
└Project | String | project_test |
プロジェクトの名前。 |
└Region | String | cn-hangzhou |
プロジェクトがデプロイされるリージョン。 |
WebhookParameters |
URL コールバック通知。 |
||
└Id | String | 5 |
HTTP コールバック通知の一意の ID。 |
└Method | String | GET |
HTTP コールバックの要求メソッド。 有効値 : GET および POST。 |
└Protocol | String | http |
プロトコルの名前。 |
└Url | String | http://www.aliyun.com |
コールバック URL 。 |
例
リクエスト例
http(s)://[Endpoint]/? Action=DescribeEventRuleTargetList
&RuleName=testRule
&<Common request parameters>
通常のレスポンス例
XML
形式
<DescribeEventRuleTargetListResponse>
<SlsParameters>
<SlsParameter>
<Region>cn-hangzhou</Region>
<Project>project-test</Project>
<Id>4</Id>
<LogStore>logstore-test</LogStore>
</SlsParameter>
</SlsParameters>
<ContactParameters>
<ContactParameter>
<Id>1</Id>
<Level>3</Level>
<ContactGroupName>aaaaa</ContactGroupName>
</ContactParameter>
</ContactParameters>
<MnsParameters>
<MnsParameter>
<Region>cn-hangzhou</Region>
<Id>2</Id>
<Queue>ECS-ops</Queue>
</MnsParameter>
</MnsParameters>
<RequestId>174513e9-7da9-4f05-9cae-98f9959e9379</RequestId>
<ParameterCount>1</ParameterCount>
<FcParameters>
<FCParameter>
<Region>cn-hangzhou</Region>
<ServiceName>MetricService-1</ServiceName>
<FunctionName>MetricFunction-0</FunctionName>
<Id>3</Id>
</FCParameter>
</FcParameters>
<Code>200</Code>
</DescribeEventRuleTargetListResponse>
JSON
形式
{
"SlsParameters":{
"SlsParameter":[
{
"Region":"cn-hangzhou",
"Id":"4",
"Project":"project-test",
"LogStore":"logstore-test"
}
]
},
"ContactParameters":{
"ContactParameter":[
{
"Level":"3",
"Id":"1",
"ContactGroupName":"aaaaa"
}
]
},
"MnsParameters":{
"MnsParameter":[
{
"Region":"cn-hangzhou",
"Queue":"ECS-ops",
"Id":"2"
}
]
},
"RequestId":"174513e9-7da9-4f05-9cae-98f9959e9379",
"ParameterCount":1,
"FcParameters":{
"FCParameter":[
{
"Region":"cn-hangzhou",
"ServiceName":"MetricService-1",
"FunctionName":"MetricFunction-0",
"Id":"3"
}
]
},
"Code": "200"
}