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