get_findings_statistics
¶
get_findings_statistics(
detector_id: DetectorId,
*,
config_overrides: Optional[GuardDutyClientConfig] = None,
finding_statistic_types: Optional[FindingStatisticTypes] = None,
finding_criteria: Optional[FindingCriteria] = None,
group_by: Optional[GroupByType] = None,
order_by: Optional[OrderBy] = None,
max_results: Optional[MaxResults100] = None,
) -> GetFindingsStatisticsResponse
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 and endpoints.
Parameters:
-
detector_id(DetectorId) –The ID of the detector whose findings statistics you want to retrieve.
To find the
detectorIdin the current Region, see the Settings page in the GuardDuty console, or run the ListDetectors API. -
finding_statistic_types(Optional[FindingStatisticTypes], default:None) –The types of finding statistics to retrieve.
-
finding_criteria(Optional[FindingCriteria], default:None) –Represents the criteria that is used for querying findings.
-
group_by(Optional[GroupByType], default:None) –Displays the findings statistics grouped by one of the listed valid values.
-
order_by(Optional[OrderBy], default:None) –Displays the sorted findings in the requested order. The default value of
orderByisDESC.You can use this parameter only with the
groupByparameter. -
max_results(Optional[MaxResults100], default:None) –The maximum number of results to be returned in the response. The default value is 25.
You can use this parameter only with the
groupByparameter.
Raises:
-
BadRequestException–A bad request exception object.
-
InternalServerErrorException–An internal server error exception object.
-
UnknownServiceError–The service returned an error code this client does not model.
Source code in docs_src/capo_guardduty/_services/guard_duty.py
3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 | |