配置 Event Notifications

Continuous Delivery 將於 2027 年 2 月 12 日在以下地區停止提供服務:au-syd、ca-tor、us-east。 Code Risk Analyzer 也將於該日於所有地區停止提供服務。 若某個區域未實際使用這些功能,該區域中的功能可能會提前停用,並停止接受新的實例。 了解更多

您可以使用此 IBM Cloud® Event Notifications 服務接收關於您 IBM Cloud® 帳戶中發生的重要事件的資訊。 您可以過濾和路由來自 IBM Cloud 服務的事件通知,例如 Toolchains、Monitoring 和 Secrets Manager 至通訊管道,例如 PagerDuty, Slack、電子郵件、SMS、推送通知、webhook、Microsoft® Teams, ServiceNow, 和 IBM Cloud Functions。

在設定工具 Event Notifications 整合之前,請確保您已為服務 Event Notifications 配置一個實例。

透過將工具鏈連接至 Event Notifications 服務實例,Event Notifications 工具整合可啟用工具鏈及其相關聯工具整合實例,以將內建及用戶端定製事件傳送至 Event Notifications 服務支援的任何目的地。 如需工具鏈如何處理事件的相關資訊,請參閱 工具鏈如何收集及傳送事件。

請確保所選 Event Notifications 服務實例具備 IAM 授權政策,允許工具鏈向此服務實例發送事件。 有關透過服務 Event Notifications 實例授予授權的詳細資訊,請參閱《 為何我無法取得整合 Event Notifications 實例的權限? 》。

配置 Event Notifications 以從工具鏈及工具整合實例傳送重要事件:

  1. 若您已擁有工具鏈並欲將此工具整合至其中,IBM Cloud 請從控制台點擊選單圖示 (漢堡圖示 )> 平台自動化 > 工具鏈。 在「工具鏈」頁面中,點擊該工具鏈以開啟其「概覽」頁面。

    a. 點擊「新增工具」。

    b. 在「工具整合」區段中,按一下 Event Notifications。

  2. 請在工具鏈中的「Event Notifications」卡片上,輸入您希望此工具整合所顯示的名稱。 此名稱用來識別工具鏈中的工具整合。

  3. 選取要連接工具鏈的 Event Notifications 實例。

  4. 點擊「建立整合」,將 Event Notifications 工具整合至您的工具鏈中。

  5. 在「工具鏈概觀」頁面上的 IBM Cloud 工具 卡片上,按一下 Event Notifications。

如需如何使用 API 或 Terraform 來配置 Event Notifications 的相關資訊,請參閱 啟用通知。

使用 API 來配置 Event Notifications

Event Notifications 工具整合支援下列組態參數,您可以在 建立、讀取和 更新工具整合時,使用工具 鏈 HTTP API 和 SDK。

您必須在要求內文中以 eventnotifications 值指定 tool_type_id 內容。

Event Notifications工具整合參數
參數 用法 類型 Terraform 引數 說明
名稱 必要,可更新 字串 名稱 此工具整合的名稱。
實例-CRN 必要,可更新 字串 實例_CRN Event Notifications 服務實例的雲端資源名稱 (CRN)。

啟用 Tekton Pipelines 的通知

您可以配置「Tekton 管線」,以將事件傳送至 Event Notifications 整合。

  1. 從工具鏈的「概觀」頁面中,在 Delivery Pipeline 卡上,按一下 Delivery Pipeline,以開啟 Tekton Delivery Pipeline 儀表板。
  2. 在 設定 > 進階設定 頁面上,啟用 Event Notifications。
  3. 儲存變更。

進一步了解 Event Notifications

若要進一步瞭解 Event Notifications,請參閱 開始使用 Event Notifications。