VulnerabilitiesMetricsQuery
A query against vulnerability metrics.
List of aggregated metrics to collect across the requested time span.
Allowed values:vulnerability_count
>= 1 items<= 1 items
The list of dimensions to group by.
Allowed values:timeserviceseveritystatetypesourceenvironmentregion
<= 2 items
Example:["service","state"]
One OfA list of filters to apply to the query.
Filters a metrics query by service.
Show Child Parameters
Force time grouping into buckets of the specified duration. Only has an effect if time is in the dimensions list.
The granularity of the result may be coarser than requested.
The exact result granularity will be reported in the response meta.granularity_ms field.
If granularity is not specified and time is in the dimensions list, a default will be chosen based on the time range requested.
Different relative times support different granularities:
- 1d => daily
- 7d => daily, weekly
- 3w => daily, weekly
- 30d => daily, weekly
- 3mo => daily, weekly
- 1y => daily, weekly
For special time ranges:
- current_week, previous_week => daily
- current_month, previous_month => daily, weekly
For absolute time ranges, daily will be used.
Allowed values:dailyweekly
One OfThe time range to query.
A duration representing a relative-to-now span of time.
The start time is floored to the requested granularity.
The exact start and end timestamps are returned in the result query in the meta.start and meta.end fields.
Example:
7d from now, with 1day granularity initiated at 2024-01-08T17:11:00+05:00 will query for the time range from 2024-01-01T00:00:00+05:00 to 2024-01-08T17:11:00+05:00.