PM2 GraphQL APIs

This section will capture the APIs related with pm2 Module.

Fetch pm2 applications status

API - fetchPm2AppStatus

API Parameter- none

 

Query Parameters 

status message apps{    name    PID    status    memory    uptime    }

 

 

API Request 

query{   fetchPm2AppStatus{     status     message     apps{       name       PID       status       memory       uptime             }   } }

 

API Response 

{   "data": {     "fetchPm2AppStatus": {       "status": true,       "message": "Kindle follow the pm2 apps and their status",       "apps": [         {           "name": "xmpp",           "PID": "20152",           "status": "online",           "memory": "115.78MB",           "uptime": "2 months, 15 days"         },         {           "name": "ucp",           "PID": "23077",           "status": "online",           "memory": "51.44MB",           "uptime": "5 hours, 15 minutes"         }       ]     }   } }

Return to Documentation Home I Return to Sangoma Support