All Products
Search
Document Center

:Function Compute events

最終更新日:Oct 21, 2024

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 type

Value of the type parameter

A function fails to be created

fc:Function:CreateFailed

A function is created

fc:Function:CreateSuccess

A function fails to be deleted

fc:Function:DeleteFailed

A function is deleted

fc:Function:DeleteSuccess

A function fails to be updated

fc:Function:UpdateFailed

A function is updated

fc:Function:UpdateSuccess

A client error occurs during function invocation

fc:Function:InvokeWithClientError

A service fails to be created

fc:Service:CreateFailed

A service is created

fc:Service:CreateSuccess

A service fails to be deleted

fc:Service:DeleteFailed

A service is deleted

fc:Service:DeleteSuccess

A service fails to be updated

fc:Service:UpdateFailed

A service is updated

fc:Service:UpdateSuccess

A trigger fails to be created

fc:Trigger:CreateFailed

A trigger is created

fc:Trigger:CreateSuccess

A trigger fails to be deleted

fc:Trigger:DeleteFailed

A trigger is deleted

fc:Trigger:DeleteSuccess

A trigger fails to be updated

fc:Trigger:UpdateFailed

A trigger is updated

fc:Trigger:UpdateSuccess

An application fails to be created

fc:Application:CreateFailed

An application is created

fc:Application:CreateSuccess

An application fails to be deleted

fc:Application:DeleteFailed

An application resource fails to be deleted

fc:Application:DeleteResourceFailed

An application resource is deleted

fc:Application:DeleteResourceSuccess

An application is deleted

fc:Application:DeleteSuccess

An application fails to be updated

fc:Application:UpdateFailed

An application is updated

fc:Application:UpdateSuccess

An application version fails to be created

fc:Release:CreateFailed

An application version is created

fc:Release:CreateSuccess

An application version fails to be deleted

fc:Release:DeleteFailed

An application version is deleted

fc:Release:DeleteSuccess

The deployment of an application version fails to be canceled

fc:Release:DeployCancelFailed

The deployment of an application version is canceled

fc:Release:DeployCancelSuccess

The deployment of an application version fails to be executed

fc:Release:DeployFailed

The deployment of an application version is executed

fc:Release:DeploySuccess

A resource of an application version fails to be checked

fc:Release:DeployPlanFailed

A resource of an application version is checked

fc:Release:DeployPlanSuccess

The environment of an application version fails to be prepared

fc:Release:DeploySetUpFailed

The environment of an application version is prepared

fc:Release:DeploySetUpSuccess

A resource of an application version fails to be synchronized

fc:Release:DeploySyncFailed

A resource of an application version is synchronized

fc:Release:DeploySyncSuccess

A code repository fails to be created

fc:Repository:CreateFailed

A code repository is created

fc:Repository:CreateSuccess

A webhook fails to be created in the code repository

fc:Repository:CreateWebhookFailed

A webhook is created in the code repository

fc:Repository:CreateWebhookSuccess

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

A user logs on to the console

fc:ActionTrail:ConsoleSignin

A user logs off from the console

fc:ActionTrail:ConsoleSignout

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

The following table describes parameters in the data field.

Parameter

Required

Example

Description

level

String

Warning

The severity level of the event. Valid values:

  • Normal

  • Warning

resourceType

String

Function

The resource type. Valid values:

  • Service

  • Function

  • Trigger

  • Instance

  • Application

  • Release

  • Repository

platform

String

FC

The name of the platform to which the event belongs.

requestId

String

8c394117-3a0e-4b8f-870b-ab22da84****

The ID of the Function Compute request that generates the event.

serviceName

String

test-fc-service

The service name.

functionName

String

test-nodejs

The function name.

runtime

String

custom-container

The runtime environment. Examples: Node.js 14, GoLong, Java, and a custom container.

memorySizeMB

String

1024

The memory size, which is the maximum size of the memory that can be used when the function is executed. Unit: MB.

instanceType

String

ElasticInstance

The instance type.

statusCode

String

501

The response code.

errorCode

String

Internal Server Error

The error code.

Message

String

InternalServerError occurred

The error message.

A function is created

The following example shows the event that EventBridge receives when a function is 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": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

For information about parameters in the data field, see the field description table.

A function fails to be deleted

The following example shows the event that 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": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A function is deleted

The following example shows the event that EventBridge receives when a function is 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": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

