Skip to content

Commit 493c5cf

Browse files
committed
misc-fixes
1 parent d2e9952 commit 493c5cf

6 files changed

Lines changed: 0 additions & 210 deletions

File tree

β€Žappwrite/services/health.pyβ€Ž

Lines changed: 0 additions & 145 deletions
Original file line numberDiff line numberDiff line change
@@ -143,64 +143,6 @@ def get_pub_sub(self) -> Dict[str, Any]:
143143
return self.client.call('get', api_path, {
144144
}, api_params)
145145

146-
def get_queue_billing_project_aggregation(self, threshold: Optional[float] = None) -> Dict[str, Any]:
147-
"""
148-
Get billing project aggregation queue.
149-
150-
Parameters
151-
----------
152-
threshold : Optional[float]
153-
Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
154-
155-
Returns
156-
-------
157-
Dict[str, Any]
158-
API response as a dictionary
159-
160-
Raises
161-
------
162-
AppwriteException
163-
If API request fails
164-
"""
165-
166-
api_path = '/health/queue/billing-project-aggregation'
167-
api_params = {}
168-
169-
if threshold is not None:
170-
api_params['threshold'] = threshold
171-
172-
return self.client.call('get', api_path, {
173-
}, api_params)
174-
175-
def get_queue_billing_team_aggregation(self, threshold: Optional[float] = None) -> Dict[str, Any]:
176-
"""
177-
Get billing team aggregation queue.
178-
179-
Parameters
180-
----------
181-
threshold : Optional[float]
182-
Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 5000.
183-
184-
Returns
185-
-------
186-
Dict[str, Any]
187-
API response as a dictionary
188-
189-
Raises
190-
------
191-
AppwriteException
192-
If API request fails
193-
"""
194-
195-
api_path = '/health/queue/billing-team-aggregation'
196-
api_params = {}
197-
198-
if threshold is not None:
199-
api_params['threshold'] = threshold
200-
201-
return self.client.call('get', api_path, {
202-
}, api_params)
203-
204146
def get_queue_builds(self, threshold: Optional[float] = None) -> Dict[str, Any]:
205147
"""
206148
Get the number of builds that are waiting to be processed in the Appwrite internal queue server.
@@ -230,35 +172,6 @@ def get_queue_builds(self, threshold: Optional[float] = None) -> Dict[str, Any]:
230172
return self.client.call('get', api_path, {
231173
}, api_params)
232174

233-
def get_queue_priority_builds(self, threshold: Optional[float] = None) -> Dict[str, Any]:
234-
"""
235-
Get the priority builds queue size.
236-
237-
Parameters
238-
----------
239-
threshold : Optional[float]
240-
Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 500.
241-
242-
Returns
243-
-------
244-
Dict[str, Any]
245-
API response as a dictionary
246-
247-
Raises
248-
------
249-
AppwriteException
250-
If API request fails
251-
"""
252-
253-
api_path = '/health/queue/builds-priority'
254-
api_params = {}
255-
256-
if threshold is not None:
257-
api_params['threshold'] = threshold
258-
259-
return self.client.call('get', api_path, {
260-
}, api_params)
261-
262175
def get_queue_certificates(self, threshold: Optional[float] = None) -> Dict[str, Any]:
263176
"""
264177
Get the number of certificates that are waiting to be issued against [Letsencrypt](https://letsencrypt.org/) in the Appwrite internal queue server.
@@ -531,35 +444,6 @@ def get_queue_migrations(self, threshold: Optional[float] = None) -> Dict[str, A
531444
return self.client.call('get', api_path, {
532445
}, api_params)
533446

534-
def get_queue_region_manager(self, threshold: Optional[float] = None) -> Dict[str, Any]:
535-
"""
536-
Get region manager queue.
537-
538-
Parameters
539-
----------
540-
threshold : Optional[float]
541-
Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
542-
543-
Returns
544-
-------
545-
Dict[str, Any]
546-
API response as a dictionary
547-
548-
Raises
549-
------
550-
AppwriteException
551-
If API request fails
552-
"""
553-
554-
api_path = '/health/queue/region-manager'
555-
api_params = {}
556-
557-
if threshold is not None:
558-
api_params['threshold'] = threshold
559-
560-
return self.client.call('get', api_path, {
561-
}, api_params)
562-
563447
def get_queue_stats_resources(self, threshold: Optional[float] = None) -> Dict[str, Any]:
564448
"""
565449
Get the number of metrics that are waiting to be processed in the Appwrite stats resources queue.
@@ -618,35 +502,6 @@ def get_queue_usage(self, threshold: Optional[float] = None) -> Dict[str, Any]:
618502
return self.client.call('get', api_path, {
619503
}, api_params)
620504

621-
def get_queue_threats(self, threshold: Optional[float] = None) -> Dict[str, Any]:
622-
"""
623-
Get threats queue.
624-
625-
Parameters
626-
----------
627-
threshold : Optional[float]
628-
Queue size threshold. When hit (equal or higher), endpoint returns server error. Default value is 100.
629-
630-
Returns
631-
-------
632-
Dict[str, Any]
633-
API response as a dictionary
634-
635-
Raises
636-
------
637-
AppwriteException
638-
If API request fails
639-
"""
640-
641-
api_path = '/health/queue/threats'
642-
api_params = {}
643-
644-
if threshold is not None:
645-
api_params['threshold'] = threshold
646-
647-
return self.client.call('get', api_path, {
648-
}, api_params)
649-
650505
def get_queue_webhooks(self, threshold: Optional[float] = None) -> Dict[str, Any]:
651506
"""
652507
Get the number of webhooks that are waiting to be processed in the Appwrite internal queue server.

β€Ždocs/examples/health/get-queue-billing-project-aggregation.mdβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Ždocs/examples/health/get-queue-billing-team-aggregation.mdβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Ždocs/examples/health/get-queue-priority-builds.mdβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Ždocs/examples/health/get-queue-region-manager.mdβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

β€Ždocs/examples/health/get-queue-threats.mdβ€Ž

Lines changed: 0 additions & 13 deletions
This file was deleted.

0 commit comments

Comments
Β (0)