Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CRH Cloud event update #14

Open
wants to merge 6 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion DataLoader.json
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,11 @@
},
"resource_manager": {
"cloudeventTypes": {
"released": [],
"released": [
"equinix.resource_manager.event.created",
"equinix.resource_manager.event.deleted",
"equinix.resource_manager.event.updated"
],
"preview": []
},
"metricNames": {
Expand Down
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -219,6 +219,16 @@ The following data payloads are the supported events and formats for Equinix Int
#### Data Type
`equinix.resource_manager.v1.ChangeEvent`
#### Supported Events, Metrics, and Alerts
#### Events

<details>
<summary>Released</summary>

`equinix.resource_manager.event.created` <br>
`equinix.resource_manager.event.deleted` <br>
`equinix.resource_manager.event.updated`

</details>



Expand Down
15 changes: 14 additions & 1 deletion jsonschema/catalog.json
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,20 @@
"datatype": "equinix.resource_manager.v1.ChangeEvent",
"cloudeventTypes": {
"released": [],
"preview": []
"preview": [
{
"name": "equinix.resource_manager.event.created",
"description": "Org / Project created event."
},
{
"name": "equinix.resource_manager.event.updated",
"description": "Org / Project updated event."
},
{
"name": "equinix.resource_manager.event.deleted",
"description": "Org / Project deleted event."
}
]
},
"metricNames": {
"released": [],
Expand Down
32 changes: 28 additions & 4 deletions jsonschema/equinix/resource_manager/v1/ChangeEvent.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,28 +12,52 @@
"properties": {
"resource": {
"$ref": "#/definitions/Resource",
"additionalProperties": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

keep this since this is an object.

"description": "Optional. The Backup event payload. Unset for deletion events."
},
"message": {
"type": "string",
"description": "Supporting message describing the event"
}
},
"additionalProperties": true,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Keep this as true since this is an object

"type": "object",
"title": "ChangeEvent Event Data",
"description": "The data within all ChangeEvent events."
},
"Resource": {
"additionalProperties": true,
"properties": {
"id": {
"type": "string",
"description": "Equinix assigned unique identifier of the resource generating the event"
},
"type": {
"type": "string",
"description": "Type of the resource generating the event"
},
"name": {
"type": "string",
"description": "Name of the resource generating the event"
}
},
"type": "object",
"title": "Resource",
"description": "Schema of the resource that fired the event"
}
},
timmy-equinix marked this conversation as resolved.
Show resolved Hide resolved
"cloudeventTypes": {
"released": [],
"released": [
{
"name": "equinix.resource_manager.event.created",
"description": "Org / Project created event."
},
{
"name": "equinix.resource_manager.event.updated",
"description": "Org / Project updated event."
},
{
"name": "equinix.resource_manager.event.deleted",
"description": "Org / Project deleted event."
Comment on lines +49 to +58
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Those are the comprehensive real event types that resource manager generated. Please check what we agreed to publish. They should look like equinix.resource_manager.organization.state.created, etc.

}
],
"preview": []
},
"metricNames": {
Expand Down
Loading