|
lintel 0.2.0
|
#include <ProcessApi.h>
Public Member Functions | |
| ProcessApi (const std::shared_ptr< ClientProvider > &clientProvicer) | |
| std::vector< ProcessInfoDto > | allOf (const std::string &processName) |
| std::vector< ProcessGroupDto > | allGroupsOf (const std::string &groupName) |
| void | startOf (const std::shared_ptr< Process > &process) |
| void | stopOf (const std::string &id) |
| void | terminateOf (const std::string &id) |
| void | restartOf (const std::string &id) |
| void | resetOf (const std::string &id) |
| std::optional< ProcessInfoDto > | healthOf (const std::string &id) |
API client for process management via HTTP
|
explicit |
| std::vector< ProcessGroupDto > lintel::ProcessApi::allGroupsOf | ( | const std::string & | groupName | ) |
| groupName | name filter; return all matching process groups |
| std::vector< ProcessInfoDto > lintel::ProcessApi::allOf | ( | const std::string & | processName | ) |
| processName | name filter; return all matching processes |
| std::optional< ProcessInfoDto > lintel::ProcessApi::healthOf | ( | const std::string & | id | ) |
Query the resource/health snapshot of a process by ID
| id | the process ID |
Reset the restart counter and failure state of a process by ID