/
peer_info.sandesh
111 lines (95 loc) · 2.77 KB
/
peer_info.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
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
include "sandesh/library/common/derived_stats_results.sandesh"
struct PeerProtoStats {
1: u64 total;
2: u64 open;
3: u64 keepalive;
4: u64 notification;
5: u64 update;
6: u64 close;
}
struct PeerUpdateStats {
1: u64 total;
2: u64 reach;
3: u64 unreach;
4: u64 end_of_rib;
}
struct PeerSocketStats {
1: u64 bytes;
2: u64 calls;
3: double average_bytes;
4: string blocked_duration;
5: u64 blocked_count;
6: string average_blocked_duration;
}
struct PeerRxInet6ErrorStats {
1: u64 bad_inet6_xml_token_count;
2: u64 bad_inet6_prefix_count;
3: u64 bad_inet6_nexthop_count;
4: u64 bad_inet6_afi_safi_count;
}
struct PeerRxErrorStats {
1: PeerRxInet6ErrorStats inet6_error_stats;
}
struct PeerEventInfo {
1: optional string last_event;
2: optional u64 last_event_at;
}
struct PeerStateInfo {
1: optional string state;
2: optional string last_state;
3: optional u64 last_state_at;
}
struct PeerFlapInfo {
1: optional u64 flap_count;
2: optional u64 flap_time;
}
struct PeerRxRouteStats {
1: optional u64 total_path_count;
2: optional u64 primary_path_count;
}
struct PeerStatsInfo {
1: optional PeerProtoStats rx_proto_stats;
2: optional PeerProtoStats tx_proto_stats;
3: optional PeerUpdateStats rx_update_stats;
4: optional PeerUpdateStats tx_update_stats;
5: optional PeerSocketStats rx_socket_stats;
6: optional PeerSocketStats tx_socket_stats;
7: optional PeerRxErrorStats rx_error_stats;
8: optional PeerRxRouteStats rx_route_stats;
}
struct PeerStatsData {
1: string name (key="");
2: optional bool deleted;
3: optional PeerUpdateStats rx_update_stats(metric="agg",tags="");
4: optional PeerUpdateStats tx_update_stats(metric="agg",tags="");
5: optional derived_stats_results.AnomalyResult rx_update_stats_ewm (stats="rx_update_stats.total:DSAnomaly:EWM:0.2");
6: optional derived_stats_results.AnomalyResult tx_update_stats_ewm (stats="tx_update_stats.total:DSAnomaly:EWM:0.2");
}
uve sandesh PeerStatsUve {
1: PeerStatsData data;
}
typedef u64 flap_u64
struct flap_u64_P_ {
1: optional flap_u64 value;
2: optional flap_u64 staging;
}
struct PeerFlapData {
1: string name (key=""); // Control-node-ip:Agent-ip
2: optional bool deleted;
3: optional PeerFlapInfo flap_info (metric="agg");
4: optional flap_u64_P_ flap_10m
(stats="1-flap_info.flap_count:DSSum:");
5: optional flap_u64_P_ flap_1h
(stats="6-flap_info.flap_count:DSSum:",hidden="yes");
} (period="600")
/**
* @description: Peer specific information
* @severity: DEBUG
* @cause: Normal operation
*/
uve sandesh PeerFlap {
1: PeerFlapData data;
}