diff --git a/content/en/api/v2/events/examples.json b/content/en/api/v2/events/examples.json index d4e6bf9f466..0bb8f3669e6 100644 --- a/content/en/api/v2/events/examples.json +++ b/content/en/api/v2/events/examples.json @@ -246,6 +246,7 @@ } }, "category": "change", + "host": "hostname", "integration_id": "custom-events", "message": "payment_processed feature flag has been enabled", "tags": [ @@ -257,7 +258,7 @@ "type": "event" } }, - "html": "
data [required]
\nobject
An event object.
attributes [required]
\nobject
Event attributes.
aggregation_key
\nstring
A string used for aggregation when correlating events. If you specify a key, events are deduplicated to alerts based on this key. Limited to 100 characters.
attributes [required]
\n<oneOf>
JSON object for category-specific attributes. Schema is different per event category.
Option 1
\nobject
Change event attributes.
author
\nobject
The entity that made the change. Optional, if provided it must include type and name.
name [required]
\nstring
The name of the user or system that made the change. Limited to 128 characters.
type [required]
\nenum
Author's type. \nAllowed enum values: user,system,api,automation
change_metadata
\nobject
Free form JSON object with information related to the change event. Supports up to 100 properties per object and a maximum nesting depth of 10 levels.
changed_resource [required]
\nobject
A uniquely identified resource.
name [required]
\nstring
The name of the resource that was changed. Limited to 128 characters.
type [required]
\nenum
The type of the resource that was changed. \nAllowed enum values: feature_flag,configuration
impacted_resources
\n[object]
A list of resources impacted by this change. It is recommended to provide an impacted resource to display\nthe change event at the correct location. Only resources of type service are supported. Maximum of 100 impacted resources allowed.
name [required]
\nstring
The name of the impacted resource. Limited to 128 characters.
type [required]
\nenum
The type of the impacted resource. \nAllowed enum values: service
new_value
\nobject
Free form JSON object representing the new state of the changed resource.
prev_value
\nobject
Free form JSON object representing the previous state of the changed resource.
Option 2
\nobject
Alert event attributes.
custom
\nobject
Free form JSON object for arbitrary data. Supports up to 100 properties per object and a maximum nesting depth of 10 levels.
links
\n[object]
The links related to the event. Maximum of 20 links allowed.
category [required]
\nenum
The category of the link. \nAllowed enum values: runbook,documentation,dashboard
title
\nstring
The display text of the link. Limited to 300 characters.
url [required]
\nstring
The URL of the link. Limited to 2048 characters.
priority
\nenum
The priority of the alert. \nAllowed enum values: 1,2,3,4,5
default: 5
status [required]
\nenum
The status of the alert. \nAllowed enum values: warn,error,ok
category [required]
\nenum
Event category identifying the type of event. \nAllowed enum values: change,alert
integration_id
\nenum
Integration ID sourced from integration manifests. \nAllowed enum values: custom-events
message
\nstring
Free formed text associated with the event. It's suggested to use data.attributes.attributes.custom for well-structured attributes. Limited to 4000 characters.
tags
\n[string]
A list of tags associated with the event. Maximum of 100 tags allowed.\nRefer to Tags docs.
timestamp
\nstring
Timestamp when the event occurred. Must follow ISO 8601 format.\nFor example "2017-01-15T01:30:15.010000Z".\nDefaults to the timestamp of receipt. Limited to values no older than 18 hours.
title [required]
\nstring
The title of the event. Limited to 500 characters.
type [required]
\nenum
Entity type. \nAllowed enum values: event
data [required]
\nobject
An event object.
attributes [required]
\nobject
Event attributes.
aggregation_key
\nstring
A string used for aggregation when correlating events. If you specify a key, events are deduplicated to alerts based on this key. Limited to 100 characters.
attributes [required]
\n<oneOf>
JSON object for category-specific attributes. Schema is different per event category.
Option 1
\nobject
Change event attributes.
author
\nobject
The entity that made the change. Optional, if provided it must include type and name.
name [required]
\nstring
The name of the user or system that made the change. Limited to 128 characters.
type [required]
\nenum
Author's type. \nAllowed enum values: user,system,api,automation
change_metadata
\nobject
Free form JSON object with information related to the change event. Supports up to 100 properties per object and a maximum nesting depth of 10 levels.
changed_resource [required]
\nobject
A uniquely identified resource.
name [required]
\nstring
The name of the resource that was changed. Limited to 128 characters.
type [required]
\nenum
The type of the resource that was changed. \nAllowed enum values: feature_flag,configuration
impacted_resources
\n[object]
A list of resources impacted by this change. It is recommended to provide an impacted resource to display\nthe change event at the correct location. Only resources of type service are supported. Maximum of 100 impacted resources allowed.
name [required]
\nstring
The name of the impacted resource. Limited to 128 characters.
type [required]
\nenum
The type of the impacted resource. \nAllowed enum values: service
new_value
\nobject
Free form JSON object representing the new state of the changed resource.
prev_value
\nobject
Free form JSON object representing the previous state of the changed resource.
Option 2
\nobject
Alert event attributes.
custom
\nobject
Free form JSON object for arbitrary data. Supports up to 100 properties per object and a maximum nesting depth of 10 levels.
links
\n[object]
The links related to the event. Maximum of 20 links allowed.
category [required]
\nenum
The category of the link. \nAllowed enum values: runbook,documentation,dashboard
title
\nstring
The display text of the link. Limited to 300 characters.
url [required]
\nstring
The URL of the link. Limited to 2048 characters.
priority
\nenum
The priority of the alert. \nAllowed enum values: 1,2,3,4,5
default: 5
status [required]
\nenum
The status of the alert. \nAllowed enum values: warn,error,ok
category [required]
\nenum
Event category identifying the type of event. \nAllowed enum values: change,alert
host
\nstring
Host name to associate with the event. Any tags associated with the host are also applied to this event. Limited to 255 characters.
integration_id
\nenum
Integration ID sourced from integration manifests. \nAllowed enum values: custom-events
message
\nstring
Free formed text associated with the event. It's suggested to use data.attributes.attributes.custom for well-structured attributes. Limited to 4000 characters.
tags
\n[string]
A list of tags associated with the event. Maximum of 100 tags allowed.\nRefer to Tags docs.
timestamp
\nstring
Timestamp when the event occurred. Must follow ISO 8601 format.\nFor example "2017-01-15T01:30:15.010000Z".\nDefaults to the timestamp of receipt. Limited to values no older than 18 hours.
title [required]
\nstring
The title of the event. Limited to 500 characters.
type [required]
\nenum
Entity type. \nAllowed enum values: event