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.

EventValue of the type parameter
An operation is performed on a resourcefc:ActionTrail:AliyunServiceEvent
An API operation is calledfc:ActionTrail:ApiCall
An operation is performed in the consolefc:ActionTrail:ConsoleOperation
A function fails to be createdfc:Function:CreateFailed
A function is successfully createdfc:Function:CreateSuccess
A function fails to be deletedfc:Function:DeleteFailed
A function is successfully createdfc:Function:CreateSuccess
A function fails to be deletedfc:Function:DeleteFailed
A function is successfully deletedfc:Function:DeleteSuccess
A function fails to be updatedfc:Function:UpdateFailed
A function is successfully updatedfc:Function:UpdateSuccess
A service fails to be createdfc:Service:CreateFailed
A service is successfully createdfc:Service:CreateSuccess
A service fails to be deletedfc:Service:DeleteFailed
A service is successfully deletedfc:Service:DeleteSuccess
A service fails to be updatedfc:Service:UpdateFailed
A service is successfully updatedfc:Service:UpdateSuccess
A trigger fails to be createdfc:Trigger:CreateFailed
A trigger is successfully createdfc:Trigger:CreateSuccess
A trigger fails to be deletedfc:Trigger:DeleteFailed
A trigger is successfully deletedfc:Trigger:DeleteSuccess
A trigger fails to be updatedfc:Trigger:UpdateFailed
A trigger is successfully updatedfc:Trigger:UpdateSuccess
An application fails to be createdfc:Application:CreateFailed
An application is successfully createdfc:Application:CreateSuccess
An application fails to be deletedfc:Application:DeleteFailed
Application resources fail to be deletedfc:Application:DeleteResourceFailed
Application resources are successfully deletedfc:Application:DeleteResourceSuccess
An application is successfully deletedfc:Application:DeleteSuccess
An application fails to be updatedfc:Application:UpdateFailed
An application is successfully updatedfc:Application:UpdateSuccess
An application version fails to be createdfc:Release:CreateFailed
An application version is successfully createdfc:Release:CreateSuccess
An application version fails to be deletedfc:Release:DeleteFailed
An application version is successfully deletedfc:Release:DeleteSuccess
The deployment of an application version fails to be cancelledfc:Release:DeployCancelFailed
The deployment of an application version is successfully cancelledfc:Release:DeployCancelSuccess
The deployment of an application version fails to be executedfc:Release:DeployFailed
The deployment of an application version is successfully executedfc:Release:DeploySuccess
The resources of an application version fail to be checkedfc:Release:DeployPlanFailed
The resources of an application are successfully checkedfc:Release:DeployPlanSuccess
The environment of an application version fails to be preparedfc:Release:DeploySetUpFailed
The environment of an application version is successfully preparedfc:Release:DeploySetUpSuccess
The resources of an application version fail to be synchronizedfc:Release:DeploySyncFailed
The resources of an application version are successfully synchronizedfc:Release:DeploySyncSuccess
A code repository fails to be createdfc:Repository:CreateFailed
A code repository is successfully createdfc:Repository:CreateSuccess
A webhook fails to be created in the code repositoryfc:Repository:CreateWebhookFailed
A webhook is successfully created in the code repositoryfc: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.

ParameterTypeExampleDescription
requestIdString8c394117-3a0e-4b8f-870b-ab22da84****The ID of the Function Compute request that generates the event.
serviceNameStringtest-fc-serviceThe name of the service.
functionNameStringtest-nodejsThe name of the function.
runtimeStringcustom-containerThe runtime environment. Examples: Node.js 14, GoLong, Java, and custom-container.
memorySizeString1024The size of the memory. It is the maximum size of the memory that can be used when the function is executed.
instanceTypeStringElasticInstanceThe type of the instance.
statusCodeString501The status code that the request returns.
errorCodeStringInternal Server ErrorThe error code that is returned.
errorMessageStringInternalServerError occurredThe 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.

ParameterTypeExampleDescription
requestIdString8c394117-3a0e-4b8f-870b-ab22da84****The ID of the Function Compute request that generates the event.
serviceNameStringtest-fc-serviceThe name of the service.
functionNameStringtest-nodejsThe name of the function.
triggerNameStringtest-triggerThe name of the trigger.
triggerTypeStringeventbridgeThe type of the trigger.
statusCodeString501The status code that the request returns.
errorCodeStringInternal Server ErrorThe error code that is returned.
errorMessageStringInternalServerError occurredThe 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.

ParameterTypeExampleDescription
levelStringWarningThe severity level of the event. Valid values:
  • Normal
  • Warning
resourceTypeStringApplicationThe resource type. Valid values:
  • Service
  • Function
  • Trigger
  • Instance
  • Application
  • Release
  • Repository
platformStringAppCenterThe name of the platform to which the event belongs.
applicationNameStringstart-springboot-it4jThe name of the application.
templateNameStringstart-springbootThe name of the application template.
accountIdString143199913651****The ID of the Alibaba Cloud account.
roleArnStringacs:ram::143199913651****:role/aliyunfcserverlessdevsroleThe Alibaba Cloud Resource Name (ARN) of the RAM role that is used to deploy the application.
errorMessageStringsome errorThe error message.
parametersObjectThe custom parameters that can be configured by users in the application template.
functionNameStringspringbootThe name of the function.
regionStringcn-hangzhouThe region where the application is deployed.
serviceNameStringweb-framework-it4jThe name of the service.
repoSourceObjectThe information about the code repository that is associated with the application.
providerStringgiteeThe type of the repository. The following repository types are supported: GitHub, Gitee, GitLab, and Codeup.
ownerStringbuptwzjThe account to which the repository belongs.
repoStringstart-springboot-it4jThe name of the repository.
privateStringtrueSpecify 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.

ParameterTypeExampleDescription
levelStringApplicationThe severity level of the event. Valid values:
  • Normal
  • Warning
resourceTypeStringAppCenterThe resource type. Valid values:
  • Service
  • Function
  • Trigger
  • Instance
  • Application
  • Release
  • Repository
platformStringstart-springboot-it4jThe name of the platform to which the event belongs.
applicationNameStringappcenter-demo-newThe name of the application.
accountIdString143199913651****The ID of the Alibaba Cloud account.
errorMessageStringThe code version does not have a commit or branchThe error message.
repoSourceObjectThe information about the code repository that is associated with the application.
providerStringgithubThe type of the repository. The following repository types are supported: GitHub, Gitee, GitLab, and Codeup.
ownerStringdoublechooseThe account to which the repository belongs.
repoStringstart-django-1aylThe name of the repository.
privateBooleantrueSpecify whether the repository is private.
codeVersionObjectThe code version that corresponds to the application version.
branchStringmasterThe code branch. Example: master.
commitString-The ID of the commitment.
messageString-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.