report-json-serializer: app and top serializers
[apps/native/ttsd-worker-task.git] / src / json-schema-defs.h
1 /*
2  * Copyright (c) 2018 Samsung Electronics Co., Ltd.
3  *
4  * Licensed under the Flora License, Version 1.1 (the License);
5  * you may not use this file except in compliance with the License.
6  * You may obtain a copy of the License at
7  *
8  * http://floralicense.org/license/
9  *
10  * Unless required by applicable law or agreed to in writing, software
11  * distributed under the License is distributed on an AS IS BASIS,
12  * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13  * See the License for the specific language governing permissions and
14  * limitations under the License.
15  */
16
17 #ifndef __JSON_SCHEMA_DEFS_H_
18 #define __JSON_SCHEMA_DEFS_H_
19
20 #define SCHEMA_TYPE "type"
21 #define SCHEMA_TYPE_TOP "TOP"
22 #define SCHEMA_TYPE_SYSTEM "SYSTEM"
23 #define SCHEMA_TYPE_LOAD_AVG "LOAD_AVG"
24 #define SCHEMA_TYPE_PROCESS "PROCESS"
25
26 #define SCHEMA_TARGET "target"
27 #define SCHEMA_TARGET_CPU "CPU"
28 #define SCHEMA_TARGET_MEMORY "MEMORY"
29
30 #define SCHEMA_FREQUENCY "frequency"
31 #define SCHEMA_TOP "top"
32 #define SCHEMA_ID "id"
33
34 #define SCHEMA_RESULT_DATA_SYSTEM "system_data"
35 #define SCHEMA_RESULT_DATA_LOAD_AVG "load_avg_data"
36 #define SCHEMA_RESULT_DATA_PROCESS "process_data"
37 #define SCHEMA_RESULT_DATA_TOP "top_data"
38
39 #define SCHEMA_RESULT_PID "pid"
40 #define SCHEMA_RESULT_TIME "time"
41 #define SCHEMA_RESULT_USAGE "usage"
42 #define SCHEMA_RESULT_AVG_ONE "one_min_avg"
43 #define SCHEMA_RESULT_AVG_FIVE "five_min_avg"
44 #define SCHEMA_RESULT_AVG_FIFTEEN "fifteen_min_avg"
45
46 #define SCHEMA_RESULT_RESULT "result"
47 #define SCHEMA_RESULT_ERROR "error"
48 #define SCHEMA_RESULT_ERROR_APP_NOT_RUNNING "App not running"
49
50 #endif