File tree 4 files changed +23
-3
lines changed
4 files changed +23
-3
lines changed Original file line number Diff line number Diff line change
1
+ ## 11.0.0
2
+
3
+ * Added enum support
4
+ * Added SSR support
5
+ * Added messaging service support
6
+ * Added contains query support
7
+ * Added or query support
8
+
1
9
## 10.1.0
2
10
3
11
* Add new queue health endpoints
Original file line number Diff line number Diff line change
1
+ import 'package: dart_appwrite /dart_appwrite.dart';
2
+
3
+ Client client = Client()
4
+ .setEndpoint('https://cloud.appwrite.io/v1 ') // Your API Endpoint
5
+ .setProject('5df5acd0d48c2') // Your project ID
6
+ .setKey('919c2d18fb5d4...a2ae413da83346ad2'); // Your secret API key
7
+
8
+ Health health = Health(client);
9
+
10
+ HealthQueue result = await health.getQueueUsageDump(
11
+ threshold: 0, // (optional)
12
+ );
Original file line number Diff line number Diff line change @@ -432,7 +432,7 @@ class Health extends Service {
432
432
///
433
433
/// Get the number of projects containing metrics that are waiting to be
434
434
/// processed in the Appwrite internal queue server.
435
- Future <models.HealthQueue > getQueueUsage ({int ? threshold}) async {
435
+ Future <models.HealthQueue > getQueueUsageDump ({int ? threshold}) async {
436
436
final String apiPath = '/health/queue/usage-dump' ;
437
437
438
438
final Map <String , dynamic > apiParams = {
Original file line number Diff line number Diff line change @@ -359,7 +359,7 @@ void main() {
359
359
360
360
});
361
361
362
- test ('test method getQueueUsage ()' , () async {
362
+ test ('test method getQueueUsageDump ()' , () async {
363
363
final Map <String , dynamic > data = {
364
364
'size' : 8 ,};
365
365
@@ -369,7 +369,7 @@ void main() {
369
369
)).thenAnswer ((_) async => Response (data: data));
370
370
371
371
372
- final response = await health.getQueueUsage (
372
+ final response = await health.getQueueUsageDump (
373
373
);
374
374
expect (response, isA< models.HealthQueue > ());
375
375
You can’t perform that action at this time.
0 commit comments