|
lintel 0.2.0
|
#include <ProcessInfoDto.h>
DTO representing detailed process information
|
explicit |
Construct from a ProcessInfo model
| processInfo | The source process info |
|
default |
Default constructor
Deserialize from JSON
| obj | The JSON value |
Reimplemented from lintel::JsonSerializable.
| const std::vector< std::string > & lintel::ProcessInfoDto::getArgs | ( | ) | const |
Get the command line arguments
| std::optional< double > lintel::ProcessInfoDto::getCpuPercent | ( | ) | const |
Get the CPU usage in percent (if a delta is available)
| int32_t lintel::ProcessInfoDto::getExitCode | ( | ) | const |
Get the exit code
| const std::string & lintel::ProcessInfoDto::getGroupId | ( | ) | const |
Get the group ID
| const std::string & lintel::ProcessInfoDto::getGroupName | ( | ) | const |
Get the group name
| const std::string & lintel::ProcessInfoDto::getId | ( | ) | const |
Get the process ID
| int32_t lintel::ProcessInfoDto::getMaxAutoRestarts | ( | ) | const |
Get the maximum allowed auto-restarts
| std::optional< uint64_t > lintel::ProcessInfoDto::getMemoryBytes | ( | ) | const |
Get the resident memory usage in bytes (if readable)
| const std::filesystem::path & lintel::ProcessInfoDto::getPath | ( | ) | const |
Get the executable path
| lintel::ProcessId lintel::ProcessInfoDto::getProcessId | ( | ) | const |
Get the OS process ID
| int32_t lintel::ProcessInfoDto::getRestarts | ( | ) | const |
Get the current restart count
| std::optional< int64_t > lintel::ProcessInfoDto::getUptimeSeconds | ( | ) | const |
Get the process uptime in seconds (if readable)
| bool lintel::ProcessInfoDto::isAutoRestart | ( | ) | const |
Check if auto-restart is enabled
| bool lintel::ProcessInfoDto::isExitCodeValid | ( | ) | const |
Check if the exit code is meaningful
| bool lintel::ProcessInfoDto::isResourceDataValid | ( | ) | const |
Check if resource data is valid
| bool lintel::ProcessInfoDto::isRunning | ( | ) | const |
Check if the process is running
|
overridevirtual |