GET https://api.ap1.datadoghq.com/api/v2/scorecard/scores/{aggregation} https://api.ap2.datadoghq.com/api/v2/scorecard/scores/{aggregation} https://api.datadoghq.eu/api/v2/scorecard/scores/{aggregation} https://api.ddog-gov.com/api/v2/scorecard/scores/{aggregation} https://api.us2.ddog-gov.com/api/v2/scorecard/scores/{aggregation} https://api.datadoghq.com/api/v2/scorecard/scores/{aggregation} https://api.us3.datadoghq.com/api/v2/scorecard/scores/{aggregation} https://api.us5.datadoghq.com/api/v2/scorecard/scores/{aggregation}
Overview Returns a list of scorecard scores for each aggregation type, with score breakdowns.
OAuth apps require the apm_service_catalog_read authorization scope to access this endpoint.
Arguments Path Parameters The type of scores being requested.
Query Strings Filter scores by rule ID(s), comma-separated.
Filter scores by rule name.
Filter scores by rule level(s), comma-separated.
filter[rule][scorecard_id]
Filter scores by scorecard ID(s), comma-separated.
Filter scores to show only custom rules.
Filter scores to show only enabled rules.
Sort scores by field. Use a hyphen prefix for descending order. Options: score, numerator, denominator, total_pass, total_fail, total_skip, total_no_data.
Number of scores to return. Max is 1000.
Response OK
A list of scorecard scores for a given aggregation type.
Expand All
Attributes of a scorecard score.
Dimension to group scores by.
Allowed enum values: by-entity,by-rule,by-scorecard,by-team,by-kind
The denominator used to compute the score ratio.
The maturity level of the associated rule.
The numerator used to compute the score ratio.
The computed score ratio (numerator/denominator), from 0 to 1.
The total number of entities evaluated.
The number of rules that failed.
The number of rules with no data.
The number of rules that passed.
The number of rules that were skipped.
The ID of the entity or resource being scored.
Relationships for a scorecard score, depending on the aggregation type.
A relationship item for a score.
A relationship data object for a score.
The ID of the related resource.
The type of the related resource.
A relationship item for a score.
A relationship data object for a score.
The ID of the related resource.
The type of the related resource.
A relationship item for a score.
A relationship data object for a score.
The ID of the related resource.
The type of the related resource.
A relationship item for a score.
A relationship data object for a score.
The ID of the related resource.
The type of the related resource.
A relationship item for a score.
A relationship data object for a score.
The ID of the related resource.
The type of the related resource.
The JSON:API resource type.
Allowed enum values: score
default: score
Link for the next set of rules.
Pagination metadata for scores.
The number of results returned in this page.
The total number of results.
{
"data" : [
{
"attributes" : {
"aggregation" : "by-entity" ,
"denominator" : "integer" ,
"level" : "integer" ,
"numerator" : "integer" ,
"score" : "number" ,
"total_entities" : "integer" ,
"total_fail" : "integer" ,
"total_no_data" : "integer" ,
"total_pass" : "integer" ,
"total_skip" : "integer"
},
"id" : "" ,
"relationships" : {
"entity" : {
"data" : {
"id" : "" ,
"type" : ""
}
},
"rule" : {
"data" : {
"id" : "" ,
"type" : ""
}
},
"scorecard" : {
"data" : {
"id" : "" ,
"type" : ""
}
},
"service" : {
"data" : {
"id" : "" ,
"type" : ""
}
},
"team" : {
"data" : {
"id" : "" ,
"type" : ""
}
}
},
"type" : "score"
}
],
"links" : {
"next" : "/api/v2/scorecard/rules?page%5Blimit%5D=2\u0026page%5Boffset%5D=2\u0026page%5Bsize%5D=2"
},
"meta" : {
"count" : "integer" ,
"limit" : "integer" ,
"offset" : "integer" ,
"total" : "integer"
}
} Bad Request
{
"errors" : [
"Bad Request"
]
} Forbidden
{
"errors" : [
"Bad Request"
]
} Too many requests
{
"errors" : [
"Bad Request"
]
} Code Example Copy
# Path parameters export aggregation = "by-entity" # Curl command curl -X GET "https://api.ap1.datadoghq.com "https://api.ap2.datadoghq.com "https://api.datadoghq.eu "https://api.ddog-gov.com "https://api.us2.ddog-gov.com "https://api.datadoghq.com "https://api.us3.datadoghq.com "https://api.us5.datadoghq.com /api/v2/scorecard/scores/${aggregation} " \
-H "Accept: application/json" \
-H "DD-API-KEY: ${DD_API_KEY} " \
-H "DD-APPLICATION-KEY: ${DD_APP_KEY} "