getMetrics method

Future<GetMetricsResponse> getMetrics({
  1. List<SummaryMetricQuery>? summaryMetricQueries,
})

Get the summary metrics for this AWS account.

May throw AccessDeniedException. May throw ConflictException. May throw InternalServerException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw ValidationException.

Parameter summaryMetricQueries : The list of queries to retrieve the summary metrics.

Implementation

Future<GetMetricsResponse> getMetrics({
  List<SummaryMetricQuery>? summaryMetricQueries,
}) async {
  final $payload = <String, dynamic>{
    if (summaryMetricQueries != null)
      'SummaryMetricQueries': summaryMetricQueries,
  };
  final response = await _protocol.send(
    payload: $payload,
    method: 'POST',
    requestUri: '/metrics',
    exceptionFnMap: _exceptionFns,
  );
  return GetMetricsResponse.fromJson(response);
}