hce-node application  1.4.3
HCE Hierarchical Cluster Engine node application
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
DRCEJsonMessageConst.hpp
Go to the documentation of this file.
1 
14 #ifndef DRCE_JSON_MESSAGE_CONST_HPP
15 #define DRCE_JSON_MESSAGE_CONST_HPP
16 
17 #include <iostream>
18 
19 namespace HCE
20 {
21 namespace drce
22 {
23 namespace drce_json_message_const
24 {
25 //-----------------------------------------------------------------------------
26  // session options
27  const std::string sessionType = "type";
28  const std::string port = "port";
29  const std::string userName = "user";
30  const std::string userPassword = "password";
31  const std::string shellName = "shell";
32  const std::string environment = "environment";
33  const std::string homeDir = "home_directory";
34  const std::string timeout = "timeout";
35  const std::string tmode = "tmode";
36  const std::string timeMax = "time_max";
37  const std::string cleanup = "cleanup";
38  // resource limits
39  const std::string procMax = "proc_max";
40  const std::string threadsMax = "threads_max";
41  const std::string cpuMax = "cpu_max";
42  const std::string iowaitMax = "iowait_max";
43  const std::string vramFree = "vram_free";
44  const std::string vramFreeMin = "vram_free_min";
45  const std::string rramFree = "rram_free";
46  const std::string rramFreeMin = "rram_free_min";
47  const std::string diskFree = "disk_free";
48  const std::string diskFreeMin = "disk_free_min";
49  const std::string iowaitUsageMax = "iowait_usage_max";
50  const std::string vramUsageMax = "vram_usage_max";
51  const std::string rramUsageMax = "rram_usage_max";
52  const std::string diskUsageMax = "disk_usage_max";
53  const std::string diskUsageMaxBytes = "disk_usage_max_bytes";
54  // file item
55  const std::string fileName = "name";
56  const std::string fileData = "data";
57  const std::string actionTypeMask = "action";
58  // input json message
59  const std::string requestType = "type";
60  const std::string requestData = "data";
61  const std::string requestId = "id";
62  const std::string subtasksArray = "subtasks";
63  // task execute request
64  const std::string sessionOptions = "session";
65  const std::string commandLine = "command";
66  const std::string inputStream = "input";
67  const std::string resourceLimits = "limits";
68  // task check state
69  const std::string checkType = "type";
70  // task fetch type
71  const std::string fetchType = "type";
72  // task terminate
73  const std::string algorithmType = "alg";
74  const std::string delayValue = "delay";
75  const std::string repeatValue = "repeat";
76  const std::string signalValue = "signal";
77  // output json message
78  const std::string errorCode = "error_code";
79  const std::string errorMessage = "error_message";
80  const std::string state = "state";
81  const std::string pid = "pid";
82  const std::string responseBody = "data";
83  const std::string elapsedTime = "time";
84  const std::string nodeHost = "host";
85  const std::string nodePort = "port";
86  // result data
87  const std::string stdoutStream = "stdout";
88  const std::string stderrStream = "stderror";
89  const std::string filesArray = "files";
90  const std::string nodeName = "node";
91  const std::string time = "time";
92  const std::string exitStatus = "exit_status";
93  const std::string fields = "fields";
94  // task status data structure
95  const std::string id = "id";
96  const std::string sdate = "sdate";
97  // task info data structure
98  const std::string taskId = "id";
99  const std::string info = "info";
100  const std::string modified = "modified";
101  // resource usage data structure
102  const std::string CPU = "CPU";
103  const std::string IOWAIT = "IOWAIT";
104  const std::string VRAM = "VRAM";
105  const std::string RRAM = "RRAM";
106  const std::string DISK = "DISK";
107  const std::string PROCESSES = "PROCESSES";
108  const std::string THREADS = "THREADS";
109  const std::string LOADAVG = "LOADAVG";
110  // stat variable data data structure
111  const std::string MIN = "min";
112  const std::string AVG = "avg";
113  const std::string MAX = "max";
114  const std::string STAT_DELIMITER = "_";
115  // stat variables data structure
116  const std::string TIME_ASYNC_TASK = "time_async_task";
117  const std::string TIME_SYNC_TASK = "time_sync_task";
118  const std::string SIZE_INPUT_BUFFER_SYNC_TASKS = "size_input_buffer_sync_tasks";
119  const std::string SIZE_OUTPUT_BUFFER_SYNC_TASKS = "size_output_buffer_sync_tasks";
120  const std::string SIZE_INPUT_BUFFER_ASYNC_TASKS = "size_input_buffer_async_tasks";
121  const std::string SIZE_OUTPUT_BUFFER_ASYNC_TASKS = "size_output_buffer_async_tasks";
122  const std::string CPU_USAGE_ASYNC_TASKS = "cpu_usage_async_tasks";
123  const std::string MEMORY_USAGE_ASYNC_TASKS = "memory_usage_async_tasks";
124  const std::string COUNT_SYNC_TASKS_FOR_MINUTE = "count_sync_tasks_for_minute";
125  const std::string COUNT_ASYNC_TASKS_FOR_MINUTE = "count_async_tasks_for_minute";
126  const std::string COUNT_SYNC_TASKS = "count_sync_tasks";
127  const std::string COUNT_ASYNC_TASKS = "count_async_tasks";
128  const std::string COUNT_SYNC_TASKS_FAIL = "count_sync_tasks_fail";
129  const std::string COUNT_ASYNC_TASKS_FAIL = "count_async_tasks_fail";
130  // average count variables data structure
131  const std::string TIME_ASYNC_TASK_COUNT = "time_async_task_count";
132  const std::string TIME_SYNC_TASK_COUNT = "time_sync_task_count";
133  const std::string SIZE_INPUT_BUFFER_SYNC_TASKS_COUNT = "size_input_buffer_sync_tasks_count";
134  const std::string SIZE_OUTPUT_BUFFER_SYNC_TASKS_COUNT = "size_output_buffer_sync_tasks_count";
135  const std::string SIZE_INPUT_BUFFER_ASYNC_TASKS_COUNT = "size_input_buffer_async_tasks_count";
136  const std::string SIZE_OUTPUT_BUFFER_ASYNC_TASKS_COUNT = "size_output_buffer_async_tasks_count";
137  const std::string CPU_USAGE_ASYNC_TASKS_COUNT = "cpu_usage_async_tasks_count";
138  const std::string MEMORY_USAGE_ASYNC_TASKS_COUNT = "memory_usage_async_tasks_count";
139  const std::string COUNT_SYNC_TASKS_FOR_MINUTE_COUNT = "count_sync_tasks_for_minute_count";
140  const std::string COUNT_ASYNC_TASKS_FOR_MINUTE_COUNT = "count_async_tasks_for_minute_count";
141 
142 //-----------------------------------------------------------------------------
143 //-----------------------------------------------------------------------------
144 } // end namespace drce_json_message_const
145 } // end namespace drce
146 } // end namespace HCE
147 
148 #endif // DRCE_JSON_MESSAGE_CONST_HPP