Skip to end of metadata
Go to start of metadata

You are viewing an old version of this content. View the current version.

Compare with Current View Version History

Version 1 Current »

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"
        }
      ]
    }
  }
}
  • No labels