v1

latestSwagger 2.02026-07-17302189.0 KB
insight

ScoreHandler calculates a score for the audited manifest.

This endpoint calculates a score for the provided manifest based on the number and severity of issues detected during the audit.

get/rest-api/v1/insight/score

Query parameters

clusterstring

The specified cluster name, such as 'example-cluster'

apiVersionstring

The specified apiVersion, such as 'apps/v1'

kindstring

The specified kind, such as 'Deployment'

namespacestring

The specified namespace, such as 'default'

namestring

The specified resource name, such as 'foo'

forceNewboolean

Switch for forced compute score, default is 'false'

Response

Score calculation result

issuesTotalinteger

IssuesTotal is the total count of all issues found during the audit. This count can be used to understand the overall number of problems that need to be addressed.

resourceTotalinteger

ResourceTotal is the count of unique resources audited during the scan.

scorenumber

Score represents the calculated score of the audited manifest based on the number and severity of issues. It provides a quantitative measure of the security posture of the resources in the manifest.

severityStatisticobject

SeverityStatistic is a mapping of severity levels to their respective number of occurrences. It allows for a quick overview of the distribution of issues across different severity categories.