getQueueUsageDump method

Future<HealthQueue> getQueueUsageDump({
  1. int? threshold,
})

Get usage dump queue

Get the number of projects containing metrics that are waiting to be processed in the Appwrite internal queue server.

Implementation

Future<models.HealthQueue> getQueueUsageDump({int? threshold}) async {
  final String apiPath = '/health/queue/usage-dump';

  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);
}