getSamplingTargets method
Future<GetSamplingTargetsResult>
getSamplingTargets({
- required List<
SamplingStatisticsDocument> samplingStatisticsDocuments,
Requests a sampling quota for rules that the service is using to sample requests.
May throw InvalidRequestException. May throw ThrottledException.
Parameter samplingStatisticsDocuments
:
Information about rules that the service is using to sample requests.
Implementation
Future<GetSamplingTargetsResult> getSamplingTargets({
required List<SamplingStatisticsDocument> samplingStatisticsDocuments,
}) async {
ArgumentError.checkNotNull(
samplingStatisticsDocuments, 'samplingStatisticsDocuments');
final $payload = <String, dynamic>{
'SamplingStatisticsDocuments': samplingStatisticsDocuments,
};
final response = await _protocol.send(
payload: $payload,
method: 'POST',
requestUri: '/SamplingTargets',
exceptionFnMap: _exceptionFns,
);
return GetSamplingTargetsResult.fromJson(response);
}