本文介绍函数计算通过操作审计接入作为事件源发布到事件总线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字段包含的参数解释如下表所示。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
requestId | String | 8c394117-3a0e-4b8f-870b-ab22da84**** | 产生该事件的函数计算请求ID。 |
serviceName | String | test-fc-service | 服务名称。 |
functionName | String | test-nodejs | 函数名称。 |
runtime | String | custom-container | 运行环境。例如:Node.js 14、Golong、Java、CustomContainer等。 |
memorySize | String | 1024 | 内存规格。当执行函数时,可使用的最大内存。 |
instanceType | String | ElasticInstance | 实例类型。 |
statusCode | String | 501 | 请求返回的状态码。 |
errorCode | String | Internal Server Error | 错误代码。 |
errorMessage | 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": {
"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字段包含的参数解释如下表所示。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
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 | 错误代码。 |
errorMessage | 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": {
"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字段包含的参数解释如下表所示。
参数 | 类型 | 示例值 | 描述 |
---|---|---|---|
level | String | Warning | 事件等级。取值如下:
|
resourceType | String | Application | 资源类型。取值如下:
|
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 | 事件等级。取值如下:
|
resourceType | String | AppCenter | 资源类型。取值如下:
|
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字段包含的参数解释,请参见参数解析。