diff --git a/.idea/workspace.xml b/.idea/workspace.xml index ad12d01..245cfb3 100644 --- a/.idea/workspace.xml +++ b/.idea/workspace.xml @@ -2,9 +2,8 @@ - - - + + - + + + diff --git a/README.md b/README.md new file mode 100644 index 0000000..077d357 --- /dev/null +++ b/README.md @@ -0,0 +1,51 @@ +#Mobilizon Chapril Tools + +## Monitoring +Surveiller les signes de vie du site depuis Icinga. +https://icinga.chapril.org + + +## Rapport d'activité +Générer un rapport incluant des statistiques à propos de l'utilisation du site et le publier dans un ticket Redmine de Agir.chapril.org + +## Statistiques +obtention des statistiques publiques de l'instance par une requête GraphQL à l'url https://mobilizon.chapril.org/api/ dont le corps est: + +```graphql +{ + statistics { + numberOfUsers + numberOfEvents + numberOfLocalEvents + numberOfComments + numberOfLocalComments + numberOfGroups + numberOfLocalGroups + numberOfInstanceFollowers + numberOfInstanceFollowings + } +} +``` +exemple de réponse: +``` +{ + "data": { + "statistics": { + "numberOfComments": 9, + "numberOfEvents": 45, + "numberOfGroups": 7, + "numberOfInstanceFollowers": 0, + "numberOfInstanceFollowings": 1, + "numberOfLocalComments": 0, + "numberOfLocalEvents": 0, + "numberOfLocalGroups": 0, + "numberOfUsers": 1 + } + } +} +``` +Détail des paramètres à demander sur la doc: +https://framagit.org/framasoft/mobilizon/-/blob/master/js/schema.graphql + +On peut tester des requêtes sur cette sandbox +https://mobilizon.fr/graphiql