get_findings_statistics
async
¶
get_findings_statistics(
detector_id: DetectorId,
*,
config_overrides: Optional[AsyncGuardDutyClientConfig] = 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/async_guard_duty.py
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 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 | |