sendTrialLicenseWarnMetricAckWithHttpInfo method

Future<Response> sendTrialLicenseWarnMetricAckWithHttpInfo(
  1. String warnMetricId
)

Request trial license and acknowledge a warning of a metric status

Request a trial license and acknowledge a warning for the warn_metric_id metric crossing a threshold (or some similar condition being fulfilled) - sets the "ack" status for all the warn metrics in the system. Minimum server version: 5.28 ##### Permissions Must have manage_system permission.

Note: This method returns the HTTP Response.

Parameters:

  • String warnMetricId (required): Warn Metric Id.

Implementation

Future<Response> sendTrialLicenseWarnMetricAckWithHttpInfo(
  String warnMetricId,
) async {
  // ignore: prefer_const_declarations
  final path = r'/warn_metrics/trial-license-ack/{warn_metric_id}'.replaceAll('{warn_metric_id}', warnMetricId);

  // ignore: prefer_final_locals
  Object? postBody;

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

  const contentTypes = <String>[];

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