全部產品
Search
文件中心

:Function Compute事件

更新時間:Sep 05, 2024

本文介紹Function Compute通過Action Trail接入作為事件來源發布到事件匯流排EventBridge的事件類型。

事件類型

Function Compute支援發布到事件匯流排EventBridge的事件類型如下所示。

事件類型

type參數值

建立函數失敗

fc:Function:CreateFailed

建立函數成功

fc:Function:CreateSuccess

刪除函數失敗

fc:Function:DeleteFailed

刪除函數成功

fc:Function:DeleteSuccess

更新函數失敗

fc:Function:UpdateFailed

更新函數成功

fc:Function:UpdateSuccess

調用函數發生用戶端錯誤

fc:Function:InvokeWithClientError

建立服務失敗

fc:Service:CreateFailed

建立服務成功

fc:Service:CreateSuccess

刪除服務失敗

fc:Service:DeleteFailed

刪除服務成功

fc:Service:DeleteSuccess

更新服務失敗

fc:Service:UpdateFailed

更新服務成功

fc:Service:UpdateSuccess

建立觸發器失敗

fc:Trigger:CreateFailed

建立觸發器成功

fc:Trigger:CreateSuccess

刪除觸發器失敗

fc:Trigger:DeleteFailed

刪除觸發器成功

fc:Trigger:DeleteSuccess

更新觸發器失敗

fc:Trigger:UpdateFailed

更新觸發器成功

fc:Trigger:UpdateSuccess

建立應用失敗

fc:Application:CreateFailed

建立應用成功

fc:Application:CreateSuccess

刪除應用失敗

fc:Application:DeleteFailed

刪除應用資源失敗

fc:Application:DeleteResourceFailed

刪除應用資源成功

fc:Application:DeleteResourceSuccess

刪除應用成功

fc:Application:DeleteSuccess

更新應用失敗

fc:Application:UpdateFailed

更新應用成功

fc:Application:UpdateSuccess

建立應用版本失敗

fc:Release:CreateFailed

建立應用版本成功

fc:Release:CreateSuccess

刪除應用版本失敗

fc:Release:DeleteFailed

刪除應用版本成功

fc:Release:DeleteSuccess

應用版本取消部署失敗

fc:Release:DeployCancelFailed

應用版本取消部署成功

fc:Release:DeployCancelSuccess

應用版本執行部署失敗

fc:Release:DeployFailed

應用版本執行部署成功

fc:Release:DeploySuccess

應用版本資源檢查失敗

fc:Release:DeployPlanFailed

應用版本資源檢查成功

fc:Release:DeployPlanSuccess

應用版本環境準備失敗

fc:Release:DeploySetUpFailed

應用版本環境準備成功

fc:Release:DeploySetUpSuccess

應用版本資源同步失敗

fc:Release:DeploySyncFailed

應用版本資源同步成功

fc:Release:DeploySyncSuccess

代碼倉庫建立失敗

fc:Repository:CreateFailed

代碼倉庫建立成功

fc:Repository:CreateSuccess

建立代碼倉庫Webhook失敗

fc:Repository:CreateWebhookFailed

建立代碼倉庫Webhook成功

fc:Repository:CreateWebhookSuccess

阿里雲平台對資源執行的操作事件

fc:ActionTrail:AliyunServiceEvent

API調用

fc:ActionTrail:ApiCall

控制台的操作事件

fc:ActionTrail:ConsoleOperation

控制台登入事件

fc:ActionTrail:ConsoleSignin

控制台登出事件

fc:ActionTrail:ConsoleSignout

CloudEvents規範中定義的參數解釋,請參見事件概述

建立函數失敗

建立函數失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:CreateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "message": "InternalServerError occurred"
    }
}

data欄位包含的參數解釋如下表所示。

參數

類型

樣本值

描述

level

String

Warning

事件等級。取值如下:

  • Normal:正常。

  • Warning:警告。

resourceType

String

Function

資源類型。取值如下:

  • Service:服務。

  • Function:函數。

  • Trigger:觸發器。

  • Instance:執行個體。

  • Application:應用。

  • Release:應用版本。

  • Repository:代碼倉庫。

