describeCustomMetric method
Gets information about a Device Defender detect custom metric.
May throw InvalidRequestException. May throw ResourceNotFoundException. May throw ThrottlingException. May throw InternalFailureException.
Parameter metricName
:
The name of the custom metric.
Implementation
Future<DescribeCustomMetricResponse> describeCustomMetric({
required String metricName,
}) async {
ArgumentError.checkNotNull(metricName, 'metricName');
_s.validateStringLength(
'metricName',
metricName,
1,
128,
isRequired: true,
);
final response = await _protocol.send(
payload: null,
method: 'GET',
requestUri: '/custom-metric/${Uri.encodeComponent(metricName)}',
exceptionFnMap: _exceptionFns,
);
return DescribeCustomMetricResponse.fromJson(response);
}