Skip to content

Commit 6c0f88c

Browse files
committed
Appwrite 1.5 support
1 parent 8066dad commit 6c0f88c

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

Sources/Appwrite/Services/Health.swift

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ open class Health: Service {
644644
/// @throws Exception
645645
/// @return array
646646
///
647-
open func getQueueUsage(
647+
open func getQueueUsageDump(
648648
threshold: Int? = nil
649649
) async throws -> AppwriteModels.HealthQueue {
650650
let apiPath: String = "/health/queue/usage-dump"
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
import Appwrite
2+
3+
let 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+
let health = Health(client)
9+
10+
let healthQueue = try await health.getQueueUsageDump(
11+
threshold: 0 // optional
12+
)
13+

0 commit comments

Comments
 (0)