本文介绍函数计算通过操作审计接入作为事件源发布到事件总线EventBridge的事件类型。

事件类型

函数计算支持发布到事件总线EventBridge的事件类型如下所示。

事件类型type参数值
阿里云平台对资源执行的操作事件fc:ActionTrail:AliyunServiceEvent
API调用fc:ActionTrail:ApiCall
控制台的操作事件fc:ActionTrail:ConsoleOperation
创建函数失败fc:Function:CreateFailed
创建函数成功fc:Function:CreateSuccess
删除函数失败fc:Function:DeleteFailed
创建函数成功fc:Function:CreateSuccess
删除函数失败fc:Function:DeleteFailed
删除函数成功fc:Function:DeleteSuccess
更新函数失败fc:Function:UpdateFailed
更新函数成功fc:Function:UpdateSuccess
创建服务失败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

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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "InternalServerError occurred"
    }
}

data字段包含的参数解释如下表所示。

参数类型示例值描述
requestIdString8c394117-3a0e-4b8f-870b-ab22da84****产生该事件的函数计算请求ID。
serviceNameStringtest-fc-service服务名称。
functionNameStringtest-nodejs函数名称。
runtimeStringcustom-container运行环境。例如:Node.js 14、Golong、Java、CustomContainer等。
memorySizeString1024内存规格。当执行函数时,可使用的最大内存。
instanceTypeStringElasticInstance实例类型。
statusCodeString501请求返回的状态码。
errorCodeStringInternal Server Error错误代码。
errorMessageStringInternalServerError 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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySize":"1024MB",
        "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",
    "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "InternalServerError occurred"
    }
}

data字段包含的参数解释如下表所示。

参数类型示例值描述
requestIdString8c394117-3a0e-4b8f-870b-ab22da84****产生该事件的FC请求ID。
serviceNameStringtest-fc-service服务名称。
functionNameStringtest-nodejs函数名称。
triggerNameStringtest-trigger触发器名称。
triggerTypeStringeventbridge触发器类型。
statusCodeString501请求返回的状态码。
errorCodeStringInternal Server Error错误代码。
errorMessageStringInternalServerError 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": {
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "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": {
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "errorMessage": "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": {
        "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字段包含的参数解释如下表所示。

参数类型示例值描述
levelStringWarning事件等级。取值如下:
  • Normal:正常。
  • Warning:警告。
resourceTypeStringApplication资源类型。取值如下:
  • Service:服务。
  • Function:函数。
  • Trigger:触发器。
  • Instance:实例。
  • Application:应用。
  • Release:应用版本。
  • Repository:代码仓库。
platformStringAppCenter事件所属平台。
applicationNameStringstart-springboot-it4j应用名称。
templateNameStringstart-springboot应用模板名称。
accountIdString143199913651****用户的Account ID。
roleArnStringacs:ram::143199913651****:role/aliyunfcserverlessdevsrole部署应用所需RAM的Arn。
errorMessageStringsome error错误信息。
parametersObject应用模板对用户暴露的自定义参数。
functionNameStringspringboot函数名字。
regionStringcn-hangzhou地域。
serviceNameStringweb-framework-it4j服务名字。
repoSourceObject应用关联的代码仓库信息。
providerStringgitee仓库类型。包括Github、Gitee、Gitlab、Codeup等。
ownerStringbuptwzj仓库所属账号。
repoStringstart-springboot-it4j仓库名称。
privateStringtrue是否为私有仓库。

创建应用成功

创建应用成功时,事件总线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字段包含的参数解释如下表所示。

参数类型示例值描述
levelStringApplication事件等级。取值如下:
  • Normal:正常。
  • Warning:警告。
resourceTypeStringAppCenter资源类型。取值如下:
  • Service:服务。
  • Function:函数。
  • Trigger:触发器。
  • Instance:实例。
  • Application:应用。
  • Release:应用版本。
  • Repository:代码仓库。
platformStringstart-springboot-it4j事件所属平台。
applicationNameStringappcenter-demo-new应用名称。
accountIdString143199913651****用户的Account ID。
errorMessageStringThe code version does not have a commit or branch错误信息。
repoSourceObject应用关联的代码仓库信息。
providerStringgithub仓库类型。包括Github、Gitee、Gitlab、Codeup等。
ownerStringdoublechoose仓库所属账号。
repoStringstart-django-1ayl仓库名称。
privateBooleantrue是否为私有仓库。
codeVersionObject应用版本对应的代码版本。
branchStringmaster代码分支。例如master。
commitString-提交的Commit Id。
messageString-执行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字段包含的参数解释,请参见参数解析