本文介绍函数计算通过操作审计接入作为事件源发布到事件总线EventBridge的事件类型。
事件类型
函数计算支持发布到事件总线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 | |
fc:Repository:CreateWebhookFailed | |
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 | 事件等级。取值如下:
|
resourceType | String | Function | 资源类型。取值如下:
|
platform | String | FC | 事件所属平台。 |
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等。 |
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 | 事件等级。取值如下:
|
resourceType | String | Function | 资源类型。取值如下:
|
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 | 事件等级。取值如下:
|
resourceType | String | Trigger | 资源类型。取值如下:
|
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 | 事件等级。取值如下:
|
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字段包含的参数解释,请参见参数解析。