For information about parameters in the data field, see the field description table.

A function fails to be updated

The following example shows the event that 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": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A function is updated

The following example shows the event that EventBridge receives when a function is 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": {
        "level": "Normal",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "runtime":"custom-container",
        "memorySizeMB":"1024",
        "instanceType":"ElasticInstance",
        "statusCode":"200"
    }
}

For information about parameters in the data field, see the field description table.

A client error occurs during function invocation

The following example shows the event that EventBridge receives when a client error occurs during function invocation:

{
    "id": "45ef4dewdwe1-7c35-447a-bd93-fab****",
    "source": "acs.fc",
    "specversion": "1.0",
    "subject": "acs:fc:cn-hangzhou:123456789098****:services/test-fc-service.LATEST/functions/test-nodejs",
    "time": "2020-11-19T21:04:41+08:00",
    "type": "fc:Function:InvokeWithClientError",
    "aliyunaccountid": "123456789098****",
    "aliyunpublishtime": "2020-11-19T21:04:42Z",
    "aliyuneventbusname": "default",
    "aliyunregionid": "cn-hangzhou",
    "aliyunpublishaddr": "172.25.XX.XX",
    "data": {
        "level": "Warning",
        "resourceType": "Function",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da8****",
        "serviceName": "test-fc-service",
        "functionName": "test-nodejs",
        "qualifier": "LATEST",
        "statusCode": "404",
        "clientIP": "192.168.XX.XX",
        "errorCode": "FunctionNotFound",
        "message": "function 'test-nodejs' does not exist in service 'test-fc-service'"
    }
}

The following table describes parameters in the data field.

Parameter

Required

Example

Description

level

String

Warning

The severity level of the event. Valid values:

  • Normal

  • Warning

resourceType

String

Function

The resource type. Valid values:

  • Service

  • Function

  • Trigger

  • Instance

  • Application

  • Release

  • Repository

platform

String

FC

The name of the platform to which the event belongs.

requestId

String

8c394117-3a0e-4b8f-870b-ab22da8****

The ID of the Function Compute request that generates the event.

serviceName

String

test-fc-service

The service name.

functionName

String

test-nodejs

The function name.

qualifier

String

LATEST

The version or alias of the service to which the instance belongs.

statusCode

String

404

The response code.

clientIP

String

192.168.XX.XX

The IP address of the client that invokes the function.

errorCode

String

FunctionNotFound

The error code.

message

String

function 'test-nodejs' does not exist in service 'test-fc-service'

The error message.

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": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC",
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A service is created

The following example shows the event that EventBridge receives when a service is 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": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

For information about parameters in the data field, 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": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A service is deleted

The following example shows the event that EventBridge receives when a service is 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": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

For information about parameters in the data field, 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": {
        "level": "Warning",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A service is updated

The following example shows the event that EventBridge receives when a service is 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": {
        "level": "Normal",
        "resourceType": "Service",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "statusCode":"200"
    }
}

For information about parameters in the data field, 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": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

The following table describes parameters in the data field.

Parameter

Required

Example

Description

level

String

Warning

The severity level of the event. Valid values:

  • Normal

  • Warning

resourceType

String

Trigger

The resource type. Valid values:

  • Service

  • Function

  • Trigger

  • Instance

  • Application

  • Release

  • Repository

platform

String

FC

The name of the platform to which the event belongs.

requestId

String

8c394117-3a0e-4b8f-870b-ab22da84****

The ID of the Function Compute request that generates the event.

serviceName

String

test-fc-service

The service name.

functionName

String

test-nodejs

The function name.

triggerName

String

test-trigger

The trigger name.

triggerType

String

eventbridge

The trigger type.

statusCode

String

501

The response code.

errorCode

String

Internal Server Error

The error code.

Message

String

InternalServerError occurred

The error message.

A trigger is created

The following example shows the event that EventBridge receives when a trigger is 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": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

For information about parameters in the data field, see the field description table.

A trigger fails to be deleted

The following example shows the event that 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": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A trigger is deleted

The following example shows the event that EventBridge receives when a trigger is 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": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

For information about parameters in the data field, see the field description table.

A trigger fails to be updated

The following example shows the event that 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": {
        "level": "Warning",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"501",
        "errorCode": "Internal Server Error",
        "Message": "InternalServerError occurred"
    }
}

For information about parameters in the data field, see the field description table.

A trigger is updated

