-
Notifications
You must be signed in to change notification settings - Fork 390
/
interface.sandesh
125 lines (115 loc) · 4.21 KB
/
interface.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
/*
* Copyright (c) 2015 Juniper Networks, Inc. All rights reserved.
*/
include "vnsw/agent/uve/port_bmap.sandesh"
include "sandesh/library/common/derived_stats_results.sandesh"
include "vnsw/agent/uve/vrouter.sandesh"
/**
* Uve definitions for interface
*/
/**
* Sandesh definition for vm floatingip in agent
*/
struct VmFloatingIPAgent {
1: string virtual_network;
2: string ip_address;
}
/**
* Sandesh definition for vm floating ip stats
*/
struct VmFloatingIPStats {
1: string virtual_network;
2: string ip_address;
3: u64 in_pkts;
4: u64 in_bytes;
5: u64 out_pkts;
6: u64 out_bytes;
}
/**
* VM's interfaces' stats samples (diff stats)
*/
struct VmInterfaceStats {
1: u64 in_pkts;
2: u64 in_bytes;
3: u64 out_pkts;
4: u64 out_bytes;
/** Drop packet count */
5: u64 drop_pkts;
}
struct VmHealthCheckInstance {
1: string name;
2: string uuid;
3: bool is_running;
4: string status;
}
/**
* Number of flow hits for a given SG ACL Rule
*/
struct SgAclRuleStats {
1: string rule;
2: u64 count;
}
/**
* Sandesh definition for vm interface in agent
*/
struct UveVMInterfaceAgent {
1: string name (key="ObjectVMITable")
2: optional bool deleted
3: optional string ip_address;
4: string virtual_network;
5: optional string mac_address;
6: optional u32 label;
7: optional bool active;
8: string vm_name;
9: optional string gateway;
10: optional bool l2_active;
11: optional string uuid;
12: optional string ip6_address;
13: optional bool ip6_active;
14: optional port_bmap.PortBucketBitmap port_bucket_bmap;
15: optional list<VmFloatingIPAgent> floating_ips;
/* List of Floating Ips along with total stats */
16: optional list<VmFloatingIPStats> fip_agg_stats;
/** @display_name:Virtual Machine Floating IP Statistics*/
17: optional list<VmFloatingIPStats> fip_diff_stats (tags=".virtual_network,.ip_address")
/** Statistics of VMI. Contains aggregate statistics */
18: optional VmInterfaceStats raw_if_stats (metric="agg", hidden="yes")
/** Contains statistics of VMI since previous send */
/** @display_name:Virtual Machine Interface Statistics */
30: optional VmInterfaceStats if_stats (stats="raw_if_stats:DSNon0:", tags="vm_name,vm_uuid")
31: optional derived_stats_results.AnomalyResult if_in_pkts_ewm
(stats="raw_if_stats.in_pkts:DSAnomaly:EWM:0.1")
32: optional derived_stats_results.AnomalyResult if_out_pkts_ewm
(stats="raw_if_stats.out_pkts:DSAnomaly:EWM:0.1")
19: string vm_uuid;
20: optional u64 in_bw_usage;
21: optional u64 out_bw_usage;
22: optional bool ip4_active;
23: optional bool is_health_check_active;
24: optional list<VmHealthCheckInstance> health_check_instance_list;
/** @display_name:VMI ACL Rule Statistics*/
25: optional list<SgAclRuleStats> sg_rule_stats (tags=".rule");
/** @display_name:Interface Flow Setup Statistics*/
26: optional vrouter.VrouterFlowRate flow_rate (tags="virtual_network")
41: optional derived_stats_results.AnomalyResult added_flows_ewm
(stats="flow_rate.added_flows:DSAnomaly:EWM:0.1")
42: optional derived_stats_results.AnomalyResult deleted_flows_ewm
(stats="flow_rate.deleted_flows:DSAnomaly:EWM:0.1")
43: optional derived_stats_results.AnomalyResult active_flows_ewm
(stats="flow_rate.active_flows:DSAnomaly:EWM:0.1")
27: optional bool admin_state;
28: optional list<string> fixed_ip4_list;
29: optional list<string> fixed_ip6_list;
33: optional map<string, u64> raw_drop_stats (metric="agg", hidden="yes")
/** @display_name:Packet drop Statistics*/
34: optional map<string, u64> drop_stats (mstats="raw_drop_stats:DSNon0:", tags=".__key,virtual_network")
35: optional map<string, u64> drop_stats_1h (mstats="raw_drop_stats:DSSum:3600")
}
/**
* @description: uve for vm interface in agent
* @type: uve
* @object:Interface
*/
uve sandesh UveVMInterfaceAgentTrace {
1: UveVMInterfaceAgent data;
}