getQueueUsage method
Get usage queue
Get the number of metrics that are waiting to be processed in the Appwrite internal queue server.
Implementation
Future<models.HealthQueue> getQueueUsage({int? threshold}) async {
final String apiPath = '/health/queue/usage';
final Map<String, dynamic> apiParams = {
'threshold': threshold,
};
final Map<String, String> apiHeaders = {
'content-type': 'application/json',
};
final res = await client.call(HttpMethod.get,
path: apiPath, params: apiParams, headers: apiHeaders);
return models.HealthQueue.fromMap(res.data);
}