/
sandesh_uve.sandesh
272 lines (232 loc) · 8.25 KB
/
sandesh_uve.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
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
/*
* sandesh_uve.sandesh
*
* Sandesh Library definitions
*/
include "io/io.sandesh"
include "sandesh/library/common/derived_stats_results.sandesh"
struct SandeshMessageStats {
1: optional u64 messages_sent;
2: optional u64 bytes_sent;
3: optional u64 messages_received;
4: optional u64 bytes_received;
5: optional u64 messages_sent_dropped;
6: optional u64 bytes_sent_dropped;
7: optional u64 messages_received_dropped;
8: optional u64 bytes_received_dropped;
// Send
// Messages
51: optional u64 messages_sent_dropped_no_queue;
52: optional u64 messages_sent_dropped_no_client;
53: optional u64 messages_sent_dropped_no_session;
54: optional u64 messages_sent_dropped_queue_level;
55: optional u64 messages_sent_dropped_client_send_failed;
56: optional u64 messages_sent_dropped_session_not_connected;
57: optional u64 messages_sent_dropped_header_write_failed;
58: optional u64 messages_sent_dropped_write_failed;
59: optional u64 messages_sent_dropped_wrong_client_sm_state;
60: optional u64 messages_sent_dropped_validation_failed;
61: optional u64 messages_sent_dropped_rate_limited;
// Bytes
81: optional u64 bytes_sent_dropped_no_queue;
82: optional u64 bytes_sent_dropped_no_client;
83: optional u64 bytes_sent_dropped_no_session;
84: optional u64 bytes_sent_dropped_queue_level;
85: optional u64 bytes_sent_dropped_client_send_failed;
86: optional u64 bytes_sent_dropped_session_not_connected;
87: optional u64 bytes_sent_dropped_header_write_failed;
88: optional u64 bytes_sent_dropped_write_failed;
89: optional u64 bytes_sent_dropped_wrong_client_sm_state;
90: optional u64 bytes_sent_dropped_validation_failed;
91: optional u64 bytes_sent_dropped_rate_limited;
// Receive
// Messages
101: optional u64 messages_received_dropped_no_queue;
102: optional u64 messages_received_dropped_queue_level;
103: optional u64 messages_received_dropped_create_failed;
104: optional u64 messages_received_dropped_control_msg_failed;
105: optional u64 messages_received_dropped_decoding_failed;
// Bytes
131: optional u64 bytes_received_dropped_no_queue;
132: optional u64 bytes_received_dropped_queue_level;
133: optional u64 bytes_received_dropped_create_failed;
134: optional u64 bytes_received_dropped_control_msg_failed;
135: optional u64 bytes_received_dropped_decoding_failed;
}
struct SandeshMessageBasicStats {
1: u64 messages_sent;
2: u64 bytes_sent;
3: u64 messages_received;
4: u64 bytes_received;
5: u64 messages_sent_dropped;
6: u64 messages_received_dropped;
}
struct SandeshMessageTypeBasicStats {
1: string message_type;
2: SandeshMessageBasicStats stats;
}
struct SandeshMessageTypeStats {
1: string message_type;
2: SandeshMessageStats stats;
}
struct SandeshQueueStats {
1: u64 enqueues;
2: u64 count;
3: u64 max_count;
}
struct SandeshGeneratorStats {
1: list<SandeshMessageTypeStats> type_stats;
2: SandeshMessageStats aggregate_stats;
3: SandeshQueueStats send_queue_stats;
}
struct SandeshGeneratorBasicStats {
1: list<SandeshMessageTypeBasicStats> type_stats;
2: SandeshMessageBasicStats aggregate_stats;
3: SandeshQueueStats send_queue_stats;
}
request sandesh SandeshMessageStatsReq {
}
response sandesh SandeshMessageStatsResp {
1: SandeshGeneratorStats stats;
}
request sandesh SandeshLoggingParamsSet {
1: optional bool enable;
2: optional string category;
3: optional string log_level;
4: optional bool trace_print;
5: optional bool enable_flow_log;
}
request sandesh SandeshLoggingParamsStatus {
}
request sandesh SandeshSendingParamsSet {
1: optional bool high;
2: optional u32 queue_count;
3: optional string sending_level;
}
request sandesh SandeshSendingParamsReset {
}
request sandesh SandeshSendingParamsStatus {
}
struct SandeshSendingParams {
1: bool high;
2: u32 queue_count;
3: string sending_level;
}
response sandesh SandeshSendingParamsResponse {
1: list<SandeshSendingParams> info;
}
response sandesh SandeshLoggingParams {
1: bool enable;
2: string category;
3: string log_level;
4: bool trace_print;
5: bool enable_flow_log;
}
request sandesh SandeshSendQueueSet {
1: optional bool enable;
}
request sandesh SandeshSendQueueStatus {
}
response sandesh SandeshSendQueueResponse {
1: bool enable;
}
request sandesh CollectorInfoRequest {
}
response sandesh CollectorInfoResponse {
1: string ip;
2: i32 port;
3: string status;
}
request sandesh SandeshUVEDSConfReq {
1: string tname
2: string dsattr
3: string dsconf
}
response sandesh SandeshUVEDSConfResp {
1: bool success
2: optional map<string,string> dsconf
}
request sandesh SandeshUVECacheReq {
1: string tname;
2: optional string key;
}
response sandesh SandeshUVECacheResp {
1: u32 returned;
2: optional i32 period;
}
request sandesh SandeshUVETypesReq {
}
struct SandeshUVETypeInfo {
1: string type_name (link="SandeshUVECacheReq")
2: u32 seq_num;
3: i32 period
4: map <string,string> dsconf
}
response sandesh SandeshUVETypesResp {
1: list<SandeshUVETypeInfo> type_info;
}
struct SandeshStateMachineEvStats {
1: string event;
2: u64 enqueues;
3: u64 dequeues;
4: u64 enqueue_fails;
5: u64 dequeue_fails;
}
struct SandeshStateMachineStats {
1: optional list<SandeshStateMachineEvStats> ev_stats
2: optional string state
3: optional u64 state_since
4: optional string last_state
5: optional string last_event
6: optional u64 last_event_at
}
struct SandeshClientInfo {
1: optional string status
2: optional u32 successful_connections
3: optional u32 pid
4: optional u32 http_port
5: optional u64 start_time
6: optional string collector_name
7: optional string primary
8: optional string secondary
9: optional io.SocketIOStats rx_socket_stats
10: optional io.SocketIOStats tx_socket_stats
}
struct SandeshSessionStats {
1: u64 num_recv_msg
2: u64 num_recv_msg_fail
3: u64 num_recv_fail
4: u64 num_send_msg
5: u64 num_send_msg_fail
6: u64 num_send_buffer_fail
7: u64 num_wait_msgq_enqueue
8: u64 num_wait_msgq_dequeue
9: u64 num_write_ready_cb_error
}
struct ModuleClientState {
1: string name (key="ObjectGeneratorInfo")
2: optional bool deleted
3: optional SandeshClientInfo client_info
5: optional u64 sm_queue_count
6: optional SandeshStateMachineStats sm_stats
7: optional SandeshSessionStats session_stats
8: optional io.SocketIOStats session_rx_socket_stats
9: optional io.SocketIOStats session_tx_socket_stats
10: optional map<string, SandeshMessageStats> msg_type_agg (metric="agg", hidden="yes")
/** @display_name:Sandesh Client Message Type Stats*/
11: optional map<string, SandeshMessageStats> msg_type_diff (mstats="msg_type_agg:DSNon0:", tags=".__key")
12: optional map<string, SandeshMessageStats> msg_type_1h (mstats="msg_type_agg:DSSum:3600", hidden="yes")
13: optional map<string, u64> msg_type_tx_10m (mstats="msg_type_agg.messages_sent:DSSum:600")
/** @display_name:Sandesh Client Message Stats*/
20: optional map<string, u64> tx_msg_agg (metric="agg", hidden="yes")
21: optional map<string, u64> tx_msg_diff (mstats="tx_msg_agg:DSNon0:",tags=".__key")
22: optional map<string, u64> tx_msg_1h (mstats="tx_msg_agg:DSSum:3600", hidden="yes")
23: optional map<string, u64> tx_msg_10m (mstats="tx_msg_agg:DSSum:600")
14: optional u64 max_sm_queue_count
}
uve sandesh SandeshModuleClientTrace {
1: ModuleClientState data
}