selfprivacy-rest-api/selfprivacy_api/graphql/queries/monitoring.py
2024-07-07 16:33:15 +04:00

15 lines
300 B
Python

import strawberry
from selfprivacy_api.utils.prometheus import PrometheusQueries
@strawberry.type
class Monitoring:
@strawberry.field
def disks_usage():
return PrometheusQueries.disks_usage()
@strawberry.field
def cpu_usage():
return PrometheusQueries.cpu_usage()