Skip to main content

events

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

Overview

Nameevents
TypeResource
Iddatadog.service_management.events

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe event's ID. (example: )
attributesobjectEvent attributes.
typestringEntity type. (example: event)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_eventselectevent_id, regionGet the details of an event by event_id.
list_eventsselectregionfilter[query], filter[from], filter[to], sort, page[cursor], page[limit]List endpoint returns events that match an events search query.
Results are paginated similarly to logs.

Use this endpoint to see your latest events.
create_eventinsertregion, data__dataThis endpoint allows you to publish events.

Note: To utilize this endpoint with our client libraries, please ensure you are using the latest version released on or after July 1, 2025. Earlier versions do not support this functionality.

Only events with the change or alert category are in General Availability. For change events, see Change Tracking for more details.

❌ For use cases involving other event categories, use the V1 endpoint or reach out to support.

❌ Notifications are not yet supported for events sent to this endpoint. Use the V1 endpoint for notification functionality.
search_eventsinsertregionList endpoint returns events that match an events search query.
Results are paginated similarly to logs.

Use this endpoint to build complex events filtering and search.

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
event_idstringThe UID of the event.
regionstring(default: datadoghq.com)
filter[from]stringMinimum timestamp for requested events, in milliseconds.
filter[query]stringSearch query following events syntax.
filter[to]stringMaximum timestamp for requested events, in milliseconds.
page[cursor]stringList following results with a cursor provided in the previous query. (example: eyJzdGFydEF0IjoiQVFBQUFYS2tMS3pPbm40NGV3QUFBQUJCV0V0clRFdDZVbG8zY3pCRmNsbHJiVmxDWlEifQ==)
page[limit]integer (int32)Maximum number of events in the response. (example: 25)
sortstringOrder of events in results.

SELECT examples

Get the details of an event by event_id.

SELECT
id,
attributes,
type
FROM datadog.service_management.events
WHERE event_id = '{{ event_id }}' -- required
AND region = '{{ region }}' -- required
;

INSERT examples

This endpoint allows you to publish events.

Note: To utilize this endpoint with our client libraries, please ensure you are using the latest version released on or after July 1, 2025. Earlier versions do not support this functionality.

Only events with the change or alert category are in General Availability. For change events, see Change Tracking for more details.

❌ For use cases involving other event categories, use the V1 endpoint or reach out to support.

❌ Notifications are not yet supported for events sent to this endpoint. Use the V1 endpoint for notification functionality.

INSERT INTO datadog.service_management.events (
data__data,
region
)
SELECT
'{{ data }}' /* required */,
'{{ region }}'
RETURNING
data,
links
;