import requests
url = "https://platform.ankra.app/api/v1/org/security/fix-performance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/security/fix-performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/security/fix-performance \
--header 'Authorization: Bearer <token>'{
"days": 123,
"history_since": "2023-12-25",
"clusters_pending_history": 123,
"deadlines": {
"critical_days": 123,
"high_days": 123
},
"items": [
{
"date": "2023-12-25",
"found_critical": 123,
"found_high": 123,
"fixed_critical": 123,
"fixed_high": 123
}
],
"fixed": {
"critical": {
"count": 123,
"median_days": 123,
"within_deadline": 123
},
"high": {
"count": 123,
"median_days": 123,
"within_deadline": 123
}
},
"open": {
"critical": {
"count": 123,
"past_deadline": 123,
"oldest_days": 123
},
"high": {
"count": 123,
"past_deadline": 123,
"oldest_days": 123
}
}
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Get security fix performance
Returns how many critical and high issues were found and fixed per day over the last days UTC days (default 90, at most 365), the median days to fix and how many were fixed within the organisation’s deadlines, and how many are open now and past their deadline. Optionally narrowed with cluster_id; requires security.read.
import requests
url = "https://platform.ankra.app/api/v1/org/security/fix-performance"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://platform.ankra.app/api/v1/org/security/fix-performance', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));curl --request GET \
--url https://platform.ankra.app/api/v1/org/security/fix-performance \
--header 'Authorization: Bearer <token>'{
"days": 123,
"history_since": "2023-12-25",
"clusters_pending_history": 123,
"deadlines": {
"critical_days": 123,
"high_days": 123
},
"items": [
{
"date": "2023-12-25",
"found_critical": 123,
"found_high": 123,
"fixed_critical": 123,
"fixed_high": 123
}
],
"fixed": {
"critical": {
"count": 123,
"median_days": 123,
"within_deadline": 123
},
"high": {
"count": 123,
"median_days": 123,
"within_deadline": 123
}
},
"open": {
"critical": {
"count": 123,
"past_deadline": 123,
"oldest_days": 123
},
"high": {
"count": 123,
"past_deadline": 123,
"oldest_days": 123
}
}
}{
"detail": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "permission_denied",
"permission": "<string>",
"scope_type": "<string>"
}{
"detail": "<string>"
}{
"detail": [
{
"loc": [
"<string>"
],
"msg": "<string>",
"type": "<string>"
}
]
}{
"detail": "<string>"
}Authorizations
Query Parameters
Response
Found, fixed and open issues against the deadlines.
How quickly the organisation's critical and high issues are found and fixed. An issue is one critical or high CVE id on one cluster, accepted-risk findings included (accepting a risk does not fix it), found on the first daily snapshot it appeared in and fixed on the first daily snapshot without it; one that returned within seven days of its fix was never fixed. history_since is the earliest found day in scope (null with no issue history), and items lists every day of the window from then on. clusters_pending_history counts the clusters in scope whose issue history is still being built from their snapshots: while it is above zero, the counts leave those clusters out.