sendWarnMetricAckWithHttpInfo method

Future<Response> sendWarnMetricAckWithHttpInfo(
  1. String warnMetricId,
  2. MmSendWarnMetricAckRequest mmSendWarnMetricAckRequest
)

Acknowledge a warning of a metric status

Acknowledge a warning for the warn_metric_id metric crossing a threshold (or some similar condition being fulfilled) - attempts to send an ack email to acknowledge@mattermost.com and sets the "ack" status for all the warn metrics in the system. Minimum server version: 5.26 ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

Implementation

Future<Response> sendWarnMetricAckWithHttpInfo(
  String warnMetricId,
  MmSendWarnMetricAckRequest mmSendWarnMetricAckRequest,
) async {
  // ignore: prefer_const_declarations
  final path = r'/warn_metrics/ack/{warn_metric_id}'.replaceAll('{warn_metric_id}', warnMetricId);

  // ignore: prefer_final_locals
  Object? postBody = mmSendWarnMetricAckRequest;

  final queryParams = <MmQueryParam>[];
  final headerParams = <String, String>{};
  final formParams = <String, String>{};

  const contentTypes = <String>['application/json'];

  return apiClient.invokeAPI(
    path,
    'POST',
    queryParams,
    postBody,
    headerParams,
    formParams,
    contentTypes.isEmpty ? null : contentTypes.first,
  );
}