platform

String

FC

事件所屬平台。

requestId

String

8c394117-3a0e-4b8f-870b-ab22da84****

產生該事件的Function Compute請求ID。

serviceName

String

test-fc-service

服務名稱。

functionName

String

test-nodejs

函數名稱。

runtime

String

custom-container

運行環境。例如:Node.js 14、Golong、Java、CustomContainer等。

memorySizeMB

String

1024

記憶體規格。當執行函數時,可使用的最大記憶體。單位:MB。

instanceType

String

ElasticInstance

執行個體類型。

statusCode

String

501

請求返回的狀態代碼。

errorCode

String

Internal Server Error

錯誤碼。

Message

String

InternalServerError occurred

錯誤資訊。

建立函數成功

建立函數成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:CreateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除函數失敗

刪除函數失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:DeleteFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除函數成功

刪除函數成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:DeleteSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新函數失敗

更新函數失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:UpdateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新函數成功

更新函數成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:UpdateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

調用函數發生用戶端錯誤

當調用函數發生用戶端錯誤時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:InvokeWithClientError",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da8****",
        "serviceName": "test-fc-service",
        "functionName": "test-nodejs",
        "qualifier": "LATEST",
        "statusCode": "404",
        "clientIP": "192.168.XX.XX",
        "errorCode": "FunctionNotFound",
        "message": "function 'test-nodejs' does not exist in service 'test-fc-service'"
    }
}

data欄位包含的參數解釋如下表所示。

參數

類型

樣本值

描述

level

String

Warning

事件等級。取值如下:

  • Normal:正常。

  • Warning:警告。

resourceType

String

Function

資源類型。取值如下:

  • Service:服務。

  • Function:函數。

  • Trigger:觸發器。

  • Instance:執行個體。

  • Application:應用。

  • Release:應用版本。

  • Repository:代碼倉庫。

platform

String

FC

事件所屬平台。

requestId

String

8c394117-3a0e-4b8f-870b-ab22da8****

產生該事件的FC請求ID。

serviceName

String

test-fc-service

服務名稱。

functionName

String

test-nodejs

函數名稱。

qualifier

String

LATEST

服務的版本別名。

statusCode

String

404

請求返回的狀態代碼。

clientIP

String

192.168.XX.XX

調用函數的用戶端的IP地址。

errorCode

String

FunctionNotFound

錯誤碼。

message

String

function 'test-nodejs' does not exist in service 'test-fc-service'

錯誤資訊。

建立服務失敗

建立服務失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:CreateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立服務成功

建立服務成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:CreateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除服務失敗

刪除服務失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:DeleteFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除服務成功

刪除服務成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:DeleteSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新服務失敗

更新服務失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs.fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:UpdateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新服務成功

更新服務成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Service:UpdateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立觸發器失敗

建立觸發器失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:CreateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

data欄位包含的參數解釋如下表所示。

參數

類型

樣本值

描述

level

String

Warning

事件等級。取值如下:

  • Normal:正常。

  • Warning:警告。

resourceType

String

Trigger

資源類型。取值如下:

  • Service:服務。

  • Function:函數。

  • Trigger:觸發器。

  • Instance:執行個體。

  • Application:應用。

  • Release:應用版本。

  • Repository:代碼倉庫。

platform

String

FC

事件所屬平台。

requestId

String

8c394117-3a0e-4b8f-870b-ab22da84****

產生該事件的FC請求ID。

serviceName

String

test-fc-service

服務名稱。

functionName

String

test-nodejs

函數名稱。

triggerName

String

test-trigger

觸發器名稱。

triggerType

String

eventbridge

觸發器類型。

statusCode

String

501

請求返回的狀態代碼。

errorCode

String

Internal Server Error

錯誤碼。

Message

String

InternalServerError occurred

錯誤資訊。

建立觸發器成功

建立觸發器成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:CreateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除觸發器失敗

刪除觸發器失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:DeleteFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除觸發器成功

刪除觸發器失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:DeleteSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新觸發器失敗

更新觸發器失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:UpdateFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新觸發器成功

