Enterprise Distributed Application Service events

更新时间:
复制 MD 格式

This topic describes the event types that Enterprise Distributed Application Service (EDAS) publishes to EventBridge as an event source.

Event types

EDAS can publish the following event types to EventBridge.

Event type

Value of the type parameter

Application change event

edas:ApplicationChange:ChangeOrder

For more information about the parameters defined in the CloudEvents specification, see Event overview.

Application change event

The following is a sample event that EventBridge receives when an application changes.

{
    "id":"7de5d52e-c3c0-45fa-80c8-2a9d5bd1****",
    "time":"2020-11-19T21:04:41+08:00",
    "source":"acs.edas",
    "data":{
        "appId":"6826ccd2-5c57-46c0-a2e5-6caca07c****",
        "event":{
            "category":"OPERATION",
            "id":"e24b1dc2-3543-4f84-b1c4-ee78b3ef****",
            "involvedObject":{
                "additionalProperties":{
                    "changeOrderId":"28ab8de8-22b9-430d-9952-00f67693****",
                    "description":"Version: Wed Nov 04 21:30:55 CST 2020 | Package Name: download | Deployment Target: Default Group",
                    "eventType":"onSuccess",
                    "targets":"i-2ze12crf3p25aljy****"
                },
                "id":"6826ccd2-5c57-46c0-a2e5-6caca07c****",
                "name":"ticketcore-service",
                "type":"APPLICATION"
            },
            "labels":{

            },
            "level":"NORMAL",
            "message":"msg.app.codeploy.success",
            "payloads":{

            },
            "primaryUser":{
                "id":"153441211526****",
                "name":"linksus Cloud Journey Times"
            },
            "reason":"APPLICATION_CODEPLOY_SUCCESS",
            "schemaVersion":"1.0",
            "secondaryUser":{
                "id":"29489074400958****",
                "name":"29489074400958****"
            },
            "subjectType":"USER",
            "timestamp":1604496738810
        }
    },
    "specversion":"1.0",
    "datacontenttype":"application/json",
    "type":"edas:ApplicationChange:ChangeOrder",
    "aliyunaccountid":"123456789098****",
    "aliyunpublishtime":"2020-11-19T21:04:42.179PRC",
    "aliyuneventbusname":"default",
    "aliyunregionid":"cn-hangzhou",
    "aliyunpublishaddr":"172.25.XX.XX"
}

The following table describes the parameters in the data field.

Parameter

Type

Example

Description

appId

String

6826ccd2-5c57-46c0-a2e5-6caca07c****

The ID of the application executing the change.

event

Struct

The event content.

category

String

OPERATION

The event type.

id

String

e24b1dc2-3543-4f84-b1c4-ee78b3ef****

The ID of the event that is generated in EDAS.

involvedObject

Struct

The object that is involved in the application change.

additionalProperties

Struct

Additional attributes.

changeOrderId

String

28ab8de8-22b9-430d-9952-00f67693****

The ID of the change order.

description

String

Version: Wed Nov 04 21:30:55 CST 2020 | Package Name: download | Deployment Target: Default Group

The description of the change.

eventType

String

onSuccess

The event type of the involvedObject.

targets

String

i-2ze12crf3p25aljy****

The target object of the event change.

id

String

6826ccd2-5c57-46c0-a2e5-6caca07c****

The unique ID of the involvedObject.

name

String

ticketcore-service

The name of the involvedObject.

type

String

APPLICATION

The type of the involvedObject.

labels

String

None

The tags for the change.

level

String

NORMAL

The event level.

Valid values:

  • NORMAL

  • WARNING

message

String

msg.app.codeploy.success

The event message.

payloads

String

None

The data in the change request.

primaryUser

Struct

The user who initiated the change.

id

String

153441211526****

The ID of the user who initiated the change.

name

String

Linksus Yuntu Times

The username of the user who initiated the change.

reason

String

APPLICATION_CODEPLOY_SUCCESS

The reason for the event.

schemaVersion

String

1.0

The version number of the event pattern.

secondaryUser

Struct

The Resource Access Management (RAM) user who initiated the change.

id

String

29489074400958****

The ID of the RAM user who initiated the change.

name

String

29489074400958****

The name of the RAM user who initiated the change.

subjectType

String

USER

The type of the subject that triggered the event.

timestamp

Timestamp

1604496738810

The UNIX timestamp when the change was completed.