Skip to main content

bits_ai_investigations

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

Overview

Namebits_ai_investigations
TypeResource
Iddatadog.service_management.bits_ai_investigations

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique identifier of the investigation. (example: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d)
attributesobjectAttributes of the investigation.
typestringThe resource type for investigations. (investigation) (example: investigation)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_investigationselectidGet a specific Bits AI investigation by ID.
list_investigationsselectpage[offset], page[limit], filter[monitor_id]List all Bits AI investigations for the organization.
trigger_investigationinsertdataTrigger a new Bits AI investigation based on a monitor alert.

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
idstringThe ID of the investigation. (example: a1b2c3d4-5e6f-7a8b-9c0d-1e2f3a4b5c6d)
sitestringThe Datadog site (region) for your organization, for example datadoghq.com, us3.datadoghq.com, us5.datadoghq.com, ap1.datadoghq.com, ap2.datadoghq.com, datadoghq.eu, ddog-gov.com. Resolved from the DD_SITE environment variable when set. Optional: defaults to datadoghq.com, or the value of the DD_SITE environment variable when set; a WHERE value overrides both.
filter[monitor_id]integer (int64)Filter investigations by monitor ID. (example: 12345678)
page[limit]integer (int64)Maximum number of investigations to return. (example: 25)
page[offset]integer (int64)Offset for pagination. (example: 0)

SELECT examples

Get a specific Bits AI investigation by ID.

SELECT
id,
attributes,
type
FROM datadog.service_management.bits_ai_investigations
WHERE id = '{{ id }}' -- required
;

INSERT examples

Trigger a new Bits AI investigation based on a monitor alert.

INSERT INTO datadog.service_management.bits_ai_investigations (
data
)
SELECT
'{{ data }}' /* required */
RETURNING
data
;