全部產品
Search
文件中心

Application Real-Time Monitoring Service:DescribeWebhookContacts - 查詢Webhook警示連絡人清單

更新時間:Apr 10, 2026

查詢Webhook警示連絡人清單。

調試

您可以在OpenAPI Explorer中直接運行該介面,免去您計算簽名的困擾。運行成功後,OpenAPI Explorer可以自動產生SDK程式碼範例。

調試

授權資訊

當前API暫無授權資訊透出。

請求參數

名稱

類型

必填

描述

樣本值

WebhookName

string

Webhook 警示連絡人名稱。

webhook名稱

Page

integer

查詢頁數。

1

Size

integer

每頁展示的 Webhook 警示連絡人數。

20

ContactIds

string

連絡人 ID。

123

返回參數

名稱

類型

描述

樣本值

object

Schema of Response

RequestId

string

請求 ID。

4D6C358A-A58B-4F4B-94CE-F5AAF023****

PageBean

object

分頁對象。

Total

integer

查詢到的 Webhook 警示連絡人總數。

1

Page

integer

查詢的頁數。

1

Size

integer

每頁的 Webhook 警示連絡人數。

20

WebhookContacts

array<object>

Webhook 警示連絡人清單。

array<object>

WebhookId

number

Webhook 警示連絡人 ID。

123

WebhookName

string

Webhook 警示連絡人名稱。

webhook名稱

Webhook

object

Webhook 警示連絡人詳情。

Method

string

HTTP 要求方法。

  • Get

  • Post

Post

Url

string

要求方法 URL。

https://oapi.dingtalk.com/robot/send?access_token=91f2f6****

BizHeaders

object

HTTP 要求頭。

[{"Content-Type":"application/json"}]

BizParams

object

HTTP 要求參數。

[{"content:"mike"}]

Body

string

警示通知模板。

{ "警示名稱":"{{ .commonLabels.alertname }}{{if .commonLabels.clustername }}", "叢集名稱":"{{ .commonLabels.clustername }} {{ end }}{{if eq "app" .commonLabels._aliyun_arms_involvedObject_kind }}", "應用程式名稱":"{{ .commonLabels._aliyun_arms_involvedObject_name }} {{ end }}", "通知策略":"{{ .dispatchRuleName }}", "警示時間":"{{ .startTime }}", "警示內容":"{{ for .alerts }} {{ .annotations.message }} {{ end }}" }

RecoverBody

string

警示恢複模板。

{ "警示名稱":"{{ .commonLabels.alertname }}{{if .commonLabels.clustername }}", "叢集名稱":"{{ .commonLabels.clustername }} {{ end }}{{if eq "app" .commonLabels._aliyun_arms_involvedObject_kind }}", "應用程式名稱":"{{ .commonLabels._aliyun_arms_involvedObject_name }} {{ end }}", "通知策略":"{{ .dispatchRuleName }}", "恢復":"{{ .endTime }}", "警示內容":"{{ for .alerts }} {{ .annotations.message }} {{ end }}" }

樣本

正常返回樣本

JSON格式

{
  "RequestId": "4D6C358A-A58B-4F4B-94CE-F5AAF023****",
  "PageBean": {
    "Total": 1,
    "Page": 1,
    "Size": 20,
    "WebhookContacts": [
      {
        "WebhookId": 123,
        "WebhookName": "webhook名稱",
        "Webhook": {
          "Method": "Post",
          "Url": "https://oapi.dingtalk.com/robot/send?access_token=91f2f6****",
          "BizHeaders": [
            {
              "Content-Type": "application/json"
            }
          ],
          "BizParams": {
            "test": "test",
            "test2": 1
          },
          "Body": "{ \"警示名稱\":\"{{ .commonLabels.alertname }}{{if .commonLabels.clustername }}\", \"叢集名稱\":\"{{ .commonLabels.clustername }} {{ end }}{{if eq \"app\" .commonLabels._aliyun_arms_involvedObject_kind }}\", \"應用程式名稱\":\"{{ .commonLabels._aliyun_arms_involvedObject_name }} {{ end }}\", \"通知策略\":\"{{ .dispatchRuleName }}\", \"警示時間\":\"{{ .startTime }}\", \"警示內容\":\"{{ for .alerts }} {{ .annotations.message }} {{ end }}\" }",
          "RecoverBody": "{ \"警示名稱\":\"{{ .commonLabels.alertname }}{{if .commonLabels.clustername }}\", \"叢集名稱\":\"{{ .commonLabels.clustername }} {{ end }}{{if eq \"app\" .commonLabels._aliyun_arms_involvedObject_kind }}\", \"應用程式名稱\":\"{{ .commonLabels._aliyun_arms_involvedObject_name }} {{ end }}\", \"通知策略\":\"{{ .dispatchRuleName }}\", \"恢復\":\"{{ .endTime }}\", \"警示內容\":\"{{ for .alerts }} {{ .annotations.message }} {{ end }}\" }"
        }
      }
    ]
  }
}

錯誤碼

訪問錯誤中心查看更多錯誤碼。

變更歷史

更多資訊,參考變更詳情