| OLD | NEW |
| 1 // Code generated by protoc-gen-go. | 1 // Code generated by protoc-gen-go. |
| 2 // source: metrics.proto | 2 // source: metrics.proto |
| 3 // DO NOT EDIT! | 3 // DO NOT EDIT! |
| 4 | 4 |
| 5 package ts_mon_proto | 5 package ts_mon_proto |
| 6 | 6 |
| 7 import proto "github.com/golang/protobuf/proto" | 7 import proto "github.com/golang/protobuf/proto" |
| 8 import fmt "fmt" | 8 import fmt "fmt" |
| 9 import math "math" | 9 import math "math" |
| 10 | 10 |
| 11 // Reference imports to suppress errors if they are not otherwise used. | 11 // Reference imports to suppress errors if they are not otherwise used. |
| 12 var _ = proto.Marshal | 12 var _ = proto.Marshal |
| 13 var _ = fmt.Errorf | 13 var _ = fmt.Errorf |
| 14 var _ = math.Inf | 14 var _ = math.Inf |
| 15 | 15 |
| 16 type MetricsField_FieldType int32 | 16 type MetricsField_FieldType int32 |
| 17 | 17 |
| 18 const ( | 18 const ( |
| 19 » MetricsField_STRING MetricsField_FieldType = 1 | 19 » MetricsField_UNKNOWN MetricsField_FieldType = 0 |
| 20 » MetricsField_INT MetricsField_FieldType = 2 | 20 » MetricsField_STRING MetricsField_FieldType = 1 |
| 21 » MetricsField_BOOL MetricsField_FieldType = 3 | 21 » MetricsField_INT MetricsField_FieldType = 2 |
| 22 » MetricsField_BOOL MetricsField_FieldType = 3 |
| 22 ) | 23 ) |
| 23 | 24 |
| 24 var MetricsField_FieldType_name = map[int32]string{ | 25 var MetricsField_FieldType_name = map[int32]string{ |
| 26 0: "UNKNOWN", |
| 25 1: "STRING", | 27 1: "STRING", |
| 26 2: "INT", | 28 2: "INT", |
| 27 3: "BOOL", | 29 3: "BOOL", |
| 28 } | 30 } |
| 29 var MetricsField_FieldType_value = map[string]int32{ | 31 var MetricsField_FieldType_value = map[string]int32{ |
| 30 » "STRING": 1, | 32 » "UNKNOWN": 0, |
| 31 » "INT": 2, | 33 » "STRING": 1, |
| 32 » "BOOL": 3, | 34 » "INT": 2, |
| 35 » "BOOL": 3, |
| 33 } | 36 } |
| 34 | 37 |
| 35 func (x MetricsField_FieldType) Enum() *MetricsField_FieldType { | |
| 36 p := new(MetricsField_FieldType) | |
| 37 *p = x | |
| 38 return p | |
| 39 } | |
| 40 func (x MetricsField_FieldType) String() string { | 38 func (x MetricsField_FieldType) String() string { |
| 41 return proto.EnumName(MetricsField_FieldType_name, int32(x)) | 39 return proto.EnumName(MetricsField_FieldType_name, int32(x)) |
| 42 } | 40 } |
| 43 func (x *MetricsField_FieldType) UnmarshalJSON(data []byte) error { | |
| 44 value, err := proto.UnmarshalJSONEnum(MetricsField_FieldType_value, data
, "MetricsField_FieldType") | |
| 45 if err != nil { | |
| 46 return err | |
| 47 } | |
| 48 *x = MetricsField_FieldType(value) | |
| 49 return nil | |
| 50 } | |
| 51 func (MetricsField_FieldType) EnumDescriptor() ([]byte, []int) { return fileDesc
riptor2, []int{1, 0} } | |
| 52 | 41 |
| 53 type PrecomputedDistribution_SpecType int32 | 42 type PrecomputedDistribution_SpecType int32 |
| 54 | 43 |
| 55 const ( | 44 const ( |
| 45 PrecomputedDistribution_UNKNOWN PrecomputedDistribu
tion_SpecType = 0 |
| 56 PrecomputedDistribution_CANONICAL_POWERS_OF_2 PrecomputedDistribu
tion_SpecType = 1 | 46 PrecomputedDistribution_CANONICAL_POWERS_OF_2 PrecomputedDistribu
tion_SpecType = 1 |
| 57 PrecomputedDistribution_CANONICAL_POWERS_OF_10_P_0_2 PrecomputedDistribu
tion_SpecType = 2 | 47 PrecomputedDistribution_CANONICAL_POWERS_OF_10_P_0_2 PrecomputedDistribu
tion_SpecType = 2 |
| 58 PrecomputedDistribution_CANONICAL_POWERS_OF_10 PrecomputedDistribu
tion_SpecType = 3 | 48 PrecomputedDistribution_CANONICAL_POWERS_OF_10 PrecomputedDistribu
tion_SpecType = 3 |
| 59 PrecomputedDistribution_CUSTOM_PARAMETERIZED PrecomputedDistribu
tion_SpecType = 20 | 49 PrecomputedDistribution_CUSTOM_PARAMETERIZED PrecomputedDistribu
tion_SpecType = 20 |
| 60 PrecomputedDistribution_CUSTOM_BOUNDED PrecomputedDistribu
tion_SpecType = 21 | 50 PrecomputedDistribution_CUSTOM_BOUNDED PrecomputedDistribu
tion_SpecType = 21 |
| 61 ) | 51 ) |
| 62 | 52 |
| 63 var PrecomputedDistribution_SpecType_name = map[int32]string{ | 53 var PrecomputedDistribution_SpecType_name = map[int32]string{ |
| 54 0: "UNKNOWN", |
| 64 1: "CANONICAL_POWERS_OF_2", | 55 1: "CANONICAL_POWERS_OF_2", |
| 65 2: "CANONICAL_POWERS_OF_10_P_0_2", | 56 2: "CANONICAL_POWERS_OF_10_P_0_2", |
| 66 3: "CANONICAL_POWERS_OF_10", | 57 3: "CANONICAL_POWERS_OF_10", |
| 67 20: "CUSTOM_PARAMETERIZED", | 58 20: "CUSTOM_PARAMETERIZED", |
| 68 21: "CUSTOM_BOUNDED", | 59 21: "CUSTOM_BOUNDED", |
| 69 } | 60 } |
| 70 var PrecomputedDistribution_SpecType_value = map[string]int32{ | 61 var PrecomputedDistribution_SpecType_value = map[string]int32{ |
| 62 "UNKNOWN": 0, |
| 71 "CANONICAL_POWERS_OF_2": 1, | 63 "CANONICAL_POWERS_OF_2": 1, |
| 72 "CANONICAL_POWERS_OF_10_P_0_2": 2, | 64 "CANONICAL_POWERS_OF_10_P_0_2": 2, |
| 73 "CANONICAL_POWERS_OF_10": 3, | 65 "CANONICAL_POWERS_OF_10": 3, |
| 74 "CUSTOM_PARAMETERIZED": 20, | 66 "CUSTOM_PARAMETERIZED": 20, |
| 75 "CUSTOM_BOUNDED": 21, | 67 "CUSTOM_BOUNDED": 21, |
| 76 } | 68 } |
| 77 | 69 |
| 78 func (x PrecomputedDistribution_SpecType) Enum() *PrecomputedDistribution_SpecTy
pe { | |
| 79 p := new(PrecomputedDistribution_SpecType) | |
| 80 *p = x | |
| 81 return p | |
| 82 } | |
| 83 func (x PrecomputedDistribution_SpecType) String() string { | 70 func (x PrecomputedDistribution_SpecType) String() string { |
| 84 return proto.EnumName(PrecomputedDistribution_SpecType_name, int32(x)) | 71 return proto.EnumName(PrecomputedDistribution_SpecType_name, int32(x)) |
| 85 } | 72 } |
| 86 func (x *PrecomputedDistribution_SpecType) UnmarshalJSON(data []byte) error { | |
| 87 value, err := proto.UnmarshalJSONEnum(PrecomputedDistribution_SpecType_v
alue, data, "PrecomputedDistribution_SpecType") | |
| 88 if err != nil { | |
| 89 return err | |
| 90 } | |
| 91 *x = PrecomputedDistribution_SpecType(value) | |
| 92 return nil | |
| 93 } | |
| 94 func (PrecomputedDistribution_SpecType) EnumDescriptor() ([]byte, []int) { | |
| 95 return fileDescriptor2, []int{2, 0} | |
| 96 } | |
| 97 | 73 |
| 98 type MetricsData_Units int32 | 74 type MetricsData_Units int32 |
| 99 | 75 |
| 100 const ( | 76 const ( |
| 101 MetricsData_UNKNOWN_UNITS MetricsData_Units = 0 | 77 MetricsData_UNKNOWN_UNITS MetricsData_Units = 0 |
| 102 MetricsData_SECONDS MetricsData_Units = 1 | 78 MetricsData_SECONDS MetricsData_Units = 1 |
| 103 MetricsData_MILLISECONDS MetricsData_Units = 2 | 79 MetricsData_MILLISECONDS MetricsData_Units = 2 |
| 104 MetricsData_MICROSECONDS MetricsData_Units = 3 | 80 MetricsData_MICROSECONDS MetricsData_Units = 3 |
| 105 MetricsData_NANOSECONDS MetricsData_Units = 4 | 81 MetricsData_NANOSECONDS MetricsData_Units = 4 |
| 106 MetricsData_BITS MetricsData_Units = 21 | 82 MetricsData_BITS MetricsData_Units = 21 |
| (...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 153 "MEGABYTES": 32, | 129 "MEGABYTES": 32, |
| 154 "GIGABYTES": 33, | 130 "GIGABYTES": 33, |
| 155 "KIBIBYTES": 41, | 131 "KIBIBYTES": 41, |
| 156 "MEBIBYTES": 42, | 132 "MEBIBYTES": 42, |
| 157 "GIBIBYTES": 43, | 133 "GIBIBYTES": 43, |
| 158 "AMPS": 60, | 134 "AMPS": 60, |
| 159 "MILLIAMPS": 61, | 135 "MILLIAMPS": 61, |
| 160 "DEGREES_CELSIUS": 62, | 136 "DEGREES_CELSIUS": 62, |
| 161 } | 137 } |
| 162 | 138 |
| 163 func (x MetricsData_Units) Enum() *MetricsData_Units { | |
| 164 p := new(MetricsData_Units) | |
| 165 *p = x | |
| 166 return p | |
| 167 } | |
| 168 func (x MetricsData_Units) String() string { | 139 func (x MetricsData_Units) String() string { |
| 169 return proto.EnumName(MetricsData_Units_name, int32(x)) | 140 return proto.EnumName(MetricsData_Units_name, int32(x)) |
| 170 } | 141 } |
| 171 func (x *MetricsData_Units) UnmarshalJSON(data []byte) error { | |
| 172 value, err := proto.UnmarshalJSONEnum(MetricsData_Units_value, data, "Me
tricsData_Units") | |
| 173 if err != nil { | |
| 174 return err | |
| 175 } | |
| 176 *x = MetricsData_Units(value) | |
| 177 return nil | |
| 178 } | |
| 179 func (MetricsData_Units) EnumDescriptor() ([]byte, []int) { return fileDescripto
r2, []int{3, 0} } | |
| 180 | 142 |
| 181 type MetricsCollection struct { | 143 type MetricsCollection struct { |
| 182 Data []*MetricsData `protobuf:"bytes,1,rep,name=data" json:
"data,omitempty"` | 144 Data []*MetricsData `protobuf:"bytes,1,rep,name=data" json:
"data,omitempty"` |
| 183 » StartTimestampUs *uint64 `protobuf:"varint,2,opt,name=start_time
stamp_us" json:"start_timestamp_us,omitempty"` | 145 » StartTimestampUs uint64 `protobuf:"varint,2,opt,name=start_time
stamp_us" json:"start_timestamp_us,omitempty"` |
| 184 » CollectionPointId *string `protobuf:"bytes,3,opt,name=collection_
point_id" json:"collection_point_id,omitempty"` | 146 » CollectionPointId string `protobuf:"bytes,3,opt,name=collection_
point_id" json:"collection_point_id,omitempty"` |
| 185 » XXX_unrecognized []byte `json:"-"` | |
| 186 } | 147 } |
| 187 | 148 |
| 188 func (m *MetricsCollection) Reset() { *m = MetricsCollection{
} } | 149 func (m *MetricsCollection) Reset() { *m = MetricsCollection{} } |
| 189 func (m *MetricsCollection) String() string { return proto.CompactTex
tString(m) } | 150 func (m *MetricsCollection) String() string { return proto.CompactTextString(m)
} |
| 190 func (*MetricsCollection) ProtoMessage() {} | 151 func (*MetricsCollection) ProtoMessage() {} |
| 191 func (*MetricsCollection) Descriptor() ([]byte, []int) { return fileDescriptor2,
[]int{0} } | |
| 192 | 152 |
| 193 func (m *MetricsCollection) GetData() []*MetricsData { | 153 func (m *MetricsCollection) GetData() []*MetricsData { |
| 194 if m != nil { | 154 if m != nil { |
| 195 return m.Data | 155 return m.Data |
| 196 } | 156 } |
| 197 return nil | 157 return nil |
| 198 } | 158 } |
| 199 | 159 |
| 200 func (m *MetricsCollection) GetStartTimestampUs() uint64 { | 160 type MetricsField struct { |
| 201 » if m != nil && m.StartTimestampUs != nil { | 161 » Name string `protobuf:"bytes,1,opt,name=name" jso
n:"name,omitempty"` |
| 202 » » return *m.StartTimestampUs | 162 » Type MetricsField_FieldType `protobuf:"varint,3,opt,name=type,enu
m=ts_mon.proto.MetricsField_FieldType" json:"type,omitempty"` |
| 203 » } | 163 » StringValue string `protobuf:"bytes,4,opt,name=string_va
lue" json:"string_value,omitempty"` |
| 204 » return 0 | 164 » IntValue int64 `protobuf:"varint,5,opt,name=int_valu
e" json:"int_value,omitempty"` |
| 165 » BoolValue bool `protobuf:"varint,6,opt,name=bool_val
ue" json:"bool_value,omitempty"` |
| 205 } | 166 } |
| 206 | 167 |
| 207 func (m *MetricsCollection) GetCollectionPointId() string { | 168 func (m *MetricsField) Reset() { *m = MetricsField{} } |
| 208 » if m != nil && m.CollectionPointId != nil { | 169 func (m *MetricsField) String() string { return proto.CompactTextString(m) } |
| 209 » » return *m.CollectionPointId | 170 func (*MetricsField) ProtoMessage() {} |
| 210 » } | 171 |
| 211 » return "" | 172 type PrecomputedDistribution struct { |
| 173 » SpecType PrecomputedDistribution_SpecType `protobuf:"varint
,1,opt,name=spec_type,enum=ts_mon.proto.PrecomputedDistribution_SpecType" json:"
spec_type,omitempty"` |
| 174 » Width float64 `protobuf:"fixed6
4,2,opt,name=width" json:"width,omitempty"` |
| 175 » GrowthFactor float64 `protobuf:"fixed6
4,3,opt,name=growth_factor" json:"growth_factor,omitempty"` |
| 176 » NumBuckets int32 `protobuf:"varint
,4,opt,name=num_buckets" json:"num_buckets,omitempty"` |
| 177 » LowerBounds []float64 `protobuf:"fixed6
4,5,rep,name=lower_bounds" json:"lower_bounds,omitempty"` |
| 178 » IsCumulative bool `protobuf:"varint
,6,opt,name=is_cumulative" json:"is_cumulative,omitempty"` |
| 179 » Bucket []int64 `protobuf:"zigzag
64,7,rep,name=bucket" json:"bucket,omitempty"` |
| 180 » Underflow int64 `protobuf:"zigzag
64,8,opt,name=underflow" json:"underflow,omitempty"` |
| 181 » Overflow int64 `protobuf:"zigzag
64,9,opt,name=overflow" json:"overflow,omitempty"` |
| 182 » Mean float64 `protobuf:"fixed6
4,10,opt,name=mean" json:"mean,omitempty"` |
| 183 » SumOfSquaredDeviation float64 `protobuf:"fixed6
4,11,opt,name=sum_of_squared_deviation" json:"sum_of_squared_deviation,omitempty
"` |
| 212 } | 184 } |
| 213 | 185 |
| 214 type MetricsField struct { | 186 func (m *PrecomputedDistribution) Reset() { *m = PrecomputedDistribution
{} } |
| 215 » Name *string `protobuf:"bytes,1,opt,name=nam
e" json:"name,omitempty"` | 187 func (m *PrecomputedDistribution) String() string { return proto.CompactTextStri
ng(m) } |
| 216 » Type *MetricsField_FieldType `protobuf:"varint,3,opt,name=ty
pe,enum=ts_mon.proto.MetricsField_FieldType,def=1" json:"type,omitempty"` | 188 func (*PrecomputedDistribution) ProtoMessage() {} |
| 217 » StringValue *string `protobuf:"bytes,4,opt,name=str
ing_value" json:"string_value,omitempty"` | |
| 218 » IntValue *int64 `protobuf:"varint,5,opt,name=in
t_value" json:"int_value,omitempty"` | |
| 219 » BoolValue *bool `protobuf:"varint,6,opt,name=bo
ol_value" json:"bool_value,omitempty"` | |
| 220 » XXX_unrecognized []byte `json:"-"` | |
| 221 } | |
| 222 | |
| 223 func (m *MetricsField) Reset() { *m = MetricsField{} } | |
| 224 func (m *MetricsField) String() string { return proto.CompactTextStri
ng(m) } | |
| 225 func (*MetricsField) ProtoMessage() {} | |
| 226 func (*MetricsField) Descriptor() ([]byte, []int) { return fileDescriptor2, []in
t{1} } | |
| 227 | |
| 228 const Default_MetricsField_Type MetricsField_FieldType = MetricsField_STRING | |
| 229 | |
| 230 func (m *MetricsField) GetName() string { | |
| 231 » if m != nil && m.Name != nil { | |
| 232 » » return *m.Name | |
| 233 » } | |
| 234 » return "" | |
| 235 } | |
| 236 | |
| 237 func (m *MetricsField) GetType() MetricsField_FieldType { | |
| 238 » if m != nil && m.Type != nil { | |
| 239 » » return *m.Type | |
| 240 » } | |
| 241 » return Default_MetricsField_Type | |
| 242 } | |
| 243 | |
| 244 func (m *MetricsField) GetStringValue() string { | |
| 245 » if m != nil && m.StringValue != nil { | |
| 246 » » return *m.StringValue | |
| 247 » } | |
| 248 » return "" | |
| 249 } | |
| 250 | |
| 251 func (m *MetricsField) GetIntValue() int64 { | |
| 252 » if m != nil && m.IntValue != nil { | |
| 253 » » return *m.IntValue | |
| 254 » } | |
| 255 » return 0 | |
| 256 } | |
| 257 | |
| 258 func (m *MetricsField) GetBoolValue() bool { | |
| 259 » if m != nil && m.BoolValue != nil { | |
| 260 » » return *m.BoolValue | |
| 261 » } | |
| 262 » return false | |
| 263 } | |
| 264 | |
| 265 type PrecomputedDistribution struct { | |
| 266 » SpecType *PrecomputedDistribution_SpecType `protobuf:"varin
t,1,opt,name=spec_type,enum=ts_mon.proto.PrecomputedDistribution_SpecType" json:
"spec_type,omitempty"` | |
| 267 » Width *float64 `protobuf:"fixed
64,2,opt,name=width,def=10" json:"width,omitempty"` | |
| 268 » GrowthFactor *float64 `protobuf:"fixed
64,3,opt,name=growth_factor,def=0" json:"growth_factor,omitempty"` | |
| 269 » NumBuckets *int32 `protobuf:"varin
t,4,opt,name=num_buckets,def=10" json:"num_buckets,omitempty"` | |
| 270 » LowerBounds []float64 `protobuf:"fixed
64,5,rep,name=lower_bounds" json:"lower_bounds,omitempty"` | |
| 271 » IsCumulative *bool `protobuf:"varin
t,6,opt,name=is_cumulative,def=0" json:"is_cumulative,omitempty"` | |
| 272 » Bucket []int64 `protobuf:"zigza
g64,7,rep,name=bucket" json:"bucket,omitempty"` | |
| 273 » Underflow *int64 `protobuf:"zigza
g64,8,opt,name=underflow" json:"underflow,omitempty"` | |
| 274 » Overflow *int64 `protobuf:"zigza
g64,9,opt,name=overflow" json:"overflow,omitempty"` | |
| 275 » Mean *float64 `protobuf:"fixed
64,10,opt,name=mean" json:"mean,omitempty"` | |
| 276 » SumOfSquaredDeviation *float64 `protobuf:"fixed
64,11,opt,name=sum_of_squared_deviation" json:"sum_of_squared_deviation,omitempt
y"` | |
| 277 » XXX_unrecognized []byte `json:"-"` | |
| 278 } | |
| 279 | |
| 280 func (m *PrecomputedDistribution) Reset() { *m = PrecomputedD
istribution{} } | |
| 281 func (m *PrecomputedDistribution) String() string { return proto.Comp
actTextString(m) } | |
| 282 func (*PrecomputedDistribution) ProtoMessage() {} | |
| 283 func (*PrecomputedDistribution) Descriptor() ([]byte, []int) { return fileDescri
ptor2, []int{2} } | |
| 284 | |
| 285 const Default_PrecomputedDistribution_Width float64 = 10 | |
| 286 const Default_PrecomputedDistribution_GrowthFactor float64 = 0 | |
| 287 const Default_PrecomputedDistribution_NumBuckets int32 = 10 | |
| 288 const Default_PrecomputedDistribution_IsCumulative bool = false | |
| 289 | |
| 290 func (m *PrecomputedDistribution) GetSpecType() PrecomputedDistribution_SpecType
{ | |
| 291 » if m != nil && m.SpecType != nil { | |
| 292 » » return *m.SpecType | |
| 293 » } | |
| 294 » return PrecomputedDistribution_CANONICAL_POWERS_OF_2 | |
| 295 } | |
| 296 | |
| 297 func (m *PrecomputedDistribution) GetWidth() float64 { | |
| 298 » if m != nil && m.Width != nil { | |
| 299 » » return *m.Width | |
| 300 » } | |
| 301 » return Default_PrecomputedDistribution_Width | |
| 302 } | |
| 303 | |
| 304 func (m *PrecomputedDistribution) GetGrowthFactor() float64 { | |
| 305 » if m != nil && m.GrowthFactor != nil { | |
| 306 » » return *m.GrowthFactor | |
| 307 » } | |
| 308 » return Default_PrecomputedDistribution_GrowthFactor | |
| 309 } | |
| 310 | |
| 311 func (m *PrecomputedDistribution) GetNumBuckets() int32 { | |
| 312 » if m != nil && m.NumBuckets != nil { | |
| 313 » » return *m.NumBuckets | |
| 314 » } | |
| 315 » return Default_PrecomputedDistribution_NumBuckets | |
| 316 } | |
| 317 | |
| 318 func (m *PrecomputedDistribution) GetLowerBounds() []float64 { | |
| 319 » if m != nil { | |
| 320 » » return m.LowerBounds | |
| 321 » } | |
| 322 » return nil | |
| 323 } | |
| 324 | |
| 325 func (m *PrecomputedDistribution) GetIsCumulative() bool { | |
| 326 » if m != nil && m.IsCumulative != nil { | |
| 327 » » return *m.IsCumulative | |
| 328 » } | |
| 329 » return Default_PrecomputedDistribution_IsCumulative | |
| 330 } | |
| 331 | |
| 332 func (m *PrecomputedDistribution) GetBucket() []int64 { | |
| 333 » if m != nil { | |
| 334 » » return m.Bucket | |
| 335 » } | |
| 336 » return nil | |
| 337 } | |
| 338 | |
| 339 func (m *PrecomputedDistribution) GetUnderflow() int64 { | |
| 340 » if m != nil && m.Underflow != nil { | |
| 341 » » return *m.Underflow | |
| 342 » } | |
| 343 » return 0 | |
| 344 } | |
| 345 | |
| 346 func (m *PrecomputedDistribution) GetOverflow() int64 { | |
| 347 » if m != nil && m.Overflow != nil { | |
| 348 » » return *m.Overflow | |
| 349 » } | |
| 350 » return 0 | |
| 351 } | |
| 352 | |
| 353 func (m *PrecomputedDistribution) GetMean() float64 { | |
| 354 » if m != nil && m.Mean != nil { | |
| 355 » » return *m.Mean | |
| 356 » } | |
| 357 » return 0 | |
| 358 } | |
| 359 | |
| 360 func (m *PrecomputedDistribution) GetSumOfSquaredDeviation() float64 { | |
| 361 » if m != nil && m.SumOfSquaredDeviation != nil { | |
| 362 » » return *m.SumOfSquaredDeviation | |
| 363 » } | |
| 364 » return 0 | |
| 365 } | |
| 366 | 189 |
| 367 type MetricsData struct { | 190 type MetricsData struct { |
| 368 » Name *string `protobuf:"bytes,1,req
,name=name" json:"name,omitempty"` | 191 » Name string `protobuf:"bytes,1,opt
,name=name" json:"name,omitempty"` |
| 369 » MetricNamePrefix *string `protobuf:"bytes,2,opt
,name=metric_name_prefix" json:"metric_name_prefix,omitempty"` | 192 » MetricNamePrefix string `protobuf:"bytes,2,opt
,name=metric_name_prefix" json:"metric_name_prefix,omitempty"` |
| 370 NetworkDevice *NetworkDevice `protobuf:"bytes,11,op
t,name=network_device" json:"network_device,omitempty"` | 193 NetworkDevice *NetworkDevice `protobuf:"bytes,11,op
t,name=network_device" json:"network_device,omitempty"` |
| 371 Task *Task `protobuf:"bytes,12,op
t,name=task" json:"task,omitempty"` | 194 Task *Task `protobuf:"bytes,12,op
t,name=task" json:"task,omitempty"` |
| 372 Fields []*MetricsField `protobuf:"bytes,20,re
p,name=fields" json:"fields,omitempty"` | 195 Fields []*MetricsField `protobuf:"bytes,20,re
p,name=fields" json:"fields,omitempty"` |
| 373 » Counter *int64 `protobuf:"varint,30,o
pt,name=counter" json:"counter,omitempty"` | 196 » Counter int64 `protobuf:"varint,30,o
pt,name=counter" json:"counter,omitempty"` |
| 374 » Gauge *int64 `protobuf:"varint,32,o
pt,name=gauge" json:"gauge,omitempty"` | 197 » Gauge int64 `protobuf:"varint,32,o
pt,name=gauge" json:"gauge,omitempty"` |
| 375 » NoncumulativeDoubleValue *float64 `protobuf:"fixed64,34,
opt,name=noncumulative_double_value" json:"noncumulative_double_value,omitempty"
` | 198 » NoncumulativeDoubleValue float64 `protobuf:"fixed64,34,
opt,name=noncumulative_double_value" json:"noncumulative_double_value,omitempty"
` |
| 376 Distribution *PrecomputedDistribution `protobuf:"bytes,35,op
t,name=distribution" json:"distribution,omitempty"` | 199 Distribution *PrecomputedDistribution `protobuf:"bytes,35,op
t,name=distribution" json:"distribution,omitempty"` |
| 377 » StringValue *string `protobuf:"bytes,36,op
t,name=string_value" json:"string_value,omitempty"` | 200 » StringValue string `protobuf:"bytes,36,op
t,name=string_value" json:"string_value,omitempty"` |
| 378 » BooleanValue *bool `protobuf:"varint,37,o
pt,name=boolean_value" json:"boolean_value,omitempty"` | 201 » BooleanValue bool `protobuf:"varint,37,o
pt,name=boolean_value" json:"boolean_value,omitempty"` |
| 379 » CumulativeDoubleValue *float64 `protobuf:"fixed64,38,
opt,name=cumulative_double_value" json:"cumulative_double_value,omitempty"` | 202 » CumulativeDoubleValue float64 `protobuf:"fixed64,38,
opt,name=cumulative_double_value" json:"cumulative_double_value,omitempty"` |
| 380 » StartTimestampUs *uint64 `protobuf:"varint,40,o
pt,name=start_timestamp_us" json:"start_timestamp_us,omitempty"` | 203 » StartTimestampUs uint64 `protobuf:"varint,40,o
pt,name=start_timestamp_us" json:"start_timestamp_us,omitempty"` |
| 381 » Units *MetricsData_Units `protobuf:"varint,41,o
pt,name=units,enum=ts_mon.proto.MetricsData_Units" json:"units,omitempty"` | 204 » Units MetricsData_Units `protobuf:"varint,41,o
pt,name=units,enum=ts_mon.proto.MetricsData_Units" json:"units,omitempty"` |
| 382 » Description *string `protobuf:"bytes,43,op
t,name=description" json:"description,omitempty"` | 205 » Description string `protobuf:"bytes,43,op
t,name=description" json:"description,omitempty"` |
| 383 » XXX_unrecognized []byte `json:"-"` | |
| 384 } | 206 } |
| 385 | 207 |
| 386 func (m *MetricsData) Reset() { *m = MetricsData{} } | 208 func (m *MetricsData) Reset() { *m = MetricsData{} } |
| 387 func (m *MetricsData) String() string { return proto.CompactTextStrin
g(m) } | 209 func (m *MetricsData) String() string { return proto.CompactTextString(m) } |
| 388 func (*MetricsData) ProtoMessage() {} | 210 func (*MetricsData) ProtoMessage() {} |
| 389 func (*MetricsData) Descriptor() ([]byte, []int) { return fileDescriptor2, []int
{3} } | |
| 390 | |
| 391 func (m *MetricsData) GetName() string { | |
| 392 » if m != nil && m.Name != nil { | |
| 393 » » return *m.Name | |
| 394 » } | |
| 395 » return "" | |
| 396 } | |
| 397 | |
| 398 func (m *MetricsData) GetMetricNamePrefix() string { | |
| 399 » if m != nil && m.MetricNamePrefix != nil { | |
| 400 » » return *m.MetricNamePrefix | |
| 401 » } | |
| 402 » return "" | |
| 403 } | |
| 404 | 211 |
| 405 func (m *MetricsData) GetNetworkDevice() *NetworkDevice { | 212 func (m *MetricsData) GetNetworkDevice() *NetworkDevice { |
| 406 if m != nil { | 213 if m != nil { |
| 407 return m.NetworkDevice | 214 return m.NetworkDevice |
| 408 } | 215 } |
| 409 return nil | 216 return nil |
| 410 } | 217 } |
| 411 | 218 |
| 412 func (m *MetricsData) GetTask() *Task { | 219 func (m *MetricsData) GetTask() *Task { |
| 413 if m != nil { | 220 if m != nil { |
| 414 return m.Task | 221 return m.Task |
| 415 } | 222 } |
| 416 return nil | 223 return nil |
| 417 } | 224 } |
| 418 | 225 |
| 419 func (m *MetricsData) GetFields() []*MetricsField { | 226 func (m *MetricsData) GetFields() []*MetricsField { |
| 420 if m != nil { | 227 if m != nil { |
| 421 return m.Fields | 228 return m.Fields |
| 422 } | 229 } |
| 423 return nil | 230 return nil |
| 424 } | 231 } |
| 425 | 232 |
| 426 func (m *MetricsData) GetCounter() int64 { | |
| 427 if m != nil && m.Counter != nil { | |
| 428 return *m.Counter | |
| 429 } | |
| 430 return 0 | |
| 431 } | |
| 432 | |
| 433 func (m *MetricsData) GetGauge() int64 { | |
| 434 if m != nil && m.Gauge != nil { | |
| 435 return *m.Gauge | |
| 436 } | |
| 437 return 0 | |
| 438 } | |
| 439 | |
| 440 func (m *MetricsData) GetNoncumulativeDoubleValue() float64 { | |
| 441 if m != nil && m.NoncumulativeDoubleValue != nil { | |
| 442 return *m.NoncumulativeDoubleValue | |
| 443 } | |
| 444 return 0 | |
| 445 } | |
| 446 | |
| 447 func (m *MetricsData) GetDistribution() *PrecomputedDistribution { | 233 func (m *MetricsData) GetDistribution() *PrecomputedDistribution { |
| 448 if m != nil { | 234 if m != nil { |
| 449 return m.Distribution | 235 return m.Distribution |
| 450 } | 236 } |
| 451 return nil | 237 return nil |
| 452 } | 238 } |
| 453 | 239 |
| 454 func (m *MetricsData) GetStringValue() string { | |
| 455 if m != nil && m.StringValue != nil { | |
| 456 return *m.StringValue | |
| 457 } | |
| 458 return "" | |
| 459 } | |
| 460 | |
| 461 func (m *MetricsData) GetBooleanValue() bool { | |
| 462 if m != nil && m.BooleanValue != nil { | |
| 463 return *m.BooleanValue | |
| 464 } | |
| 465 return false | |
| 466 } | |
| 467 | |
| 468 func (m *MetricsData) GetCumulativeDoubleValue() float64 { | |
| 469 if m != nil && m.CumulativeDoubleValue != nil { | |
| 470 return *m.CumulativeDoubleValue | |
| 471 } | |
| 472 return 0 | |
| 473 } | |
| 474 | |
| 475 func (m *MetricsData) GetStartTimestampUs() uint64 { | |
| 476 if m != nil && m.StartTimestampUs != nil { | |
| 477 return *m.StartTimestampUs | |
| 478 } | |
| 479 return 0 | |
| 480 } | |
| 481 | |
| 482 func (m *MetricsData) GetUnits() MetricsData_Units { | |
| 483 if m != nil && m.Units != nil { | |
| 484 return *m.Units | |
| 485 } | |
| 486 return MetricsData_UNKNOWN_UNITS | |
| 487 } | |
| 488 | |
| 489 func (m *MetricsData) GetDescription() string { | |
| 490 if m != nil && m.Description != nil { | |
| 491 return *m.Description | |
| 492 } | |
| 493 return "" | |
| 494 } | |
| 495 | |
| 496 func init() { | 240 func init() { |
| 497 proto.RegisterType((*MetricsCollection)(nil), "ts_mon.proto.MetricsColle
ction") | |
| 498 proto.RegisterType((*MetricsField)(nil), "ts_mon.proto.MetricsField") | |
| 499 proto.RegisterType((*PrecomputedDistribution)(nil), "ts_mon.proto.Precom
putedDistribution") | |
| 500 proto.RegisterType((*MetricsData)(nil), "ts_mon.proto.MetricsData") | |
| 501 proto.RegisterEnum("ts_mon.proto.MetricsField_FieldType", MetricsField_F
ieldType_name, MetricsField_FieldType_value) | 241 proto.RegisterEnum("ts_mon.proto.MetricsField_FieldType", MetricsField_F
ieldType_name, MetricsField_FieldType_value) |
| 502 proto.RegisterEnum("ts_mon.proto.PrecomputedDistribution_SpecType", Prec
omputedDistribution_SpecType_name, PrecomputedDistribution_SpecType_value) | 242 proto.RegisterEnum("ts_mon.proto.PrecomputedDistribution_SpecType", Prec
omputedDistribution_SpecType_name, PrecomputedDistribution_SpecType_value) |
| 503 proto.RegisterEnum("ts_mon.proto.MetricsData_Units", MetricsData_Units_n
ame, MetricsData_Units_value) | 243 proto.RegisterEnum("ts_mon.proto.MetricsData_Units", MetricsData_Units_n
ame, MetricsData_Units_value) |
| 504 } | 244 } |
| 505 | |
| 506 var fileDescriptor2 = []byte{ | |
| 507 // 905 bytes of a gzipped FileDescriptorProto | |
| 508 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x8c, 0x54,
0xdb, 0x6e, 0xdb, 0x46, | |
| 509 0x10, 0x2d, 0x75, 0xb1, 0xad, 0x91, 0xe4, 0xd0, 0x1b, 0x5f, 0x18, 0x27,
0xa8, 0x55, 0x35, 0x69, | |
| 510 0x1d, 0x07, 0x10, 0x1c, 0xf7, 0x4d, 0xbd, 0x00, 0xb2, 0xc4, 0x18, 0x44,
0x24, 0x52, 0x10, 0x25, | |
| 511 0x04, 0xed, 0xcb, 0x82, 0x22, 0x57, 0x0e, 0x61, 0x91, 0xab, 0x90, 0x4b,
0xbb, 0xfd, 0x8c, 0x7e, | |
| 512 0x52, 0xbf, 0xa0, 0x7f, 0xd1, 0x7f, 0xe8, 0x5b, 0x67, 0x97, 0x94, 0x63,
0xa3, 0x36, 0x90, 0x17, | |
| 513 0x82, 0x73, 0xe6, 0xec, 0xec, 0x5c, 0xce, 0x2c, 0x34, 0x23, 0x26, 0x92,
0xd0, 0x4f, 0x3b, 0xab, | |
| 514 0x84, 0x0b, 0x4e, 0x1a, 0x22, 0xa5, 0x11, 0x8f, 0x73, 0xeb, 0xb0, 0xe5,
0xf9, 0x9f, 0xb2, 0x30, | |
| 515 0x0d, 0x45, 0xc8, 0x63, 0x1a, 0x33, 0x71, 0xc3, 0x93, 0x2b, 0x1a, 0xb0,
0xeb, 0xd0, 0x67, 0x05, | |
| 516 0x63, 0xff, 0x2e, 0x43, 0x78, 0xe9, 0x55, 0x8e, 0xb7, 0x33, 0xd8, 0x19,
0xe5, 0x81, 0xfb, 0x7c, | |
| 517 0xb9, 0x64, 0xbe, 0xf4, 0x93, 0xef, 0xa1, 0x12, 0x78, 0xc2, 0x33, 0xb4,
0x56, 0xf9, 0xb8, 0x7e, | |
| 518 0xf6, 0xac, 0x73, 0xf7, 0xae, 0x4e, 0x41, 0x1f, 0x20, 0x81, 0x1c, 0x02,
0x49, 0x85, 0x97, 0x08, | |
| 519 0x2a, 0xc2, 0x88, 0xe1, 0x5f, 0xb4, 0xa2, 0x59, 0x6a, 0x94, 0x5a, 0xda,
0x71, 0x85, 0x3c, 0x87, | |
| 520 0xa7, 0xfe, 0x6d, 0x48, 0xba, 0xe2, 0x61, 0x2c, 0x68, 0x18, 0x18, 0x65,
0x74, 0xd6, 0xda, 0x7f, | |
| 521 0x69, 0xd0, 0x28, 0x02, 0xbd, 0x0b, 0xd9, 0x32, 0x20, 0x0d, 0xa8, 0xc4,
0x5e, 0xc4, 0xf0, 0x4a, | |
| 522 0x74, 0x93, 0x2e, 0x54, 0xc4, 0x1f, 0x2b, 0xa6, 0xc8, 0xdb, 0x67, 0x2f,
0x1f, 0x4c, 0x40, 0x9d, | |
| 523 0xeb, 0xa8, 0xef, 0x14, 0xb9, 0xdd, 0x0d, 0x77, 0x3a, 0xb1, 0xec, 0x0b,
0xb2, 0x0b, 0x8d, 0x14, | |
| 524 0x09, 0xf1, 0x25, 0xbd, 0xf6, 0x96, 0x19, 0x33, 0x2a, 0x2a, 0xe2, 0x0e,
0xd4, 0x64, 0x02, 0x39, | |
| 525 0x54, 0x45, 0xa8, 0x4c, 0x08, 0xc0, 0x9c, 0xf3, 0x65, 0x81, 0x6d, 0x20,
0xb6, 0xd5, 0x3e, 0x81, | |
| 526 0xda, 0x6d, 0x44, 0xf4, 0x17, 0x31, 0x75, 0x8d, 0x6c, 0x42, 0xd9, 0xb2,
0xa7, 0x7a, 0x89, 0x6c, | |
| 527 0x41, 0xe5, 0xdc, 0x71, 0x86, 0x7a, 0xb9, 0xfd, 0x77, 0x19, 0x0e, 0xc6,
0x09, 0xf3, 0x79, 0xb4, | |
| 528 0xca, 0x04, 0x0b, 0x06, 0xa1, 0xbc, 0x76, 0x9e, 0xa9, 0x0e, 0xf6, 0xa0,
0x96, 0xae, 0x98, 0x4f, | |
| 529 0x55, 0x15, 0x9a, 0xaa, 0xa2, 0x73, 0xbf, 0x8a, 0x47, 0x4e, 0x76, 0x5c,
0x3c, 0xa6, 0x6e, 0xdf, | |
| 530 0x81, 0xea, 0x4d, 0x18, 0x88, 0x8f, 0xaa, 0x9d, 0x5a, 0xb7, 0xf4, 0xf6,
0x94, 0x18, 0xd0, 0xbc, | |
| 531 0x4c, 0xf8, 0x8d, 0xf8, 0x48, 0x17, 0x9e, 0x2f, 0x78, 0xa2, 0xfa, 0xa3,
0x75, 0xb5, 0x53, 0x72, | |
| 532 0x00, 0xf5, 0x38, 0x8b, 0xe8, 0x3c, 0xf3, 0xaf, 0x98, 0x48, 0x55, 0xcd,
0x55, 0x75, 0x04, 0xbb, | |
| 533 0xb1, 0xe4, 0x37, 0x2c, 0xa1, 0x73, 0x9e, 0xc5, 0x41, 0x8a, 0xa5, 0x97,
0x8f, 0x35, 0xf2, 0x02, | |
| 534 0x9a, 0x61, 0x4a, 0xfd, 0x2c, 0xca, 0x96, 0x9e, 0x08, 0xaf, 0x8b, 0xea,
0xbb, 0xd5, 0x85, 0xb7, | |
| 535 0x4c, 0x19, 0xd9, 0x86, 0x8d, 0x3c, 0x90, 0xb1, 0x89, 0x6c, 0x22, 0x7b,
0x87, 0x67, 0x59, 0xb2, | |
| 536 0xc0, 0x48, 0xc6, 0x16, 0x32, 0x09, 0xd1, 0x61, 0x8b, 0x5f, 0x17, 0x48,
0x4d, 0x21, 0x38, 0xc0, | |
| 537 0x88, 0x79, 0xb1, 0x01, 0x32, 0x25, 0xd2, 0x02, 0x23, 0xc5, 0x7c, 0xf8,
0x82, 0xa6, 0x9f, 0x32, | |
| 538 0x2f, 0x61, 0x81, 0x52, 0xa3, 0x27, 0x2b, 0x34, 0xea, 0x92, 0xd1, 0xfe,
0x53, 0x83, 0xad, 0xdb, | |
| 539 0x5a, 0x9f, 0xc1, 0x5e, 0xbf, 0x67, 0x3b, 0xb6, 0xd5, 0xef, 0x0d, 0xe9,
0xd8, 0xf9, 0x60, 0x4e, | |
| 540 0x5c, 0xea, 0xbc, 0xa3, 0x67, 0xba, 0x8c, 0xf4, 0xe2, 0x21, 0xd7, 0xdb,
0x53, 0x3a, 0xa6, 0xa7, | |
| 541 0xc8, 0x28, 0xa1, 0x08, 0xf7, 0x1f, 0x66, 0xe8, 0x65, 0xec, 0xd8, 0x6e,
0x7f, 0xe6, 0x4e, 0x9d, | |
| 542 0x11, 0x1d, 0xf7, 0x26, 0xbd, 0x91, 0x39, 0x35, 0x27, 0xd6, 0x6f, 0xe6,
0x40, 0xdf, 0xc5, 0xe9, | |
| 543 0x6f, 0x17, 0x9e, 0x73, 0x67, 0x66, 0x0f, 0x10, 0xdb, 0x6b, 0xff, 0x53,
0x85, 0xfa, 0x5d, 0x79, | |
| 544 0x7f, 0x16, 0x65, 0x09, 0x25, 0x84, 0x62, 0xcf, 0x77, 0x90, 0x4a, 0x90,
0xae, 0x12, 0xb6, 0x08, | |
| 545 0x7f, 0x57, 0xd3, 0xa9, 0x91, 0x1f, 0x60, 0xfb, 0xfe, 0xda, 0xa9, 0x2a,
0xeb, 0x67, 0xcf, 0xef, | |
| 546 0x0f, 0xdd, 0xce, 0x39, 0x03, 0x45, 0xc1, 0xd2, 0x2a, 0x72, 0x13, 0x8d,
0x86, 0xa2, 0x92, 0xfb, | |
| 547 0xd4, 0x29, 0x7a, 0xc8, 0x09, 0x6c, 0x2c, 0xa4, 0x1c, 0x53, 0x63, 0x57,
0xad, 0xe2, 0xe1, 0xe3, | |
| 548 0x9b, 0x40, 0x9e, 0xc0, 0xa6, 0x8f, 0x33, 0x16, 0x2c, 0x31, 0xbe, 0x56,
0xfa, 0x6e, 0x42, 0xf5, | |
| 549 0xd2, 0xcb, 0x2e, 0x99, 0xd1, 0x52, 0x66, 0x1b, 0x0e, 0x63, 0x1e, 0x7f,
0x9e, 0x39, 0x0d, 0x78, | |
| 550 0x36, 0x5f, 0xb2, 0x42, 0xfe, 0x6d, 0x35, 0xb6, 0x1f, 0xa1, 0x11, 0xdc,
0x11, 0xa3, 0xf1, 0xad, | |
| 551 0xca, 0xec, 0xd5, 0x17, 0x29, 0xf7, 0x7f, 0x8b, 0xf7, 0x52, 0x75, 0x66,
0x0f, 0x9a, 0x72, 0xcb, | |
| 552 0x50, 0x1a, 0x05, 0xfc, 0x4a, 0x4a, 0x8d, 0x1c, 0xc1, 0xc1, 0x63, 0xa9,
0x7c, 0xa7, 0x52, 0x79, | |
| 553 0xf8, 0x69, 0x39, 0x56, 0x4f, 0x4b, 0x07, 0xaa, 0x59, 0x1c, 0xa2, 0xce,
0x5f, 0xab, 0xcd, 0x3a, | |
| 554 0x7a, 0xf4, 0x81, 0xea, 0xcc, 0x24, 0x8d, 0x3c, 0x85, 0x7a, 0xc0, 0x52,
0x3f, 0x09, 0x57, 0xaa, | |
| 555 0xaa, 0x37, 0xea, 0x09, 0xfa, 0x57, 0x83, 0x6a, 0xee, 0xde, 0x81, 0xe6,
0xcc, 0x7e, 0x6f, 0x3b, | |
| 556 0x1f, 0x6c, 0x3a, 0xb3, 0xad, 0xa9, 0xab, 0x7f, 0x45, 0xea, 0xb0, 0xe9,
0x9a, 0x7d, 0xc7, 0x1e, | |
| 557 0xb8, 0x28, 0x41, 0x1d, 0xdf, 0x2a, 0x6b, 0x38, 0xb4, 0xd6, 0x48, 0x29,
0x47, 0xfa, 0x13, 0x67, | |
| 558 0x8d, 0x94, 0xb1, 0xfb, 0x75, 0x1b, 0x45, 0xb8, 0x06, 0x2a, 0xea, 0x9d,
0x90, 0xb1, 0xf6, 0x48, | |
| 559 0x0d, 0xaa, 0xe7, 0xbf, 0x4e, 0x4d, 0x57, 0xdf, 0xc7, 0x91, 0xd4, 0xde,
0x5b, 0x43, 0x27, 0x37, | |
| 560 0x8f, 0xa4, 0x39, 0x32, 0x2f, 0x7a, 0xb9, 0xd9, 0x92, 0xe6, 0x85, 0xb5,
0x36, 0xbf, 0xc9, 0xc9, | |
| 561 0xe7, 0x56, 0x6e, 0xbe, 0xce, 0xc9, 0x6b, 0xf3, 0x24, 0x27, 0xaf, 0xcd,
0x37, 0xf2, 0xba, 0xde, | |
| 562 0x68, 0xec, 0xea, 0x3f, 0x29, 0x9e, 0xcc, 0x56, 0x99, 0x3f, 0x63, 0xed,
0x4f, 0x06, 0xe6, 0xc5, | |
| 563 0xc4, 0x34, 0x5d, 0xda, 0x37, 0x87, 0xae, 0x35, 0x73, 0xf5, 0x5f, 0xfe,
0x0b, 0x00, 0x00, 0xff, | |
| 564 0xff, 0xa4, 0x61, 0xa9, 0x5c, 0x4d, 0x06, 0x00, 0x00, | |
| 565 } | |
| OLD | NEW |