2022-07-19 18:23:48 -07:00
|
|
|
import os
|
2019-04-10 17:20:51 +01:00
|
|
|
from app.notify_client import NotifyAdminAPIClient, cache
|
2016-11-30 17:01:44 +00:00
|
|
|
|
|
|
|
|
class StatusApiClient(NotifyAdminAPIClient):
|
2016-01-29 14:41:07 +00:00
|
|
|
|
|
|
|
|
def get_status(self, *params):
|
2016-04-06 16:36:03 +01:00
|
|
|
return self.get(url='/_status', *params)
|
2018-10-26 15:39:32 +01:00
|
|
|
|
2022-07-19 18:23:48 -07:00
|
|
|
# @cache.set('live-service-and-organisation-counts', ttl_in_seconds=3600)
|
2019-04-10 17:20:51 +01:00
|
|
|
def get_count_of_live_services_and_organisations(self):
|
|
|
|
|
return self.get(url='/_status/live-service-and-organisation-counts')
|
|
|
|
|
|
2018-10-26 15:39:32 +01:00
|
|
|
|
|
|
|
|
status_api_client = StatusApiClient()
|