This repository has been archived by the owner on Nov 5, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 152
/
config.pb.go
190 lines (171 loc) · 8.48 KB
/
config.pb.go
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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: github.com/google/cloudprober/probes/ping/proto/config.proto
package proto
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
// Next tag: 1
type ProbeConf struct {
// Packets per probe
PacketsPerProbe *int32 `protobuf:"varint,6,opt,name=packets_per_probe,json=packetsPerProbe,def=2" json:"packets_per_probe,omitempty"`
// How long to wait between two packets to the same target
PacketsIntervalMsec *int32 `protobuf:"varint,7,opt,name=packets_interval_msec,json=packetsIntervalMsec,def=25" json:"packets_interval_msec,omitempty"`
// Export stats after these many probes.
// NOTE: Setting stats export interval using this field doesn't work anymore.
// This field will be removed after the release v0.10.3. To set
// stats_export_interval, please modify the outer probe configuration.
// Example: probe {
// type: PING
// stats_export_interval_msec: 10000
// ping_probe {}
// }
StatsExportInterval *int32 `protobuf:"varint,8,opt,name=stats_export_interval,json=statsExportInterval,def=5" json:"stats_export_interval,omitempty"`
// Resolve targets after these many probes
ResolveTargetsInterval *int32 `protobuf:"varint,9,opt,name=resolve_targets_interval,json=resolveTargetsInterval,def=5" json:"resolve_targets_interval,omitempty"`
// Ping payload size in bytes. It cannot be smaller than 8, number of bytes
// required for the nanoseconds timestamp.
PayloadSize *int32 `protobuf:"varint,10,opt,name=payload_size,json=payloadSize,def=56" json:"payload_size,omitempty"`
// IP proto: 4|6.
// This field is now deprecated and will be removed after the release v0.10.3.
// ip_version can be configured in the outer layer of the config:
// probe {
// type: PING
// ip_version: 6
// ping_probe {}
// }
IpVersion *int32 `protobuf:"varint,11,opt,name=ip_version,json=ipVersion" json:"ip_version,omitempty"`
// Use datagram socket for ICMP.
// This option enables unprivileged pings (that is, you don't require root
// privilege to send ICMP packets). Note that most of the Linux distributions
// don't allow unprivileged pings by default. To enable unprivileged pings on
// some Linux distributions, you may need to run the following command:
// sudo sysctl -w net.ipv4.ping_group_range="0 <large valid group id>"
// net.ipv4.ping_group_range system setting takes two integers that specify
// the group id range that is allowed to execute the unprivileged pings. Note
// that the same setting (with ipv4 in the path) applies to IPv6 as well.
UseDatagramSocket *bool `protobuf:"varint,12,opt,name=use_datagram_socket,json=useDatagramSocket,def=1" json:"use_datagram_socket,omitempty"`
// Disable integrity checks. To detect data courruption in the network, we
// craft the outgoing ICMP packet payload in a certain format and verify that
// the reply payload matches the same format.
DisableIntegrityCheck *bool `protobuf:"varint,13,opt,name=disable_integrity_check,json=disableIntegrityCheck,def=0" json:"disable_integrity_check,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *ProbeConf) Reset() { *m = ProbeConf{} }
func (m *ProbeConf) String() string { return proto.CompactTextString(m) }
func (*ProbeConf) ProtoMessage() {}
func (*ProbeConf) Descriptor() ([]byte, []int) {
return fileDescriptor_config_4c6cf6fb9221606d, []int{0}
}
func (m *ProbeConf) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_ProbeConf.Unmarshal(m, b)
}
func (m *ProbeConf) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_ProbeConf.Marshal(b, m, deterministic)
}
func (dst *ProbeConf) XXX_Merge(src proto.Message) {
xxx_messageInfo_ProbeConf.Merge(dst, src)
}
func (m *ProbeConf) XXX_Size() int {
return xxx_messageInfo_ProbeConf.Size(m)
}
func (m *ProbeConf) XXX_DiscardUnknown() {
xxx_messageInfo_ProbeConf.DiscardUnknown(m)
}
var xxx_messageInfo_ProbeConf proto.InternalMessageInfo
const Default_ProbeConf_PacketsPerProbe int32 = 2
const Default_ProbeConf_PacketsIntervalMsec int32 = 25
const Default_ProbeConf_StatsExportInterval int32 = 5
const Default_ProbeConf_ResolveTargetsInterval int32 = 5
const Default_ProbeConf_PayloadSize int32 = 56
const Default_ProbeConf_UseDatagramSocket bool = true
const Default_ProbeConf_DisableIntegrityCheck bool = false
func (m *ProbeConf) GetPacketsPerProbe() int32 {
if m != nil && m.PacketsPerProbe != nil {
return *m.PacketsPerProbe
}
return Default_ProbeConf_PacketsPerProbe
}
func (m *ProbeConf) GetPacketsIntervalMsec() int32 {
if m != nil && m.PacketsIntervalMsec != nil {
return *m.PacketsIntervalMsec
}
return Default_ProbeConf_PacketsIntervalMsec
}
func (m *ProbeConf) GetStatsExportInterval() int32 {
if m != nil && m.StatsExportInterval != nil {
return *m.StatsExportInterval
}
return Default_ProbeConf_StatsExportInterval
}
func (m *ProbeConf) GetResolveTargetsInterval() int32 {
if m != nil && m.ResolveTargetsInterval != nil {
return *m.ResolveTargetsInterval
}
return Default_ProbeConf_ResolveTargetsInterval
}
func (m *ProbeConf) GetPayloadSize() int32 {
if m != nil && m.PayloadSize != nil {
return *m.PayloadSize
}
return Default_ProbeConf_PayloadSize
}
func (m *ProbeConf) GetIpVersion() int32 {
if m != nil && m.IpVersion != nil {
return *m.IpVersion
}
return 0
}
func (m *ProbeConf) GetUseDatagramSocket() bool {
if m != nil && m.UseDatagramSocket != nil {
return *m.UseDatagramSocket
}
return Default_ProbeConf_UseDatagramSocket
}
func (m *ProbeConf) GetDisableIntegrityCheck() bool {
if m != nil && m.DisableIntegrityCheck != nil {
return *m.DisableIntegrityCheck
}
return Default_ProbeConf_DisableIntegrityCheck
}
func init() {
proto.RegisterType((*ProbeConf)(nil), "cloudprober.probes.ping.ProbeConf")
}
func init() {
proto.RegisterFile("github.com/google/cloudprober/probes/ping/proto/config.proto", fileDescriptor_config_4c6cf6fb9221606d)
}
var fileDescriptor_config_4c6cf6fb9221606d = []byte{
// 342 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x8f, 0x41, 0x6b, 0x2a, 0x31,
0x10, 0xc7, 0xf1, 0xbd, 0xe7, 0xab, 0x46, 0x4b, 0x31, 0x62, 0xcd, 0xa5, 0x20, 0x85, 0x82, 0x97,
0xee, 0x82, 0x74, 0x3d, 0xd8, 0xf6, 0x64, 0x7b, 0xf0, 0x50, 0x90, 0xb5, 0xf4, 0x1a, 0x62, 0x76,
0x8c, 0xc1, 0x75, 0x13, 0x92, 0xac, 0x54, 0xbf, 0x4d, 0xbf, 0x69, 0xd9, 0xec, 0xae, 0x78, 0x4a,
0x66, 0xfe, 0xbf, 0x1f, 0x33, 0x83, 0x5e, 0x84, 0x74, 0xdb, 0x7c, 0x1d, 0x70, 0xb5, 0x0f, 0x85,
0x52, 0x22, 0x85, 0x90, 0xa7, 0x2a, 0x4f, 0xb4, 0x51, 0x6b, 0x30, 0xa1, 0x7f, 0x6c, 0xa8, 0x65,
0x26, 0x8a, 0xbf, 0x53, 0x21, 0x57, 0xd9, 0x46, 0x8a, 0xc0, 0x17, 0x78, 0x78, 0xc1, 0x06, 0x25,
0x1b, 0x14, 0xec, 0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