add readme showing graphql info
This commit is contained in:
parent
5512ec4c50
commit
959294fd48
@ -2,9 +2,8 @@
|
|||||||
<project version="4">
|
<project version="4">
|
||||||
<component name="ChangeListManager">
|
<component name="ChangeListManager">
|
||||||
<list default="true" id="76e62301-cc1d-40d1-8025-77ac5d7e8dda" name="Default Changelist" comment="">
|
<list default="true" id="76e62301-cc1d-40d1-8025-77ac5d7e8dda" name="Default Changelist" comment="">
|
||||||
<change afterPath="$PROJECT_DIR$/.gitignore" afterDir="false" />
|
<change afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
|
||||||
<change afterPath="$PROJECT_DIR$/monitoring/check_version.sh" afterDir="false" />
|
<change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
|
||||||
<change beforePath="$PROJECT_DIR$/rapport_activite/rapport_activite.sh" beforeDir="false" afterPath="$PROJECT_DIR$/rapport_activite/rapport_activite.sh" afterDir="false" />
|
|
||||||
</list>
|
</list>
|
||||||
<option name="SHOW_DIALOG" value="false" />
|
<option name="SHOW_DIALOG" value="false" />
|
||||||
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
||||||
@ -18,7 +17,9 @@
|
|||||||
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
<option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
|
||||||
</component>
|
</component>
|
||||||
<component name="ProjectId" id="1kEGuLSSTM6Dx3fhMyumeTik3ys" />
|
<component name="ProjectId" id="1kEGuLSSTM6Dx3fhMyumeTik3ys" />
|
||||||
<component name="ProjectLevelVcsManager" settingsEditedManually="true" />
|
<component name="ProjectLevelVcsManager" settingsEditedManually="true">
|
||||||
|
<ConfirmationsSetting value="2" id="Add" />
|
||||||
|
</component>
|
||||||
<component name="ProjectViewState">
|
<component name="ProjectViewState">
|
||||||
<option name="autoscrollFromSource" value="true" />
|
<option name="autoscrollFromSource" value="true" />
|
||||||
<option name="autoscrollToSource" value="true" />
|
<option name="autoscrollToSource" value="true" />
|
||||||
@ -46,7 +47,7 @@
|
|||||||
<workItem from="1605258559558" duration="1754000" />
|
<workItem from="1605258559558" duration="1754000" />
|
||||||
<workItem from="1605602229773" duration="5663000" />
|
<workItem from="1605602229773" duration="5663000" />
|
||||||
<workItem from="1605690163417" duration="137000" />
|
<workItem from="1605690163417" duration="137000" />
|
||||||
<workItem from="1606396769239" duration="1952000" />
|
<workItem from="1606396769239" duration="2931000" />
|
||||||
</task>
|
</task>
|
||||||
<servers />
|
<servers />
|
||||||
</component>
|
</component>
|
||||||
|
51
README.md
Normal file
51
README.md
Normal file
@ -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
|
Loading…
Reference in New Issue
Block a user