Skip to content

Commit 99aa333

Browse files
committed
Appwrite 1.5 support
1 parent 21f17cf commit 99aa333

File tree

2 files changed

+13
-1
lines changed

2 files changed

+13
-1
lines changed

appwrite/services/health.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,7 +233,7 @@ def get_queue_usage(self, threshold = None):
233233
'content-type': 'application/json',
234234
}, api_params)
235235

236-
def get_queue_usage(self, threshold = None):
236+
def get_queue_usage_dump(self, threshold = None):
237237
"""Get usage dump queue"""
238238

239239

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
from appwrite.client import Client
2+
3+
client = Client()
4+
client.set_endpoint('https://cloud.appwrite.io/v1') # Your API Endpoint
5+
client.set_project('5df5acd0d48c2') # Your project ID
6+
client.set_key('919c2d18fb5d4...a2ae413da83346ad2') # Your secret API key
7+
8+
health = Health(client)
9+
10+
result = health.get_queue_usage_dump(
11+
threshold = None # optional
12+
)

0 commit comments

Comments
 (0)