list_findings_metrics
async
¶
list_findings_metrics(
start_date: datetime,
end_date: datetime,
*,
config_overrides: Optional[AsyncCodeGuruSecurityClientConfig] = None,
next_token: Optional[NextToken] = None,
max_results: Optional[int] = None,
) -> ListFindingsMetricsResponse
Returns metrics about all findings in an account within a specified time range.
Parameters:
-
next_token(Optional[NextToken], default:None) –A token to use for paginating results that are returned in the response. Set the value of this parameter to null for the first request. For subsequent calls, use the
nextTokenvalue returned from the previous request to continue listing results after the first page. -
max_results(Optional[int], default:None) –The maximum number of results to return in the response. Use this parameter when paginating results. If additional results exist beyond the number you specify, the
nextTokenelement is returned in the response. UsenextTokenin a subsequent request to retrieve additional results. If not specified, returns 1000 results. -
start_date(datetime) –The start date of the interval which you want to retrieve metrics from. Rounds to the nearest day.
-
end_date(datetime) –The end date of the interval which you want to retrieve metrics from. Round to the nearest day.
Raises:
-
AccessDeniedException–You do not have sufficient access to perform this action.
-
InternalServerException–The server encountered an internal error and is unable to complete the request.
-
ThrottlingException–The request was denied due to request throttling.
-
ValidationException–The input fails to satisfy the specified constraints.
-
UnknownServiceError–The service returned an error code this client does not model.