Skip to main content

metrics_summaries

Creates, updates, deletes, gets or lists a metrics_summaries resource.

Overview​

Namemetrics_summaries
TypeResource
Idaws.codeguru_security.metrics_summaries

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
categories_with_most_findingsarrayA list of CategoryWithFindingNum objects for the top 5 finding categories with the most findings.
datestring (date-time)The date from which the metrics summary information was retrieved.
open_findingsobjectThe number of open findings of each severity.
scans_with_most_open_critical_findingsarrayA list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open critical findings.
scans_with_most_open_findingsarrayA list of ScanNameWithFindingNum objects for the top 3 scans with the most number of open findings.

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_metrics_summaryselectdate, regionReturns a summary of metrics for an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
datestring (date-time)The date you want to retrieve summary metrics from, rounded to the nearest day. The date must be within the past two years.
regionstringAWS region (default: us-east-1)

SELECT examples​

Returns a summary of metrics for an account from a specified date, including number of open findings, the categories with most findings, the scans with most open findings, and scans with most open critical findings.

SELECT
categories_with_most_findings,
date,
open_findings,
scans_with_most_open_critical_findings,
scans_with_most_open_findings
FROM aws.codeguru_security.metrics_summaries
WHERE date = '{{ date }}' -- required
AND region = '{{ region }}' -- required
;