List Scorecards
GET/api/v1/scorecards
List Scorecards
Request
Query Parameters
Default value: 0
Page number to return, 0-indexed. Default 0.
Default value: 250
Number of results to return per page, between 1 and 1000. Default 250.
Responses
- 200
- 429
OK
- application/json
- Schema
- Example (from schema)
Schema
Array [
Array [
]
Array [
]
]
Current page number, 0-indexed
scorecards
object[]
required
Human-readable description of the Scorecard
evaluation
object
Evaluation window for how often the Scorecard is run
Number of hours between Scorecard evaluations. If the evaluation window is not set, the Scorecard is evaluated every 4 hours
exemptions
object
required
Exemptions settings for the Scorecard
This will enable auto-approving of Scorecard rule exemptions. If not set, it defaults to false.
This will enable Scorecard rule exemptions. If not set, it defaults to true.
filter
object
groups
object
Entity groups to include or exclude
CQL expression to apply as a filter
types
object
Entity types (e.g. SERVICE, DOMAIN, TEAM) to include or exclude
Whether or not the Scorecard is in draft
Time the Scorecard was last updated, which includes setting the next evaluation time
levels
object[]
List of levels associated with the Scorecard
level
object
Name of the level
Rank of the level where 1 is the highest
Human-readable name
notifications
object
required
Notification settings for the Scorecard
Whether this Scorecard should be included in notifications. If not set, it defaults to true for non-draft Scorecards and to false for draft Scorecards
Whether to notify when an entities' score drops after a Scorecard evaluation. If not set, it defaults to false
rules
object[]
required
List of rules that are evaluated each time the Scorecard is evaluated
Date when the rule starts being evaluated
CQL representation of the rule
filter
object
groups
object
Entity groups to include or exclude
CQL expression to apply as a filter
types
object
Entity types (e.g. SERVICE, DOMAIN, TEAM) to include or exclude
Unique identifier of the rule
Name of the level this rule is associated with, if applicable
Numerical weight of the rule. When using levels, this defaults to 1
Unique identifier, found in the UI
Total number of results
Total number of pages
{
"page": 0,
"scorecards": [
{
"description": "string",
"evaluation": {
"window": 4
},
"exemptions": {
"autoApprove": false,
"enabled": true
},
"filter": {
"groups": {
"exclude": [
"string"
],
"include": [
"string"
]
},
"query": "string",
"types": {
"exclude": [
"string"
],
"include": [
"string"
]
}
},
"isDraft": true,
"lastUpdated": "2024-07-29T15:51:28.071Z",
"levels": [
{
"level": {
"name": "Bronze",
"number": 0
}
}
],
"name": "Production Readiness Scorecard",
"notifications": {
"enabled": true,
"scoreDropNotificationsEnabled": true
},
"rules": [
{
"description": "This rule is very important because you must pass it",
"effectiveFrom": "2024-01-01T00:00:00Z",
"expression": "custom(\"key\") = \"value\"",
"failureMessage": "To fix this rule, visit [our internal doc][docs.cortex.io]",
"filter": {
"groups": {
"exclude": [
"string"
],
"include": [
"string"
]
},
"query": "string",
"types": {
"exclude": [
"string"
],
"include": [
"string"
]
}
},
"identifier": "96db03f1-2529-3fc3-9f13-7fb4dd28f427",
"levelName": "string",
"title": "Key value must be correct",
"weight": 0
}
],
"tag": "production-readiness-scorecard"
}
],
"total": 0,
"totalPages": 0
}
The client has exceeded the rate limit by performing too many requests in a short period. Retry the request after a delay.
Response Headers
Retry-After
integer
The number of seconds until the rate limiting resets.
- application/problem+json
- Schema
- Example (from schema)
Schema
The number of seconds until the rate limiting resets.
Possible values: >= 100
and <= 599
, [429
]
{
"detail": "string",
"instance": "string",
"retryAfter": 0,
"status": 429,
"title": "string",
"type": "string"
}