Skip to main content

event_enrichments

Creates, updates, deletes, gets or lists an event_enrichments resource.

Overview

Nameevent_enrichments
TypeResource
Idpagerduty.enrichment.event_enrichments

Fields

The following fields are returned by SELECT queries:

The Event Enrichment object.

NameDatatypeDescription
idstringID of the Event Enrichment.
namestringThe name of the Event Enrichment.
associated_event_orchestrationsintegerThe number of Event Orchestrations associated with this Event Enrichment.
associated_servicesintegerThe number of Services associated with this Event Enrichment.
created_atstring (date-time)The date/time the Event Enrichment was created.
created_byobjectReference to the user that created the Event Enrichment.
descriptionstringA description of this Event Enrichment's purpose.
is_defaultbooleanIndicates whether this Event Enrichment is the account default.
privilegesobjectDetails about the read/update permissions of the current user for this Event Enrichment. Only present when include[]=privileges is requested.
selfstring (url)The API show URL at which the object is accessible.
teamobjectReference to the team that owns this Event Enrichment.
updated_atstring (date-time)The date/time the Event Enrichment was last updated.
updated_byobjectReference to the user that last updated the Event Enrichment.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectidinclude[]Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Retrieve details of a specific Event Enrichment.<br />
listselectlimit, offset, include[]Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Retrieve a list of all Event Enrichments in the account.<br />
createinsertevent_enrichmentEvent Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Create a new Event Enrichment.<br />
updateupdateid, event_enrichmentEvent Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Update an existing Event Enrichment.<br />
deletedeleteidEvent Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Delete a specific Event Enrichment. The user must have "Delete" privileges for both the Event Enrichment and all of its associated items.<br />

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
idstringThe ID of the Event Enrichment.
include[]arrayInclude additional details. Supported value is "privileges".
limitintegerThe number of results per page.
offsetintegerOffset to start pagination search results.

SELECT examples

Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Retrieve details of a specific Event Enrichment.<br />

SELECT
id,
name,
associated_event_orchestrations,
associated_services,
created_at,
created_by,
description,
is_default,
privileges,
self,
team,
updated_at,
updated_by
FROM pagerduty.enrichment.event_enrichments
WHERE id = '{{ id }}' -- required
AND include[] = '{{ include[] }}'
;

INSERT examples

Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Create a new Event Enrichment.<br />

INSERT INTO pagerduty.enrichment.event_enrichments (
event_enrichment
)
SELECT
'{{ event_enrichment }}' /* required */
RETURNING
event_enrichment
;

UPDATE examples

Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Update an existing Event Enrichment.<br />

UPDATE pagerduty.enrichment.event_enrichments
SET
event_enrichment = '{{ event_enrichment }}'
WHERE
id = '{{ id }}' --required
AND event_enrichment = '{{ event_enrichment }}' --required
RETURNING
event_enrichment;

DELETE examples

Event Enrichments allow you to automatically add contextual data to events as they're ingested, so that relevant information is available throughout the event, alert, and incident lifecycle. By leveraging the Contextual Data Platform (CDP), you can define rules that extract values from events or query enrichment schemas to populate event fields.<br /><br /><!-- theme: warning --><br /><br />> ### Early Access<br />> This API is in Early Access and may change at any time. Contact your PagerDuty account team to request access.<br /><br />Delete a specific Event Enrichment. The user must have "Delete" privileges for both the Event Enrichment and all of its associated items.<br />

DELETE FROM pagerduty.enrichment.event_enrichments
WHERE id = '{{ id }}' --required
;