-
Notifications
You must be signed in to change notification settings - Fork 390
/
database.sandesh
executable file
·69 lines (62 loc) · 2.04 KB
/
database.sandesh
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
/*
* Copyright (c) 2014 Juniper Networks, Inc. All rights reserved.
*/
/**
* Definitions of structures added by contrail-database-nodemgr that go into
* Database Node UVE.
*/
include "base/sandesh/cpuinfo.sandesh"
include "base/sandesh/process_info.sandesh"
/**
* Database disk usage stats struct
*/
struct DatabaseUsageStats {
1: u64 disk_space_used_1k
2: u64 disk_space_available_1k
3: u64 analytics_db_size_1k
}
/**
* Database Usage info added into the Database Node UVE by
* contrail-database-nodemgr
*/
struct DatabaseUsageInfo {
1: string name (key="ObjectDatabaseInfo")
2: optional bool deleted
3: optional list<DatabaseUsageStats> database_usage (tags="")
}
/**
* @description: Database Usage info added into the Database Node UVE by
* contrail-database-nodemgr
* @object: database-node
*/
uve sandesh DatabaseUsage {
1: DatabaseUsageInfo data
}
/**
* NodeStatus info added into the Database Node UVE by
* contrail-database-nodemgr
*/
struct NodeStatus {
1: string name (key="ObjectDatabaseInfo")
2: optional bool deleted
3: optional string status
// Sent by process
4: optional list<process_info.ProcessStatus> process_status (aggtype="union")
// Sent by node manager
5: optional list<process_info.ProcessInfo> process_info (aggtype="union")
6: optional list<process_info.DiskPartitionUsageStats> disk_usage_info (tags="")
7: optional string description
8: optional list<string> all_core_file_list
9: optional string build_info
10: optional list<cpuinfo.ProcessCpuInfo> process_mem_cpu_usage (aggtype="union")
11: optional cpuinfo.SystemMemCpuUsage system_mem_cpu_usage
12: optional cpuinfo.SystemCpuInfo system_cpu_info
}
/**
* @description: NodeStatus data added to Database Node UVE sent by
* contrail-database-nodemgr
* @object: database-node
*/
uve sandesh NodeStatusUVE {
1: NodeStatus data
}