-
Notifications
You must be signed in to change notification settings - Fork 42
/
sandesh_uve.sandesh
221 lines (189 loc) · 6.1 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
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
/*
* sandesh_uve.sandesh
*
* Sandesh Library definitions
*/
include "io/io.sandesh"
struct SandeshMessageStats {
1: u64 messages_sent;
2: u64 bytes_sent;
3: u64 messages_received;
4: u64 bytes_received;
5: u64 messages_sent_dropped;
6: u64 bytes_sent_dropped;
7: u64 messages_received_dropped;
8: u64 bytes_received_dropped;
// Send
// Messages
51: u64 messages_sent_dropped_no_queue;
52: u64 messages_sent_dropped_no_client;
53: u64 messages_sent_dropped_no_session;
54: u64 messages_sent_dropped_queue_level;
55: u64 messages_sent_dropped_client_send_failed;
56: u64 messages_sent_dropped_session_not_connected;
57: u64 messages_sent_dropped_header_write_failed;
58: u64 messages_sent_dropped_write_failed;
59: u64 messages_sent_dropped_wrong_client_sm_state;
60: u64 messages_sent_dropped_validation_failed;
// Bytes
81: u64 bytes_sent_dropped_no_queue;
82: u64 bytes_sent_dropped_no_client;
83: u64 bytes_sent_dropped_no_session;
84: u64 bytes_sent_dropped_queue_level;
85: u64 bytes_sent_dropped_client_send_failed;
86: u64 bytes_sent_dropped_session_not_connected;
87: u64 bytes_sent_dropped_header_write_failed;
88: u64 bytes_sent_dropped_write_failed;
89: u64 bytes_sent_dropped_wrong_client_sm_state;
90: u64 bytes_sent_dropped_validation_failed;
// Receive
// Messages
101: u64 messages_received_dropped_no_queue;
102: u64 messages_received_dropped_queue_level;
103: u64 messages_received_dropped_create_failed;
104: u64 messages_received_dropped_control_msg_failed;
105: u64 messages_received_dropped_decoding_failed;
// Bytes
131: u64 bytes_received_dropped_no_queue;
132: u64 bytes_received_dropped_queue_level;
133: u64 bytes_received_dropped_create_failed;
134: u64 bytes_received_dropped_control_msg_failed;
135: u64 bytes_received_dropped_decoding_failed;
}
struct SandeshMessageTypeStats {
1: string message_type;
2: SandeshMessageStats stats;
}
struct SandeshQueueStats {
1: u64 enqueues;
2: u64 count;
}
struct SandeshGeneratorStats {
1: list<SandeshMessageTypeStats> type_stats;
2: SandeshMessageStats 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 SandeshUVECacheReq {
1: string tname;
2: optional string key;
}
response sandesh SandeshUVECacheResp {
1: u32 returned;
}
request sandesh SandeshUVETypesReq {
}
struct SandeshUVETypeInfo {
1: string type_name (link="SandeshUVECacheReq")
2: u32 seq_num;
}
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
4: optional SandeshGeneratorStats msg_stats
5: optional u64 sm_queue_count (tags="")
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
}
uve sandesh SandeshModuleClientTrace {
1: ModuleClientState data
}