更新觸發器成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs/triggers/test-trigger",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Trigger:UpdateSuccess",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立應用失敗

建立應用失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:CreateFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-it4j",
        "templateName": "start-springboot",
        "accountId": "143199913651****",
        "roleArn": "acs:ram::143199913651****:role/aliyunfcserverlessdevsrole",
        "errorMessage": "some error",
        "parameters": {
            "functionName": "springboot",
            "region": "cn-hangzhou",
            "serviceName": "web-framework-it4j"
        },
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-it4j",
            "private": true
        }
    }
}

data欄位包含的參數解釋如下表所示。

參數

類型

樣本值

描述

level

String

Warning

事件等級。取值如下:

  • Normal:正常。

  • Warning:警告。

resourceType

String

Application

資源類型。取值如下:

  • Service:服務。

  • Function:函數。

  • Trigger:觸發器。

  • Instance:執行個體。

  • Application:應用。

  • Release:應用版本。

  • Repository:代碼倉庫。

platform

String

AppCenter

事件所屬平台。

applicationName

String

start-springboot-it4j

應用程式名稱。

templateName

String

start-springboot

應用模板名稱。

accountId

String

143199913651****

使用者的Account ID。

roleArn

String

acs:ram::143199913651****:role/aliyunfcserverlessdevsrole

部署應用所需RAM的Arn。

errorMessage

String

some error

錯誤資訊。

parameters

Object

應用模板對使用者暴露的自訂參數。

functionName

String

springboot

函數名字。

region

String

cn-hangzhou

地區。

serviceName

String

web-framework-it4j

服務名字。

repoSource

Object

應用關聯的代碼倉庫資訊。

provider

String

gitee

倉庫類型。包括Github、Gitee、Gitlab、Codeup等。

owner

String

buptwzj

倉庫所屬帳號。

repo

String

start-springboot-it4j

倉庫名稱。

private

String

true

是否為私人倉庫。

建立應用成功

建立應用成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:CreateSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "applicationName": "start-springboot-it4j",
        "templateName": "start-springboot",
        "accountId": "143199913651****",
        "roleArn": "acs:ram::143199913651****:role/aliyunfcserverlessdevsrole",
        "createdTime": 1663313476043,
        "parameters": {
            "functionName": "springboot",
            "region": "cn-hangzhou",
            "serviceName": "web-framework-it4j"
        },
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-it4j",
            "private": true
        }
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用失敗

刪除應用失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-2qat",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:DeleteFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-2qat",
        "accountId": "143199913651****",
        "errorMessage": "Error: ots bug occur"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用資源失敗

刪除應用資源失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:DeleteResourceFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "action": "removeFunction",
        "payload": {
            "functionName": "springboot",
            "region": "cn-hangzhou",
            "serviceName": "web-framework-epo0"
        },
        "errorMessage": "AccessDenied: code: 403, the caller is not authorized to perform 'fc:DeleteFunction' on resource 'acs:fc:cn-hangzhou:181377438895****:services/web-framework-epo0/functions/springboot' request id: undefined"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用資源成功

刪除應用資源成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:DeleteResourceSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "action": "removeService",
        "payload": {
            "region": "cn-hangzhou",
            "serviceName": "web-framework-2qat"
        }
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用成功

刪除應用成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-si90",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:DeleteSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-si90",
        "accountId": "143199913651****"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新應用失敗

更新應用失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/test-application",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:UpdateFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "test-application",
        "templateName": "",
        "accountId": "143199913651****",
        "roleArn": "",
        "parameters": {
            "functionName": "springboot",
            "region": "cn-hangzhou",
            "serviceName": "web-framework-it4j"
        },
        "repoSource": {
            "provider": "github",
            "owner": "test",
            "repo": "application-demo",
            "private": true
        },
        "errorMessage": "app test-application is not exists"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

更新應用成功

更新應用成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Application:UpdateSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-it4j",
        "templateName": "start-springboot",
        "accountId": "143199913651****",
        "roleArn": "acs:ram::143199913651****:role/aliyunfcserverlessdevsrole",
        "createdTime": 1663313476043,
        "parameters": {
            "functionName": "springboot",
            "region": "cn-hangzhou",
            "serviceName": "web-framework-it4j"
        },
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-test",
            "private": true
        }
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立應用版本失敗

