GuardDutyClient.get_findings_statistics
rboto-guardduty==0.4.0 · Service index · Types
Model summary (excerpt): Lists GuardDuty findings statistics for the specified detector ID. You must provide either findingStatisticTypes or groupBy parameter, and not both. You can use the maxResults and orderBy parameters only when using groupBy . There might be regional differences because some flags might not be available in all the Regions where GuardDuty is currently supported. For more information, see Regions...
Install and imports
from rboto import GuardDutyClient
from collections.abc import Sequence as _Sequence
from rboto_guardduty.types import (
FindingCriteria,
FindingStatisticType,
GetFindingsStatisticsOutput,
GroupByType,
OrderBy,
)
Signature
async def get_findings_statistics(
*,
detector_id: str,
finding_statistic_types: _Sequence[FindingStatisticType] | None = None,
finding_criteria: FindingCriteria | None = None,
group_by: GroupByType | None = None,
order_by: OrderBy | None = None,
max_results: int | None = None,
) -> GetFindingsStatisticsOutput: ...
Arguments without defaults are required. None omits an optional request argument. Static types do not validate resource existence, permissions, lengths, ranges, or conditional service requirements.
Arguments
| Argument | Required | Model notes (excerpt) |
|---|---|---|
detector_id |
Yes | The ID of the detector whose findings statistics you want to retrieve. To find the detectorId in the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. |
finding_statistic_types |
No | The types of finding statistics to retrieve. |
finding_criteria |
No | Represents the criteria that is used for querying findings. |
group_by |
No | Displays the findings statistics grouped by one of the listed valid values. |
order_by |
No | Displays the sorted findings in the requested order. The default value of orderBy is DESC . You can use this parameter only with the groupBy parameter. |
max_results |
No | The maximum number of results to be returned in the response. The default value is 25. You can use this parameter only with the groupBy parameter. |
Output
GetFindingsStatisticsOutput.
Read-only native attributes, accessed as response.field. Collection getters materialize Python values; to_dict() recursively materializes a mapping. Streams are consumed once.
| Field | Type | Presence | References |
|---|---|---|---|
finding_statistics |
FindingStatisticsOutput | None |
Always present | FindingStatisticsOutput |
next_token |
str | None |
Always present | — |
| None means a value can be absent. Output mappings include every declared key; optional input keys may be omitted. Unknown output enum/union variants are not automatically valid inputs.
Related types
FindingCriteria, FindingStatisticType, GetFindingsStatisticsOutput, GroupByType, OrderBy
Follow these links for nested inputs and outputs; recursive types link back to the same type page.
Pagination and streaming
No generated paginator for this operation.
No output stream.
Errors
Import from rboto_guardduty.exceptions:
BadRequestError, InternalServerError.
Other service failures use the service base error; credential, transport and timeout failures use shared errors.