This topic describes the types of Function Compute events that ActionTrail records and can be published to EventBridge.
Event types
The following table describes the types of Function Compute events that can be published to EventBridge.
Event | Value of the type parameter |
An operation is performed on a resource | fc:ActionTrail:AliyunServiceEvent |
An API operation is called | fc:ActionTrail:ApiCall |
An operation is performed in the console | 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 | |
The deployment of an application version fails to be cancelled | fc:Release:DeployCancelFailed |
The deployment of an application version is successfully cancelled | fc:Release:DeployCancelSuccess |
The deployment of an application version fails to be executed | fc:Release:DeployFailed |
The deployment of an application version is successfully executed | fc:Release:DeploySuccess |
fc:Release:DeployPlanFailed | |
fc:Release:DeployPlanSuccess | |
The environment of an application version fails to be prepared | fc:Release:DeploySetUpFailed |
The environment of an application version is successfully prepared | fc:Release:DeploySetUpSuccess |
The resources of an application version fail to be synchronized | fc:Release:DeploySyncFailed |
The resources of an application version are successfully synchronized | fc:Release:DeploySyncSuccess |
fc:Repository:CreateFailed | |
fc:Repository:CreateSuccess | |
fc:Repository:CreateWebhookFailed | |
fc:Repository:CreateWebhookSuccess |
For more information about the parameters defined in the CloudEvents specification, see Overview.
A function fails to be created
The following example shows the event that EventBridge receives when a function fails to be created:
{
"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"
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
requestId | String | 8c394117-3a0e-4b8f-870b-ab22da84**** | The ID of the Function Compute request that generates the event. |
serviceName | String | test-fc-service | The name of the service. |
functionName | String | test-nodejs | The name of the function. |
runtime | String | custom-container | The runtime environment. Examples: Node.js 14, GoLong, Java, and custom-container. |
memorySize | String | 1024 | The size of the memory. It is the maximum size of the memory that can be used when the function is executed. |
instanceType | String | ElasticInstance | The type of the instance. |
statusCode | String | 501 | The status code that the request returns. |
errorCode | String | Internal Server Error | The error code that is returned. |
errorMessage | String | InternalServerError occurred | The error message that is returned. |
A function is successfully created
The following example shows the event that EventBridge receives when a function is successfully created:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A function fails to be deleted
The following example shows the event that the EventBridge receives when a function fails to be deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A function is successfully deleted
The following example shows the event that EventBridge receives when a function is successfully deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A function fails to be updated
The following example shows the event that the EventBridge receives when a function fails to be updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A function is successfully updated
The following example shows the event that EventBridge receives when a function is successfully updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service fails to be created
The following example shows the event that EventBridge receives when a service fails to be created:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service is successfully created
The following example shows the event that EventBridge receives when a service is successfully created:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service fails to be deleted
The following example shows the event that EventBridge receives when a service fails to be deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service is successfully deleted
The following example shows the event that EventBridge receives when a service is successfully deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service fails to be updated
The following example shows the event that EventBridge receives when a service fails to be updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A service is successfully updated
The following example shows the event that EventBridge receives when a service is successfully updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A trigger fails to be created
The following example shows the event that EventBridge receives when a trigger fails to be created:
{
"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"
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
requestId | String | 8c394117-3a0e-4b8f-870b-ab22da84**** | The ID of the Function Compute request that generates the event. |
serviceName | String | test-fc-service | The name of the service. |
functionName | String | test-nodejs | The name of the function. |
triggerName | String | test-trigger | The name of the trigger. |
triggerType | String | eventbridge | The type of the trigger. |
statusCode | String | 501 | The status code that the request returns. |
errorCode | String | Internal Server Error | The error code that is returned. |
errorMessage | String | InternalServerError occurred | The error message that is returned. |
A trigger is successfully created
The following example shows the event that EventBridge receives when a trigger is successfully created:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A trigger fails to be deleted
The following example shows the event that the EventBridge receives when a trigger fails to be deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A trigger is successfully deleted
The following example shows the event that the EventBridge receives when a trigger is successfully deleted:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A trigger fails to be updated
The following example shows the event that the EventBridge receives when a trigger fails to be updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
A trigger is successfully updated
The following example shows the event that EventBridge receives when a trigger is successfully updated:
{
"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"
}
}
For more information about the parameters contained in data, see the field description table.
An application fails to be created
The following example shows the event that EventBridge receives when an application fails to be created:
{
"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
}
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
level | String | Warning | The severity level of the event. Valid values:
|
resourceType | String | Application | The resource type. Valid values:
|
platform | String | AppCenter | The name of the platform to which the event belongs. |
applicationName | String | start-springboot-it4j | The name of the application. |
templateName | String | start-springboot | The name of the application template. |
accountId | String | 143199913651**** | The ID of the Alibaba Cloud account. |
roleArn | String | acs:ram::143199913651****:role/aliyunfcserverlessdevsrole | The Alibaba Cloud Resource Name (ARN) of the RAM role that is used to deploy the application. |
errorMessage | String | some error | The error message. |
parameters | Object | The custom parameters that can be configured by users in the application template. | |
functionName | String | springboot | The name of the function. |
region | String | cn-hangzhou | The region where the application is deployed. |
serviceName | String | web-framework-it4j | The name of the service. |
repoSource | Object | The information about the code repository that is associated with the application. | |
provider | String | gitee | The type of the repository. The following repository types are supported: GitHub, Gitee, GitLab, and Codeup. |
owner | String | buptwzj | The account to which the repository belongs. |
repo | String | start-springboot-it4j | The name of the repository. |
private | String | true | Specify whether the repository is private. |
An application is successfully created
The following example shows the event that EventBridge receives when an application is successfully created:
{
"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
}
}
}
For information about the parameters contained in data, see the field description table.
An application fails to be deleted
The following example shows the event that EventBridge receives when an application fails to be deleted:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
Application resources fail to be deleted
The following example shows the event that EventBridge receives when application resources fail to be deleted:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
Application resources are successfully deleted
The following example shows the event that EventBridge receives when application resources are successfully deleted:
{
"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"
}
}
}
For information about the parameters contained in data, see the field description table.
An application is successfully deleted
The following example shows the event that EventBridge receives when an application is successfully deleted:
{
"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****"
}
}
For information about the parameters contained in data, see the field description table.
An application fails to be updated
The following example shows the event that EventBridge receives when an application fails to be updated:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
An application is successfully updated
The following example shows the event that EventBridge receives when an application is successfully updated:
{
"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
}
}
}
For information about the parameters contained in data, see the field description table.
An application version fails to be created
The following example shows the event that EventBridge receives when an application version fails to be created:
{
"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": ""
}
}
}
The following table describes the parameters contained in data.
Parameter | Type | Example | Description |
level | String | Application | The severity level of the event. Valid values:
|
resourceType | String | AppCenter | The resource type. Valid values:
|
platform | String | start-springboot-it4j | The name of the platform to which the event belongs. |
applicationName | String | appcenter-demo-new | The name of the application. |
accountId | String | 143199913651**** | The ID of the Alibaba Cloud account. |
errorMessage | String | The code version does not have a commit or branch | The error message. |
repoSource | Object | The information about the code repository that is associated with the application. | |
provider | String | github | The type of the repository. The following repository types are supported: GitHub, Gitee, GitLab, and Codeup. |
owner | String | doublechoose | The account to which the repository belongs. |
repo | String | start-django-1ayl | The name of the repository. |
private | Boolean | true | Specify whether the repository is private. |
codeVersion | Object | The code version that corresponds to the application version. | |
branch | String | master | The code branch. Example: master. |
commit | String | - | The ID of the commitment. |
message | String | - | The message returned after git commit is executed. |
An application version is successfully created
The following example shows the event that EventBridge receives when an application version is successfully created:
{
"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****"
}
}
}
For information about the parameters contained in data, see the field description table.
An application version fails to be deleted
The following example shows the event that the EventBridge receives when an application version fails to be deleted:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
An application version is successfully deleted
The following example shows the event that EventBridge receives when an application version is successfully deleted:
{
"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": ""
}
]
}
}
For information about the parameters contained in data, see the field description table.
The deployment of an application version fails to be cancelled
The following example shows the event that EventBridge receives when the deployment of an application version fails to be cancelled:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
The deployment of an application version is successfully cancelled
The following example shows the event that EventBridge receives when the deployment of an application version is successfully cancelled:
{
"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****"
}
}
}
For information about the parameters contained in data, see the field description table.
The deployment of an application version fails to be executed
The following example shows the event that EventBridge receives when the deployment of an application version fails to be executed:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
The deployment of an application version is successfully executed
The following example shows the event that EventBridge receives when the deployment of an application version is successfully executed:
{
"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
}
}
For information about the parameters contained in data, see the field description table.
The resources of an application version fail to be checked
The following example shows the event that EventBridge receives when the resources of an application version fail to be checked:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
The resources of an application are successfully checked
The following example shows the event that EventBridge receives when the resources of an application are successfully checked:
{
"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
}
}
For information about the parameters contained in data, see the field description table.
The environment of an application version fails to be prepared
The following example shows the event that EventBridge receives when the environment of an application version fails to be prepared:
{
"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****]]"
}
}
For information about the parameters contained in data, see the field description table.
The environment of an application version is successfully prepared
The following example shows the event that EventBridge receives when the environment of an application version is successfully prepared:
{
"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
}
}
For information about the parameters contained in data, see the field description table.
The resources of an application version fail to be synchronized
The following example shows the event that EventBridge receives when the resources of an application version fail to be synchronized:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
The resources of an application version are successfully synchronized
The following example shows the event that EventBridge receives when the resources of an application version are successfully synchronized:
{
"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
}
}
For information about the parameters contained in data, see the field description table.
A code repository fails to be created
The following example shows the event that EventBridge receives when a code repository fails to be created:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
A code repository is successfully created
The following example shows the event that EventBridge receives when a code repository is successfully created:
{
"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
}
}
For information about the parameters contained in data, see the field description table.
A webhook fails to be created in the code repository
The following example shows the event that EventBridge receives when a webhook fails to be created in the code repository:
{
"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"
}
}
For information about the parameters contained in data, see the field description table.
A webhook is successfully created in the code repository
The following example shows the event that EventBridge receives when a webhook is successfully created in the code repository:
{
"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
}
}
For information about the parameters contained in data, see the field description table.