deleteCustomMetric method

Future<void> deleteCustomMetric({
  1. required String metricName,
})
Deletes a Device Defender detect custom metric.

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

Parameter metricName : The name of the custom metric.

Implementation

Future<void> deleteCustomMetric({
  required String metricName,
}) async {
  ArgumentError.checkNotNull(metricName, 'metricName');
  _s.validateStringLength(
    'metricName',
    metricName,
    1,
    128,
    isRequired: true,
  );
  final response = await _protocol.send(
    payload: null,
    method: 'DELETE',
    requestUri: '/custom-metric/${Uri.encodeComponent(metricName)}',
    exceptionFnMap: _exceptionFns,
  );
}