建立應用版本失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/appcenter-demo-new/releases/*",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:CreateFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "appcenter-demo-new",
        "accountId": "143199913651****",
        "errorMessage": "The code version does not have a commit or branch",
        "repoSource": {
            "provider": "github",
            "owner": "doublechoose",
            "repo": "start-django-1ayl",
            "private": true
        },
        "codeVersion": {
            "branch": "master",
            "commit": "",
            "message": ""
        }
    }
}

data欄位包含的參數解釋如下表所示。

參數

類型

樣本值

描述

level

String

Application

事件等級。取值如下:

  • Normal:正常。

  • Warning:警告。

resourceType

String

AppCenter

資源類型。取值如下:

  • Service:服務。

  • Function:函數。

  • Trigger:觸發器。

  • Instance:執行個體。

  • Application:應用。

  • Release:應用版本。

  • Repository:代碼倉庫。

platform

String

start-springboot-it4j

事件所屬平台。

applicationName

String

appcenter-demo-new

應用程式名稱。

accountId

String

143199913651****

使用者的Account ID。

errorMessage

String

The code version does not have a commit or branch

錯誤資訊。

repoSource

Object

應用關聯的代碼倉庫資訊。

provider

String

github

倉庫類型。包括Github、Gitee、Gitlab、Codeup等。

owner

String

doublechoose

倉庫所屬帳號。

repo

String

start-django-1ayl

倉庫名稱。

private

Boolean

true

是否為私人倉庫。

codeVersion

Object

應用版本對應的代碼版本。

branch

String

master

代碼分支。例如master。

commit

String

-

提交的Commit Id。

message

String

-

執行git commit後的資訊。

建立應用版本成功

建立應用版本成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:CreateSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-it4j",
        "accountId": "143199913651****",
        "versionId": 166331381347****,
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-test",
            "private": true
        },
        "codeVersion": {
            "branch": "master",
            "commit": "Update repository code",
            "message": "281ca89dd370b1c47b83dd9f7c274b7f5348****"
        }
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用版本失敗

刪除應用版本失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-2qat/releases/*",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeleteFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {        
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-2qat",
        "accountId": "143199913651****",
        "versions": [],
        "errorMessage": "ots bug occur"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

刪除應用版本成功

刪除應用版本成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/*",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeleteSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-it4j",
        "accountId": "143199913651****",
        "versions": [
            {
                "versionId": 166331381347****,
                "success": true,
                "message": ""
            },
            {
                "versionId": 166331364192****,
                "success": true,
                "message": ""
            },
            {
                "versionId": 166331347688****,
                "success": true,
                "message": ""
            }
        ]
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本取消部署失敗

應用版本取消部署失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-by-fc/releases/166323117524****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeployCancelFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-by-fc",
        "accountId": "143199913651****",
        "versionId": 166323117524****,
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-idr6",
            "private": true
        },
        "codeVersion": {
            "branch": "master",
            "commit": "Update repository code",
            "message": "13471c3e282f7e15f367df000887cacc2947****"
        },
        "errorMessage": "no release found"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本取消部署成功

應用版本取消部署成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-by-fc/releases/1663231175247****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeployCancelSuccess",
    "aliyunaccountid": "14319991365****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "applicationName": "start-springboot-by-fc",
        "accountId": "143199913651****",
        "versionId": 166323117524****,
        "repoSource": {
            "provider": "gitee",
            "owner": "buptwzj",
            "repo": "start-springboot-idr6",
            "private": true
        },
        "codeVersion": {
            "branch": "master",
            "commit": "Update repository code",
            "message": "13471c3e282f7e15f367df000887cacc2947****"
        }
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本執行部署失敗

應用版本執行部署失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331383251****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeployFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331383251****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313832510,
        "finishedTime": 1663313971212,
        "errorMessage": "some reason"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本執行部署成功

應用版本執行部署成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331383251****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeploySuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331383251****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313832510,
        "finishedTime": 1663313971212
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本資源檢查失敗

應用版本資源檢查失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331382886****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeployPlanFailed",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331382886****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313828867,
        "finishedTime": 1663313831474,
        "errorMessage": "some reason"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本資源檢查成功

應用版本資源檢查成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331382886****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeployPlanSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331382886****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313828867,
        "finishedTime": 1663313831474
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本環境準備失敗

應用版本環境準備失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:183579944402****:applications/appcenter-demo/releases/166331116292****/tasks/166331116655****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeploySetUpFailed",
    "aliyunaccountid": "183579944402****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "183579944402****",
        "applicationName": "appcenter-demo",
        "versionId": 166331116292****,
        "taskId": 166331116655****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663311166554,
        "finishedTime": 1663311167419,
        "errorMessage": "SDK.ServerError\nErrorCode: MissingRoleArn\nRecommend: https://next.api.aliyun.com/troubleshoot?q=MissingRoleArn&product=Sts\nRequestId: 81DF9C92-541C-3F56-9DDC-C2D6A1862****\nMessage: RoleArn is mandatory for this action.\nRespHeaders: map[Access-Control-Allow-Headers:[X-Requested-With, X-Sequence, _aop_secret, _aop_signature, x-acs-action, x-acs-version, x-acs-date, Content-Type] Access-Control-Allow-Methods:[POST, GET, OPTIONS, PUT, DELETE] Access-Control-Allow-Origin:[*] Access-Control-Max-Age:[172800] Connection:[keep-alive] Content-Length:[253] Content-Type:[application/json;charset=utf-8] Date:[Fri, 16 Sep 2022 06:52:47 GMT] X-Acs-Request-Id:[81DF9C92-541C-3F56-9DDC-C2D6A186****] X-Acs-Trace-Id:[dae9527541b8347cb82864eedf31****]]"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本環境準備成功

