describeCustomMetric method

Future<DescribeCustomMetricResponse> describeCustomMetric({
  1. required String metricName,
})

Gets information about a Device Defender detect custom metric.

Requires permission to access the DescribeCustomMetric action.

May throw InternalFailureException. May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException.

Parameter metricName : The name of the custom metric.

Implementation

Future<DescribeCustomMetricResponse> describeCustomMetric({
  required String metricName,
}) async {
  final response = await _protocol.send(
    payload: null,
    method: 'GET',
    requestUri: '/custom-metric/${Uri.encodeComponent(metricName)}',
    exceptionFnMap: _exceptionFns,
  );
  return DescribeCustomMetricResponse.fromJson(response);
}