Skip to main content

case_counts

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

Overview​

Namecase_counts
TypeResource
Iddatadog.service_management.case_counts

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringCount response identifier. (example: count-result-001)
attributesobjectAttributes for the count response, including the total count and optional facet breakdowns.
typestringCount resource type. (example: count)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
count_casesselectquery_filter, group_bys, limitReturns case counts, optionally grouped by one or more fields (for example, status, priority). Supports a query filter to narrow the scope.

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
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.
group_bysstringComma-separated fields to group by. (example: status,priority)
limitinteger (int64)Maximum facet values to return.
query_filterstringFilter query for cases.

SELECT examples​

Returns case counts, optionally grouped by one or more fields (for example, status, priority). Supports a query filter to narrow the scope.

SELECT
id,
attributes,
type
FROM datadog.service_management.case_counts
WHERE query_filter = '{{ query_filter }}'
AND group_bys = '{{ group_bys }}'
AND limit = '{{ limit }}'
;