fluent-plugin-juniper-telemetry_tech-mocha 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,93 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'telemetry_top.pb'
13
+
14
+
15
+ ##
16
+ # Message Classes
17
+ #
18
+ class Optics < ::Protobuf::Message; end
19
+ class OpticsInfos < ::Protobuf::Message; end
20
+ class OpticsDiagStats < ::Protobuf::Message; end
21
+ class OpticsDiagLaneStats < ::Protobuf::Message; end
22
+
23
+
24
+ ##
25
+ # Message Fields
26
+ #
27
+ class Optics
28
+ repeated ::OpticsInfos, :Optics_diag, 1
29
+ end
30
+
31
+ class OpticsInfos
32
+ required :string, :if_name, 1, :".telemetry_options" => { :is_key => true }
33
+ optional :uint32, :snmp_if_index, 2
34
+ optional ::OpticsDiagStats, :optics_diag_stats, 3
35
+ end
36
+
37
+ class OpticsDiagStats
38
+ optional :uint32, :optics_type, 1
39
+ optional :double, :module_temp, 2, :".telemetry_options" => { :is_gauge => true }
40
+ optional :double, :module_temp_high_alarm_threshold, 3, :".telemetry_options" => { :is_gauge => true }
41
+ optional :double, :module_temp_low_alarm_threshold, 4, :".telemetry_options" => { :is_gauge => true }
42
+ optional :double, :module_temp_high_warning_threshold, 5, :".telemetry_options" => { :is_gauge => true }
43
+ optional :double, :module_temp_low_warning_threshold, 6, :".telemetry_options" => { :is_gauge => true }
44
+ optional :double, :laser_output_power_high_alarm_threshold_dbm, 7, :".telemetry_options" => { :is_gauge => true }
45
+ optional :double, :laser_output_power_low_alarm_threshold_dbm, 8, :".telemetry_options" => { :is_gauge => true }
46
+ optional :double, :laser_output_power_high_warning_threshold_dbm, 9, :".telemetry_options" => { :is_gauge => true }
47
+ optional :double, :laser_output_power_low_warning_threshold_dbm, 10, :".telemetry_options" => { :is_gauge => true }
48
+ optional :double, :laser_rx_power_high_alarm_threshold_dbm, 11, :".telemetry_options" => { :is_gauge => true }
49
+ optional :double, :laser_rx_power_low_alarm_threshold_dbm, 12, :".telemetry_options" => { :is_gauge => true }
50
+ optional :double, :laser_rx_power_high_warning_threshold_dbm, 13, :".telemetry_options" => { :is_gauge => true }
51
+ optional :double, :laser_rx_power_low_warning_threshold_dbm, 14, :".telemetry_options" => { :is_gauge => true }
52
+ optional :double, :laser_bias_current_high_alarm_threshold, 15, :".telemetry_options" => { :is_gauge => true }
53
+ optional :double, :laser_bias_current_low_alarm_threshold, 16, :".telemetry_options" => { :is_gauge => true }
54
+ optional :double, :laser_bias_current_high_warning_threshold, 17, :".telemetry_options" => { :is_gauge => true }
55
+ optional :double, :laser_bias_current_low_warning_threshold, 18, :".telemetry_options" => { :is_gauge => true }
56
+ optional :bool, :module_temp_high_alarm, 19
57
+ optional :bool, :module_temp_low_alarm, 20
58
+ optional :bool, :module_temp_high_warning, 21
59
+ optional :bool, :module_temp_low_warning, 22
60
+ repeated ::OpticsDiagLaneStats, :optics_lane_diag_stats, 23
61
+ end
62
+
63
+ class OpticsDiagLaneStats
64
+ optional :uint32, :lane_number, 1, :".telemetry_options" => { :is_key => true }
65
+ optional :double, :lane_laser_temperature, 2, :".telemetry_options" => { :is_gauge => true }
66
+ optional :double, :lane_laser_output_power_dbm, 3, :".telemetry_options" => { :is_gauge => true }
67
+ optional :double, :lane_laser_receiver_power_dbm, 4, :".telemetry_options" => { :is_gauge => true }
68
+ optional :double, :lane_laser_bias_current, 5
69
+ optional :bool, :lane_laser_output_power_high_alarm, 6
70
+ optional :bool, :lane_laser_output_power_low_alarm, 7
71
+ optional :bool, :lane_laser_output_power_high_warning, 8
72
+ optional :bool, :lane_laser_output_power_low_warning, 9
73
+ optional :bool, :lane_laser_receiver_power_high_alarm, 10
74
+ optional :bool, :lane_laser_receiver_power_low_alarm, 11
75
+ optional :bool, :lane_laser_receiver_power_high_warning, 12
76
+ optional :bool, :lane_laser_receiver_power_low_warning, 13
77
+ optional :bool, :lane_laser_bias_current_high_alarm, 14
78
+ optional :bool, :lane_laser_bias_current_low_alarm, 15
79
+ optional :bool, :lane_laser_bias_current_high_warning, 16
80
+ optional :bool, :lane_laser_bias_current_low_warning, 17
81
+ optional :bool, :lane_tx_loss_of_signal_alarm, 18
82
+ optional :bool, :lane_rx_loss_of_signal_alarm, 19
83
+ optional :bool, :lane_tx_laser_disabled_alarm, 20
84
+ end
85
+
86
+
87
+ ##
88
+ # Extended Message Fields
89
+ #
90
+ class ::JuniperNetworksSensors < ::Protobuf::Message
91
+ optional ::Optics, :".jnpr_optics_ext", 10, :extension => true
92
+ end
93
+
@@ -0,0 +1,56 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'telemetry_top.pb'
13
+
14
+
15
+ ##
16
+ # Message Classes
17
+ #
18
+ class PacketStatistics < ::Protobuf::Message; end
19
+ class PacketStatsPacketForwardingEngine < ::Protobuf::Message; end
20
+ class PacketStatsClass < ::Protobuf::Message; end
21
+ class PacketStatsCounter < ::Protobuf::Message; end
22
+
23
+
24
+ ##
25
+ # Message Fields
26
+ #
27
+ class PacketStatistics
28
+ repeated ::PacketStatsClass, :packet_stats, 1
29
+ repeated ::PacketStatsPacketForwardingEngine, :packet_stats_pfe, 2
30
+ end
31
+
32
+ class PacketStatsPacketForwardingEngine
33
+ required :string, :pfe_identifier, 1
34
+ repeated ::PacketStatsClass, :packet_stats, 2
35
+ end
36
+
37
+ class PacketStatsClass
38
+ required :string, :name, 1
39
+ required ::PacketStatsCounter, :counter, 2
40
+ end
41
+
42
+ class PacketStatsCounter
43
+ required :uint64, :packet_count, 1
44
+ optional :uint64, :byte_count, 2
45
+ optional :uint64, :packet_rate, 3
46
+ optional :uint64, :bit_rate, 4
47
+ end
48
+
49
+
50
+ ##
51
+ # Extended Message Fields
52
+ #
53
+ class ::JuniperNetworksSensors < ::Protobuf::Message
54
+ optional ::PacketStatistics, :".jnpr_packet_statistics_ext", 8, :extension => true
55
+ end
56
+
@@ -0,0 +1,71 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'google/protobuf/descriptor.pb'
13
+
14
+
15
+ ##
16
+ # Enum Classes
17
+ #
18
+ class FieldType < ::Protobuf::Enum
19
+ define :FT_DEFAULT, 0
20
+ define :FT_CALLBACK, 1
21
+ define :FT_POINTER, 4
22
+ define :FT_STATIC, 2
23
+ define :FT_IGNORE, 3
24
+ end
25
+
26
+
27
+ ##
28
+ # Message Classes
29
+ #
30
+ class PBJOptions < ::Protobuf::Message; end
31
+
32
+
33
+ ##
34
+ # File Options
35
+ #
36
+ #set_option :java_package, "net.juniper.pbj"
37
+
38
+
39
+ ##
40
+ # Message Fields
41
+ #
42
+ class PBJOptions
43
+ optional :int32, :max_size, 1
44
+ optional :int32, :max_count, 2
45
+ optional ::FieldType, :type, 3, :default => ::FieldType::FT_DEFAULT
46
+ optional :bool, :long_names, 4, :default => true
47
+ optional :bool, :packed_struct, 5, :default => false
48
+ optional :bool, :skip_message, 6, :default => false
49
+ optional :bool, :cache_size, 7, :default => true
50
+ end
51
+
52
+
53
+ ##
54
+ # Extended Message Fields
55
+ #
56
+ class ::Google::Protobuf::FileOptions < ::Protobuf::Message
57
+ optional ::PBJOptions, :".pbj_file_option", 1020, :extension => true
58
+ end
59
+
60
+ class ::Google::Protobuf::MessageOptions < ::Protobuf::Message
61
+ optional ::PBJOptions, :".pbj_message_option", 1020, :extension => true
62
+ end
63
+
64
+ class ::Google::Protobuf::EnumOptions < ::Protobuf::Message
65
+ optional ::PBJOptions, :".pbj_enum_option", 1020, :extension => true
66
+ end
67
+
68
+ class ::Google::Protobuf::FieldOptions < ::Protobuf::Message
69
+ optional ::PBJOptions, :".pbj_field_option", 1020, :extension => true
70
+ end
71
+
@@ -0,0 +1,105 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'telemetry_top.pb'
13
+
14
+
15
+ ##
16
+ # Message Classes
17
+ #
18
+ class Port < ::Protobuf::Message; end
19
+ class InterfaceInfos < ::Protobuf::Message; end
20
+ class QueueStats < ::Protobuf::Message; end
21
+ class InterfaceStats < ::Protobuf::Message; end
22
+ class IngressInterfaceErrors < ::Protobuf::Message; end
23
+ class EgressInterfaceErrors < ::Protobuf::Message; end
24
+
25
+
26
+ ##
27
+ # Message Fields
28
+ #
29
+ class Port
30
+ repeated ::InterfaceInfos, :interface_stats, 1
31
+ end
32
+
33
+ class InterfaceInfos
34
+ required :string, :if_name, 1, :".telemetry_options" => { :is_key => true }
35
+ optional :uint64, :init_time, 2
36
+ optional :uint32, :snmp_if_index, 3
37
+ optional :string, :parent_ae_name, 4
38
+ repeated ::QueueStats, :egress_queue_info, 5
39
+ repeated ::QueueStats, :ingress_queue_info, 6
40
+ optional ::InterfaceStats, :ingress_stats, 7
41
+ optional ::InterfaceStats, :egress_stats, 8
42
+ optional ::IngressInterfaceErrors, :ingress_errors, 9
43
+ optional :string, :if_administration_status, 10
44
+ optional :string, :if_operational_status, 11
45
+ optional :string, :if_description, 12
46
+ optional :uint64, :if_transitions, 13, :".telemetry_options" => { :is_counter => true }
47
+ optional :uint32, :ifLastChange, 14
48
+ optional :uint32, :ifHighSpeed, 15
49
+ optional ::EgressInterfaceErrors, :egress_errors, 16
50
+ end
51
+
52
+ class QueueStats
53
+ optional :uint32, :queue_number, 1, :".telemetry_options" => { :is_key => true }
54
+ optional :uint64, :packets, 2, :".telemetry_options" => { :is_counter => true }
55
+ optional :uint64, :bytes, 3, :".telemetry_options" => { :is_counter => true }
56
+ optional :uint64, :tail_drop_packets, 4, :".telemetry_options" => { :is_counter => true }
57
+ optional :uint64, :rl_drop_packets, 5, :".telemetry_options" => { :is_counter => true }
58
+ optional :uint64, :rl_drop_bytes, 6, :".telemetry_options" => { :is_counter => true }
59
+ optional :uint64, :red_drop_packets, 7, :".telemetry_options" => { :is_counter => true }
60
+ optional :uint64, :red_drop_bytes, 8, :".telemetry_options" => { :is_counter => true }
61
+ optional :uint64, :avg_buffer_occupancy, 9, :".telemetry_options" => { :is_gauge => true }
62
+ optional :uint64, :cur_buffer_occupancy, 10, :".telemetry_options" => { :is_gauge => true }
63
+ optional :uint64, :peak_buffer_occupancy, 11, :".telemetry_options" => { :is_gauge => true }
64
+ optional :uint64, :allocated_buffer_size, 12, :".telemetry_options" => { :is_gauge => true }
65
+ end
66
+
67
+ class InterfaceStats
68
+ optional :uint64, :if_pkts, 1, :".telemetry_options" => { :is_counter => true }
69
+ optional :uint64, :if_octets, 2, :".telemetry_options" => { :is_counter => true }
70
+ optional :uint64, :if_1sec_pkts, 3, :".telemetry_options" => { :is_gauge => true }
71
+ optional :uint64, :if_1sec_octets, 4, :".telemetry_options" => { :is_gauge => true }
72
+ optional :uint64, :if_uc_pkts, 5, :".telemetry_options" => { :is_counter => true }
73
+ optional :uint64, :if_mc_pkts, 6, :".telemetry_options" => { :is_counter => true }
74
+ optional :uint64, :if_bc_pkts, 7, :".telemetry_options" => { :is_counter => true }
75
+ optional :uint64, :if_error, 8, :".telemetry_options" => { :is_counter => true }
76
+ optional :uint64, :if_pause_pkts, 9, :".telemetry_options" => { :is_counter => true }
77
+ optional :uint64, :if_unknown_proto_pkts, 10, :".telemetry_options" => { :is_counter => true }
78
+ end
79
+
80
+ class IngressInterfaceErrors
81
+ optional :uint64, :if_errors, 1, :".telemetry_options" => { :is_counter => true }
82
+ optional :uint64, :if_in_qdrops, 2, :".telemetry_options" => { :is_counter => true }
83
+ optional :uint64, :if_in_frame_errors, 3, :".telemetry_options" => { :is_counter => true }
84
+ optional :uint64, :if_discards, 4, :".telemetry_options" => { :is_counter => true }
85
+ optional :uint64, :if_in_runts, 5, :".telemetry_options" => { :is_counter => true }
86
+ optional :uint64, :if_in_l3_incompletes, 6, :".telemetry_options" => { :is_counter => true }
87
+ optional :uint64, :if_in_l2chan_errors, 7, :".telemetry_options" => { :is_counter => true }
88
+ optional :uint64, :if_in_l2_mismatch_timeouts, 8, :".telemetry_options" => { :is_counter => true }
89
+ optional :uint64, :if_in_fifo_errors, 9, :".telemetry_options" => { :is_counter => true }
90
+ optional :uint64, :if_in_resource_errors, 10, :".telemetry_options" => { :is_counter => true }
91
+ end
92
+
93
+ class EgressInterfaceErrors
94
+ optional :uint64, :if_errors, 1, :".telemetry_options" => { :is_counter => true }
95
+ optional :uint64, :if_discards, 2, :".telemetry_options" => { :is_counter => true }
96
+ end
97
+
98
+
99
+ ##
100
+ # Extended Message Fields
101
+ #
102
+ class ::JuniperNetworksSensors < ::Protobuf::Message
103
+ optional ::Port, :".jnpr_interface_ext", 3, :extension => true
104
+ end
105
+
@@ -0,0 +1,41 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'telemetry_top.pb'
13
+
14
+
15
+ ##
16
+ # Message Classes
17
+ #
18
+ class Port_exp < ::Protobuf::Message; end
19
+ class InterfaceExpInfos < ::Protobuf::Message; end
20
+
21
+
22
+ ##
23
+ # Message Fields
24
+ #
25
+ class Port_exp
26
+ repeated ::InterfaceExpInfos, :interfaceExp_stats, 1
27
+ end
28
+
29
+ class InterfaceExpInfos
30
+ required :string, :if_name, 1, :".telemetry_options" => { :is_key => true }
31
+ optional :string, :if_operational_status, 2
32
+ end
33
+
34
+
35
+ ##
36
+ # Extended Message Fields
37
+ #
38
+ class ::JuniperNetworksSensors < ::Protobuf::Message
39
+ optional ::Port_exp, :".jnpr_interface_exp_ext", 18, :extension => true
40
+ end
41
+
@@ -0,0 +1,69 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'pbj.pb'
13
+ require 'telemetry_top.pb'
14
+
15
+
16
+ ##
17
+ # Message Classes
18
+ #
19
+ class QueueMonitor < ::Protobuf::Message; end
20
+ class QueueMonitorElement < ::Protobuf::Message; end
21
+ class QueueMonitorDirection < ::Protobuf::Message; end
22
+ class QueueMonitorStats < ::Protobuf::Message; end
23
+
24
+
25
+ ##
26
+ # Message Fields
27
+ #
28
+ class QueueMonitor
29
+ repeated ::QueueMonitorElement, :queue_monitor_element_info, 1, :".pbj_field_option" => { :max_count => 2048 }
30
+ end
31
+
32
+ class QueueMonitorElement
33
+ required :string, :if_name, 1, :".pbj_field_option" => { :type => ::FieldType::FT_POINTER }, :".telemetry_options" => { :is_key => true }
34
+ optional :string, :parent_ae_name, 2, :".pbj_field_option" => { :type => ::FieldType::FT_POINTER }
35
+ optional ::QueueMonitorDirection, :queue_monitor_stats_ingress, 3
36
+ optional ::QueueMonitorDirection, :queue_monitor_stats_egress, 4
37
+ end
38
+
39
+ class QueueMonitorDirection
40
+ repeated ::QueueMonitorStats, :queue_monitor_stats_info, 1, :".pbj_field_option" => { :max_count => 8 }
41
+ end
42
+
43
+ class QueueMonitorStats
44
+ required :uint32, :queue_number, 1, :".telemetry_options" => { :is_key => true }
45
+ required :uint32, :queue_id, 2, :".telemetry_options" => { :is_key => true }
46
+ required :uint32, :peak_buffer_occupancy_bytes, 3, :".telemetry_options" => { :is_gauge => true }
47
+ optional :uint32, :peak_buffer_occupancy_percent, 4, :".telemetry_options" => { :is_gauge => true }
48
+ required :uint64, :packets, 5, :".telemetry_options" => { :is_counter => true }
49
+ required :uint64, :octets, 6, :".telemetry_options" => { :is_counter => true }
50
+ required :uint64, :tail_drop_packets, 7, :".telemetry_options" => { :is_counter => true }
51
+ required :uint64, :tail_drop_octets, 8, :".telemetry_options" => { :is_counter => true }
52
+ required :uint64, :red_drop_packets_color_0, 9, :".telemetry_options" => { :is_counter => true }
53
+ required :uint64, :red_drop_octets_color_0, 10, :".telemetry_options" => { :is_counter => true }
54
+ required :uint64, :red_drop_packets_color_1, 11, :".telemetry_options" => { :is_counter => true }
55
+ required :uint64, :red_drop_octets_color_1, 12, :".telemetry_options" => { :is_counter => true }
56
+ required :uint64, :red_drop_packets_color_2, 13, :".telemetry_options" => { :is_counter => true }
57
+ required :uint64, :red_drop_octets_color_2, 14, :".telemetry_options" => { :is_counter => true }
58
+ required :uint64, :red_drop_packets_color_3, 15, :".telemetry_options" => { :is_counter => true }
59
+ required :uint64, :red_drop_octets_color_3, 16, :".telemetry_options" => { :is_counter => true }
60
+ end
61
+
62
+
63
+ ##
64
+ # Extended Message Fields
65
+ #
66
+ class ::JuniperNetworksSensors < ::Protobuf::Message
67
+ optional ::QueueMonitor, :".jnpr_qmon_ext", 15, :extension => true
68
+ end
69
+
@@ -0,0 +1,59 @@
1
+ # encoding: utf-8
2
+
3
+ ##
4
+ # This file is auto-generated. DO NOT EDIT!
5
+ #
6
+ require 'protobuf'
7
+
8
+
9
+ ##
10
+ # Imports
11
+ #
12
+ require 'google/protobuf/descriptor.pb'
13
+
14
+
15
+ ##
16
+ # Message Classes
17
+ #
18
+ class TelemetryFieldOptions < ::Protobuf::Message; end
19
+ class TelemetryStream < ::Protobuf::Message; end
20
+ class IETFSensors < ::Protobuf::Message; end
21
+ class EnterpriseSensors < ::Protobuf::Message; end
22
+ class JuniperNetworksSensors < ::Protobuf::Message; end
23
+
24
+
25
+ ##
26
+ # Message Fields
27
+ #
28
+ class TelemetryFieldOptions
29
+ optional :bool, :is_key, 1
30
+ optional :bool, :is_timestamp, 2
31
+ optional :bool, :is_counter, 3
32
+ optional :bool, :is_gauge, 4
33
+ end
34
+
35
+ class TelemetryStream
36
+ required :string, :system_id, 1, :".telemetry_options" => { :is_key => true }
37
+ optional :uint32, :component_id, 2, :".telemetry_options" => { :is_key => true }
38
+ optional :uint32, :sub_component_id, 3, :".telemetry_options" => { :is_key => true }
39
+ optional :string, :sensor_name, 4, :".telemetry_options" => { :is_key => true }
40
+ optional :uint32, :sequence_number, 5
41
+ optional :uint64, :timestamp, 6, :".telemetry_options" => { :is_timestamp => true }
42
+ optional :uint32, :version_major, 7
43
+ optional :uint32, :version_minor, 8
44
+ optional ::IETFSensors, :ietf, 100
45
+ optional ::EnterpriseSensors, :enterprise, 101
46
+ end
47
+
48
+
49
+ ##
50
+ # Extended Message Fields
51
+ #
52
+ class ::Google::Protobuf::FieldOptions < ::Protobuf::Message
53
+ optional ::TelemetryFieldOptions, :".telemetry_options", 1024, :extension => true
54
+ end
55
+
56
+ class ::EnterpriseSensors < ::Protobuf::Message
57
+ optional ::JuniperNetworksSensors, :".juniperNetworks", 2636, :extension => true
58
+ end
59
+