platformManagerTypes.h
Go to the documentation of this file.
1 
5 #pragma once
6 
7 #include <string>
8 #include <vector>
9 
10 namespace dpyPlatformmanager {
11 
19  IDLE = 3
20 };
21 
26  STARTED = 0,
27  STOPPED = 1,
28  RELAUNCHED = 2,
29 };
30 
35 struct Status
36 {
37  int numberOfRetries = 0;
38  int secondsRunning = 0;
39  int lastKicked = 0;
40  int deadline = 0;
41  float mtbf = -1;
43 };
44 
49 {
50  std::string processExec = "";
51  std::string processPath = "";
52  std::vector<std::string> args = {};
53  bool relaunch = true;
54  int delayOnLaunch = 0;
55  bool critical = false;
56  std::string preScriptPath = "";
57  std::string postScriptPath = "";
58 };
59 
64 {
65  std::string name;
68 };
69 
70 }
Definition: platformManagerTypes.h:28
int secondsRunning
Definition: platformManagerTypes.h:38
Definition: platformManagerTypes.h:18
Definition: platformManagerTypes.h:63
Definition: platformManagerTypes.h:16
Definition: platformManagerTypes.h:48
ExtendedProcessOptions option
Definition: platformManagerTypes.h:66
ProcessEvent
Definition: platformManagerTypes.h:25
Definition: platformManagerTypes.h:26
EvaluationStatus
Definition: platformManagerTypes.h:15
Deepsy Platformmanager namespace that includes the different enums, structs or method signatures that...
Definition: platformmanagerApi.h:18
std::string name
Definition: platformManagerTypes.h:65
float mtbf
Definition: platformManagerTypes.h:41
Definition: platformManagerTypes.h:19
int deadline
Definition: platformManagerTypes.h:40
Definition: platformManagerTypes.h:35
Definition: platformManagerTypes.h:17
Status status
Definition: platformManagerTypes.h:67
Definition: platformManagerTypes.h:27
int numberOfRetries
Definition: platformManagerTypes.h:37