Update Scorecard
Changed onUpdates a scorecard.
Request
- Base URLhttps://global.api.konghq.com
- Auth
- HTTP bearer
- or HTTP bearer
- or HTTP bearer
- or HTTP bearer
Path parameters
The id of the scorecard.
Request body
The human-readable name of the scorecard.
Selector used to dynamically target catalog entities that will be included in the given scorecard's evaluated score.
The name of the scorecard template used to create the scorecard. Otherwise, null.
Example request
{
"name": "Incident Response",
"description": "Governs key metrics pertaining to teams' incident response practices.",
"entity_selector": {
"selector": "label",
"selector_parameters": {
"label_key": "product_area",
"operator": "eq",
"value": "cloud_platform"
}
},
"criteria": [
{
"id": "5c1121f9-3f3a-47c7-9bb6-c81a51128714",
"name": "Median time to merge opened PRs is less than 6 hours over the last 3 months.",
"enabled": true,
"template_name": "time_to_merge",
"template_parameters": {
"measure": "median",
"threshold": {
"unit": "hours",
"value": 6
},
"window": {
"unit": "months",
"value": 3
}
},
"section_name": "Source Code Management"
}
],
"scorecard_template": "kong_best_practices"
}Response
A response containing a single scorecard.
Representation of a scorecard.
The human-readable name of the scorecard.
The current score for the given Scorecard. A null value indicates the scorecard has not yet been evaluated and therefore no score has been computed.
Selector used to dynamically target catalog entities that will be included in the given scorecard's evaluated score.
The name of the scorecard template used to create the scorecard. Otherwise, null.
An ISO-8601 timestamp representation of entity creation date.
An ISO-8601 timestamp representation of entity update date.
Example response
{
"id": "f3704e4c-104d-4f21-998a-20d4364c893f",
"name": "Incident Response",
"description": "Governs key metrics pertaining to teams' incident response practices.",
"score": {
"value": "88%",
"raw_value": 87.5
},
"entity_selector": {
"selector": "label",
"selector_parameters": {
"label_key": "product_area",
"operator": "eq",
"value": "cloud_platform"
}
},
"scorecard_template": "kong_best_practices",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z",
"criteria": [
{
"id": "5c1121f9-3f3a-47c7-9bb6-c81a51128714",
"name": "Time to restore service is less than 6 hours over the last 3 months.",
"scorecard_id": "f3704e4c-104d-4f21-998a-20d4364c893f",
"enabled": true,
"template_name": "time_to_merge",
"template_parameters": {
"measure": "median",
"threshold": {
"unit": "hours",
"value": 6
},
"window": {
"unit": "months",
"value": 3
}
},
"section_name": "Documentation",
"created_at": "2022-11-04T20:10:06.927Z",
"updated_at": "2022-11-04T20:10:06.927Z"
}
]
}Changes
- breaking
added to the
invalid_parameters/itemsresponse propertyoneOflist for the response status - warning
added the new
key_invalidenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status - warning
added the new
uniqueenum value to theinvalid_parameters/items/oneOf[#/components/schemas/InvalidParameterStandard]/ruleresponse property for the response status
- breaking