keymetrics / pm2-io-js-api

PM2.io API Client for Javascript
http://docs.api.cloud.pm2.io/index.html
Apache License 2.0
28 stars 13 forks source link

Add a method to trigger by app name instead of pm_id #52

Closed Unitech closed 5 years ago

Unitech commented 6 years ago
km.actions.triggerAction('5a26ca0ff419704978defc63', {
    server_name: 'door-control',
    process_id: 0,                                                                                                                                                                                                  
    action_name: 'open door'
}).then(rep => {

Instead of process_id, allow to pass an app_name

Eywek commented 5 years ago

duplicate #39