
# 资源变更消息存储模型
#### 资源变更消息存储模型
表1资源变更消息存储模型 
| **参数**             | **参数类型**        | **描述**      |
|:---|:---|:---|
| notification_items | Array of Object | 资源变更消息通知列表。 |
   
表2notification_items参数 
| **参数**                     | **参数类型** | **描述**                                                                                  |
|:---|:---|:---|
| notification_type          | String   | 消息通知类型。此处的消息通知类型为"ResourceChanged"。                                                     |
| notification_creation_time | String   | 消息发送时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。 |
| domain_id                  | String   | 账号ID。                                                                                   |
| detail                     | Object   | 消息详情。                                                                                   |
   
表3detail参数 
| **参数**        | **参数类型** | **描述**                                                                                    |
|:---|:---|:---|
| resource_id   | String   | 资源ID。                                                                                     |
| resource_type | String   | 资源类型。                                                                                     |
| event_type    | Enum     | 事件类型（CREATE\|UPDATE\|DELETE）。                                                             |
| capture_time  | String   | 事件捕获时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。 |
| resource      | Object   | 资源详情。                                                                                     |
   
表4resource 
| **参数**             | **参数类型** | **描述**                                                                                       |
|:---|:---|:---|
| id                 | String   | 资源ID。                                                                                        |
| name               | String   | 资源名称。                                                                                        |
| provider           | String   | 云服务名称。                                                                                       |
| type               | String   | 云资源类型。                                                                                       |
| region_id          | String   | 资源所在区域ID。                                                                                    |
| project_id         | String   | IAM项目ID。                                                                                     |
| project_name       | String   | IAM项目名称。                                                                                     |
| ep_id              | String   | 企业项目ID。                                                                                      |
| ep_name            | String   | 企业项目名称。                                                                                      |
| checksum           | String   | 校验和。                                                                                         |
| created            | String   | 云资源初始创建时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。  |
| updated            | String   | 云资源最后更新时间。 具有固定格式：遵循ISO8601格式，UTC时区（例如：2018-11-14T08:59:14Z）。 |
| provisioning_state | String   | 资源操作状态。                                                                                      |
| tags               | Map      | 租户为云资源做的标记。                                                                                  |
| properties         | Map      | 云资源的属性详情。                                                                                    |
   
#### 资源变更消息存储示例
```
{
"notification_items": [
{
"detail": {
"resource": {
"id": "ea05ef41-8bd6-4a9c-af39-244e1ec448eb",
"name": "as-group-test",
"provider": "as",
"type": "scalingGroups",
"checksum": "",
"region_id": "regionid1a",
"project_id": "068d54ceca00d5302f70c00aaf6a471c",
"project_name": "test",
"ep_id": "0",
"ep_name": "default"
},
"resource_id": "ea05ef41-8bd6-4a9c-af39-244e1ec448eb",
"resource_type": "as.scalingGroups",
"event_type": "DELETE",
"capture_time": "2020-12-08T09:30:27.158Z"
},
"notification_type": "ResourceChanged",
"notification_creation_time": "2020-12-08T09:30:27.272Z",
"domain_id": "059b5c937100d3e40ff0c00a7675a0a0"
}
]
}
```
