Skip to main content

records

Creates, updates, deletes, gets or lists a records resource.

Overview

Namerecords
TypeResource
Idpagerduty.enrichment.records

Fields

The following fields are returned by SELECT queries:

A page of enrichment records for the schema.

NameDatatypeDescription
record_idstringUnique identifier for this enrichment record.
created_atstring (date-time)Timestamp when the record was created.
enrichment_dataobjectThe enrichment data for this record, as key-value pairs keyed by field name.
typestringThe type of the resource. (example: enrichment_record)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectschema_idlimit, cursorRetrieves a page of enrichment records for a schema. Results are cursor-paginated.<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 />Scoped OAuth requires: contextual_data.read<br />
deletedeleteschema_id, record_idDeletes a single enrichment record by ID and returns the deleted record.<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 />Scoped OAuth requires: contextual_data.write<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
record_idstringThe ID of the enrichment record.
schema_idstring (uuid)The ID of the enrichment schema.
cursorstringPagination cursor returned by a previous list request.
limitintegerThe maximum number of records to return per page (1-100).

SELECT examples

Retrieves a page of enrichment records for a schema. Results are cursor-paginated.<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 />Scoped OAuth requires: contextual_data.read<br />

SELECT
record_id,
created_at,
enrichment_data,
type
FROM pagerduty.enrichment.records
WHERE schema_id = '{{ schema_id }}' -- required
AND limit = '{{ limit }}'
AND cursor = '{{ cursor }}'
;

DELETE examples

Deletes a single enrichment record by ID and returns the deleted record.<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 />Scoped OAuth requires: contextual_data.write<br />

DELETE FROM pagerduty.enrichment.records
WHERE schema_id = '{{ schema_id }}' --required
AND record_id = '{{ record_id }}' --required
;