Skip to main content

scorecards

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

Overview

Namescorecards
TypeResource
Iddatadog.apm.scorecards

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe unique ID of the scorecard. (example: q8MQxk8TCqrHnWkx)
attributesobjectScorecard attributes.
typestringThe JSON:API type for scorecard list. (scorecard) (example: scorecard)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_scorecardsselectpage[offset], page[size], filter[scorecard][id], filter[scorecard][name], filter[scorecard][description]Fetches all scorecards.

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.
filter[scorecard][description]stringFilter by scorecard description (partial match).
filter[scorecard][id]stringFilter by scorecard ID.
filter[scorecard][name]stringFilter by scorecard name (partial match).
page[offset]integer (int64)Offset for pagination.
page[size]integer (int64)Maximum number of scorecards to return.

SELECT examples

Fetches all scorecards.

SELECT
id,
attributes,
type
FROM datadog.apm.scorecards
WHERE page[offset] = '{{ page[offset] }}'
AND page[size] = '{{ page[size] }}'
AND filter[scorecard][id] = '{{ filter[scorecard][id] }}'
AND filter[scorecard][name] = '{{ filter[scorecard][name] }}'
AND filter[scorecard][description] = '{{ filter[scorecard][description] }}'
;