Skip to main content

Module events_api

Module events_api 

Source
Expand description

Datadog Events API wrapper.

Exposes a thin façade over DatadogClient for the read-only events stream (GET /api/v2/events).

Datadog v2 events use cursor pagination via meta.page.after. EventsApi::list issues a single request optionally seeded with an after cursor token; EventsApi::list_all auto-paginates up to a caller-supplied limit (or HARD_CAP when the limit is 0), mirroring MonitorsApi::list.

Structs§

EventsApi
Events API façade.
EventsListFilter
Filters accepted by GET /api/v2/events.

Constants§

HARD_CAP
Per-call upper bound on the number of events returned by EventsApi::list_all, even when the caller passes limit = 0.
MAX_PAGE_LIMIT
Per-page upper bound enforced by Datadog’s v2 events API.