updateLogMetric method

  1. @override
Future<LogMetric> updateLogMetric(
  1. UpdateLogMetricRequest request
)
override

Creates or updates a logs-based metric.

Throws a http.ClientException if there were problems communicating with the API service. Throws a ServiceException if the API method failed for any reason.

Implementation

@override
Future<LogMetric> updateLogMetric(UpdateLogMetricRequest request) async {
  if (isClosed) throw StateError('Service is closed');

  if (_updateLogMetric case final updateLogMetric?) {
    return updateLogMetric(request);
  }
  throw UnsupportedError('updateLogMetric');
}