應用版本環境準備成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331381881****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeploySetUpSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Application",
        "platform": "AppCenter",
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331381881****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313818818,
        "finishedTime": 1663313821511
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本資源同步失敗

應用版本資源同步失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331382408****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeploySyncFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331382408****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313824083,
        "finishedTime": 1663313827020,
        "errorMessage": "some reason"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

應用版本資源同步成功

應用版本資源同步成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:ap-southeast-1:143199913651****:applications/start-springboot-it4j/releases/166331381347****/tasks/166331382408****",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Release:DeploySyncSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "accountId": "143199913651****",
        "applicationName": "start-springboot-it4j",
        "versionId": 166331381347****,
        "taskId": 166331382408****,
        "codeVersion": {
            "commit": "281ca89dd370b1c47b83dd9f7c274b7f5348****",
            "message": "Update repository code",
            "branch": "master"
        },
        "createdTime": 1663313824083,
        "finishedTime": 1663313827020
    }
}

關於data欄位包含的參數解釋,請參見參數解析

代碼倉庫建立失敗

代碼倉庫建立失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Repository:CreateFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "provider": "gitee",
        "owner": "buptwzj",
        "repo": "start-springboot-it4j",
        "private": true,
        "errorMessage": "function is not exist"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

代碼倉庫建立成功

代碼倉庫建立成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Repository:CreateSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "provider": "gitee",
        "owner": "buptwzj",
        "repo": "start-springboot-it4j",
        "private": true
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立代碼倉庫Webhook失敗

建立代碼倉庫Webhook失敗時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Repository:CreateWebhookFailed",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "provider": "gitee",
        "owner": "buptwzj",
        "repo": "start-springboot-test",
        "private": true,
        "errorMessage": "function is not exist"
    }
}

關於data欄位包含的參數解釋,請參見參數解析

建立代碼倉庫Webhook成功

建立代碼倉庫Webhook成功時,事件匯流排EventBridge接收到的樣本事件如下所示。

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Repository:CreateWebhookSuccess",
    "aliyunaccountid": "143199913651****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "provider": "gitee",
        "owner": "buptwzj",
        "repo": "start-springboot-test",
        "private": true
    }
}

關於data欄位包含的參數解釋,請參見參數解析