provider Events GET /api/v2/events
@utdk/datadog /api/v2/events
Get a list of events
List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). Use this endpoint to see your latest events.
filter[query] query
Search query following events syntax.
string
filter[from] query
Minimum timestamp for requested events, in milliseconds.
string
filter[to] query
Maximum timestamp for requested events, in milliseconds.
string
sort query
Order of events in results.
enum: timestamp, -timestamp
page[cursor] query
List following results with a cursor provided in the previous query.
string
page[limit] query
Maximum number of events in the response.
integer

Try it

Authentication
Configure credentials for Datadog API V2 Collection
Gateway
The gateway proxies requests and injects credentials server-side. Configure credentials above, then enter your gateway URL.

Saved automatically to browser storage.

listevents
GET/api/v2/events
List endpoint returns events that match an events search query. [Results are paginated similarly to logs](https://docs.datadoghq.com/logs/guide/collect-multiple-logs-with-pagination). Use this endpoint to see your latest events.

Search query following events syntax.

Minimum timestamp for requested events, in milliseconds.

Maximum timestamp for requested events, in milliseconds.

Order of events in results.

List following results with a cursor provided in the previous query.

Maximum number of events in the response.

Enter a gateway URL above to enable sending.

Code snippet
Updates live as you fill in the form above.

TypeScript

import datadog from '@utdk/datadog';

await datadog.listevents({
  "page[limit]": 10
})