Skip to main content

scorecard_scores

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

Overview

Namescorecard_scores
TypeResource
Iddatadog.apm.scorecard_scores

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringThe ID of the entity or resource being scored. (example: )
attributesobjectAttributes of a scorecard score.
relationshipsobjectRelationships for a scorecard score, depending on the aggregation type.
typestringThe JSON:API resource type. (score) (default: score, example: score)

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
list_scorecard_scoresselectaggregationfilter[rule][id], filter[rule][name], filter[rule][level], filter[rule][scorecard_id], filter[rule][is_custom], filter[rule][is_enabled], sort, page[offset], page[limit]Returns a list of scorecard scores for each aggregation type, with score breakdowns.

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
aggregationstringThe type of scores being requested.
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[rule][id]stringFilter scores by rule ID(s), comma-separated.
filter[rule][is_custom]booleanFilter scores to show only custom rules.
filter[rule][is_enabled]booleanFilter scores to show only enabled rules.
filter[rule][level]stringFilter scores by rule level(s), comma-separated.
filter[rule][name]stringFilter scores by rule name.
filter[rule][scorecard_id]stringFilter scores by scorecard ID(s), comma-separated.
page[limit]integer (int64)Number of scores to return. Max is 1000.
page[offset]integer (int64)Offset for pagination.
sortstringSort scores by field. Use a hyphen prefix for descending order. Options: score, numerator, denominator, total_pass, total_fail, total_skip, total_no_data.

SELECT examples

Returns a list of scorecard scores for each aggregation type, with score breakdowns.

SELECT
id,
attributes,
relationships,
type
FROM datadog.apm.scorecard_scores
WHERE aggregation = '{{ aggregation }}' -- required
AND filter[rule][id] = '{{ filter[rule][id] }}'
AND filter[rule][name] = '{{ filter[rule][name] }}'
AND filter[rule][level] = '{{ filter[rule][level] }}'
AND filter[rule][scorecard_id] = '{{ filter[rule][scorecard_id] }}'
AND filter[rule][is_custom] = '{{ filter[rule][is_custom] }}'
AND filter[rule][is_enabled] = '{{ filter[rule][is_enabled] }}'
AND sort = '{{ sort }}'
AND page[offset] = '{{ page[offset] }}'
AND page[limit] = '{{ page[limit] }}'
;