The following example shows the event that EventBridge receives when a trigger is 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": {
        "level": "Normal",
        "resourceType": "Trigger",
        "platform": "FC"
        "requestId": "8c394117-3a0e-4b8f-870b-ab22da84****",
        "serviceName":"test-fc-service",
        "functionName": "test-nodejs",
        "triggerName": "test-trigger",
        "triggerType": "eventbridge",
        "statusCode":"200"
    }
}

For information about parameters in the data field, 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 parameters in the data field.

Parameter

Required

Example

Description

level

String

Warning

The severity level of the event. Valid values:

  • Normal

  • Warning

resourceType

String

Application

The resource type. Valid values:

  • Service

  • Function

  • Trigger

  • Instance

  • Application

  • Release

  • Repository

platform

String

AppCenter

The name of the platform to which the event belongs.

applicationName

String

start-springboot-it4j

The application name.

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 Resource Access Management (RAM) role that is used to deploy the application.

errorMessage

String

some error

The error message.

parameters

Object

The custom parameters that are configured by users in the application template.

functionName

String

springboot

The function name.

region

String

cn-hangzhou

The region where the application is deployed.

serviceName

String

web-framework-it4j

The service name.

repoSource

Object

The information about the code repository that is associated with the application.

provider

String

gitee

The repository type. 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 repository name.

private

String

true

Indicates whether the repository is private.

An application is created

The following example shows the event that EventBridge receives when an application is 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 parameters in the data field, 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 parameters in the data field, see the field description table.

An application resource fails to be deleted

The following example shows the event that EventBridge receives when an application resource fails 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 parameters in the data field, see the field description table.

An application resource is deleted

The following example shows the event that EventBridge receives when an application resource is 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 parameters in the data field, see the field description table.

An application is deleted

The following example shows the event that EventBridge receives when an application is 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 parameters in the data field, 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 parameters in the data field, see the field description table.

An application is updated

The following example shows the event that EventBridge receives when an application is 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 parameters in the data field, 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 parameters in the data field.

Parameter

Required

Example

Description

level

String

Application

The severity level of the event. Valid values:

  • Normal

  • Warning

resourceType

String

AppCenter

The resource type. Valid values:

  • Service

  • Function

  • Trigger

  • Instance

  • Application

  • Release

  • Repository

platform

String

start-springboot-it4j

The name of the platform to which the event belongs.

applicationName

String

appcenter-demo-new

The application name.

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 repository type. 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 repository name.

private

Boolean

true

Indicates 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 commit ID.

message

String

-

The message returned after git commit is executed.

An application version is created

The following example shows the event that EventBridge receives when an application version is 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 parameters in the data field, see the field description table.

An application version fails to be deleted

The following example shows the event that 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 parameters in the data field, see the field description table.

An application version is deleted

The following example shows the event that EventBridge receives when an application version is 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 parameters in the data field, see the field description table.

The deployment of an application version fails to be canceled

The following example shows the event that EventBridge receives when the deployment of an application version fails to be canceled:

{
    "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 parameters in the data field, see the field description table.

The deployment of an application version is canceled

The following example shows the event that EventBridge receives when the deployment of the deployment of an application version is canceled:

{
    "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 parameters in the data field, 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 parameters in the data field, see the field description table.

The deployment of an application version is executed

The following example shows the event that EventBridge receives when the deployment of an application version is 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 parameters in the data field, see the field description table.

A resource of an application version fails to be checked

The following example shows the event that EventBridge receives when a resource of an application version fails 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 parameters in the data field, see the field description table.

A resource of an application version is checked

The following example shows the event that EventBridge receives when a resource of an application version is 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 parameters in the data field, 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 parameters in the data field, see the field description table.

The environment of an application version is prepared

The following example shows the event that EventBridge receives when the environment of an application version is 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 parameters in the data field, see the field description table.

A resource of an application version fails to be synchronized

The following example shows the event that EventBridge receives when a resource of an application version fails 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 parameters in the data field, see the field description table.

A resource of an application version is synchronized

The following example shows the event that EventBridge receives when a resource of an application version is 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 parameters in the data field, 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 parameters in the data field, see the field description table.

A code repository is created

The following example shows the event that EventBridge receives when a code repository is 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 parameters in the data field, 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 parameters in the data field, see the field description table.

A webhook is created in the code repository

The following example shows the event that EventBridge receives when a webhook is 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 parameters in the data field, see the field description table.