mirror of
https://git.selfprivacy.org/SelfPrivacy/selfprivacy-rest-api.git
synced 2024-11-25 13:31:27 +00:00
feat: add monitoring to schema
This commit is contained in:
parent
852cc28c1a
commit
165ef260b5
|
@ -27,6 +27,7 @@ from selfprivacy_api.graphql.queries.jobs import Job
|
|||
from selfprivacy_api.graphql.queries.services import Services
|
||||
from selfprivacy_api.graphql.queries.storage import Storage
|
||||
from selfprivacy_api.graphql.queries.system import System
|
||||
from selfprivacy_api.graphql.queries.monitoring import Monitoring
|
||||
|
||||
from selfprivacy_api.graphql.mutations.users_mutations import UsersMutations
|
||||
from selfprivacy_api.graphql.queries.users import Users
|
||||
|
@ -72,6 +73,11 @@ class Query:
|
|||
"""Backup queries"""
|
||||
return Backup()
|
||||
|
||||
@strawberry.field(permission_classes=[IsAuthenticated])
|
||||
def monitoring(self) -> Monitoring:
|
||||
"""Monitoring queries"""
|
||||
return Monitoring()
|
||||
|
||||
|
||||
@strawberry.type
|
||||
class Mutation(
|
||||
|
|
Loading…
Reference in a new issue