getWarnMetricsStatusWithHttpInfo method
Get the warn metrics status (enabled or disabled)
Get the status of a set of metrics (enabled or disabled) from the Systems table. The returned JSON contains the metrics that we need to warn the admin on with regard to their status (we return the ones whose status is "true", which means that they are in a "warnable" state - e.g. a threshold has been crossed or some other condition has been fulfilled). Minimum server version: 5.26 ##### Permissions Must have manage_system
permission.
Note: This method returns the HTTP Response
.
Implementation
Future<Response> getWarnMetricsStatusWithHttpInfo() async {
// ignore: prefer_const_declarations
final path = r'/warn_metrics/status';
// ignore: prefer_final_locals
Object? postBody;
final queryParams = <MmQueryParam>[];
final headerParams = <String, String>{};
final formParams = <String, String>{};
const contentTypes = <String>[];
return apiClient.invokeAPI(
path,
'GET',
queryParams,
postBody,
headerParams,
formParams,
contentTypes.isEmpty ? null : contentTypes.first,
);
}