provider Incidents GET /api/v2/incidents/search
@utdk/datadog /api/v2/incidents/search
Search for incidents
Search for incidents matching a certain query.
include query
Specifies which types of related objects should be included in the response.
enum: users, attachments
query query required
Specifies which incidents should be returned. The query can contain any number of incident facets joined by `ANDs`, along with multiple values for each of those facets joined by `OR`s. For example: `state:active AND severity:(SEV-2 OR SEV-1)`.
string
sort query
Specifies the order of returned incidents.
enum: created, -created
page[size] query
Size for a given page. The maximum allowed value is 100.
integer
page[offset] query
Specific offset to use as the beginning of the returned page.
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.

searchincidents
GET/api/v2/incidents/search
Search for incidents matching a certain query.

Specifies which types of related objects should be included in the response.

required

Specifies which incidents should be returned. The query can contain any number of incident facets joined by `ANDs`, along with multiple values for each of those facets joined by `OR`s. For example: `state:active AND severity:(SEV-2 OR SEV-1)`.

Specifies the order of returned incidents.

Size for a given page. The maximum allowed value is 100.

Specific offset to use as the beginning of the returned page.

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.searchincidents({
  "page[size]": 10,
  "page[offset]": 0
})