diff --git a/control/plugin/client/grpc.go b/control/plugin/client/grpc.go index bae213fd4..fb2f6f3f3 100644 --- a/control/plugin/client/grpc.go +++ b/control/plugin/client/grpc.go @@ -329,6 +329,8 @@ func ToCoreMetric(mt *rpc.Metric) core.Metric { ret.data = mt.GetInt32Data() case *rpc.Metric_Int64Data: ret.data = mt.GetInt64Data() + case *rpc.Metric_BoolData: + ret.data = mt.GetBoolData() } return ret @@ -374,10 +376,12 @@ func ToMetric(co core.Metric) *rpc.Metric { cm.Data = &rpc.Metric_Int64Data{t} case []byte: cm.Data = &rpc.Metric_BytesData{t} + case bool: + cm.Data = &rpc.Metric_BoolData{t} case nil: cm.Data = nil default: - panic(fmt.Sprintf("unsupported type: %s", t)) + log.Error(fmt.Sprintf("unsupported type: %s", t)) } return cm } diff --git a/control/plugin/rpc/plugin.pb.go b/control/plugin/rpc/plugin.pb.go index 3cc653d44..8606f029f 100644 --- a/control/plugin/rpc/plugin.pb.go +++ b/control/plugin/rpc/plugin.pb.go @@ -150,6 +150,7 @@ type Metric struct { // *Metric_Int32Data // *Metric_Int64Data // *Metric_BytesData + // *Metric_BoolData Data isMetric_Data `protobuf_oneof:"data"` } @@ -180,6 +181,9 @@ type Metric_Int64Data struct { type Metric_BytesData struct { BytesData []byte `protobuf:"bytes,14,opt,name=bytes_data,json=bytesData,proto3,oneof"` } +type Metric_BoolData struct { + BoolData bool `protobuf:"varint,15,opt,name=bool_data,json=boolData,oneof"` +} func (*Metric_StringData) isMetric_Data() {} func (*Metric_Float32Data) isMetric_Data() {} @@ -187,6 +191,7 @@ func (*Metric_Float64Data) isMetric_Data() {} func (*Metric_Int32Data) isMetric_Data() {} func (*Metric_Int64Data) isMetric_Data() {} func (*Metric_BytesData) isMetric_Data() {} +func (*Metric_BoolData) isMetric_Data() {} func (m *Metric) GetData() isMetric_Data { if m != nil { @@ -272,6 +277,13 @@ func (m *Metric) GetBytesData() []byte { return nil } +func (m *Metric) GetBoolData() bool { + if x, ok := m.GetData().(*Metric_BoolData); ok { + return x.BoolData + } + return false +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{ @@ -281,6 +293,7 @@ func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, (*Metric_Int32Data)(nil), (*Metric_Int64Data)(nil), (*Metric_BytesData)(nil), + (*Metric_BoolData)(nil), } } @@ -306,6 +319,13 @@ func _Metric_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { case *Metric_BytesData: b.EncodeVarint(14<<3 | proto.WireBytes) b.EncodeRawBytes(x.BytesData) + case *Metric_BoolData: + t := uint64(0) + if x.BoolData { + t = 1 + } + b.EncodeVarint(15<<3 | proto.WireVarint) + b.EncodeVarint(t) case nil: default: return fmt.Errorf("Metric.Data has unexpected type %T", x) @@ -358,6 +378,13 @@ func _Metric_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) x, err := b.DecodeRawBytes(true) m.Data = &Metric_BytesData{x} return true, err + case 15: // data.bool_data + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Data = &Metric_BoolData{x != 0} + return true, err default: return false, nil } @@ -387,6 +414,9 @@ func _Metric_OneofSizer(msg proto.Message) (n int) { n += proto.SizeVarint(14<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.BytesData))) n += len(x.BytesData) + case *Metric_BoolData: + n += proto.SizeVarint(15<<3 | proto.WireVarint) + n += 1 case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) @@ -1208,88 +1238,90 @@ func init() { } var fileDescriptor0 = []byte{ - // 1327 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x58, 0x5b, 0x6f, 0x13, 0x47, - 0x14, 0xce, 0x66, 0x7d, 0xdb, 0x63, 0xc7, 0x49, 0x46, 0x94, 0xba, 0x06, 0x84, 0x59, 0x0a, 0x98, - 0x42, 0x9d, 0xd6, 0xa1, 0x14, 0x42, 0xfb, 0x00, 0x25, 0x25, 0x40, 0x83, 0xa2, 0x25, 0xe5, 0xa5, - 0x52, 0xd1, 0x78, 0x3d, 0x71, 0x46, 0xdd, 0x5b, 0x67, 0xc7, 0x51, 0xfc, 0x0b, 0x2a, 0x21, 0x55, - 0xea, 0xef, 0xe9, 0x53, 0x1f, 0xfa, 0x50, 0xf5, 0xbd, 0xcf, 0xfd, 0x2b, 0xd5, 0x5c, 0xd6, 0x9e, - 0xf5, 0x05, 0x93, 0x87, 0x4a, 0xbc, 0xed, 0xb9, 0x7c, 0x9f, 0xe7, 0x7c, 0xe7, 0xcc, 0xcc, 0xae, - 0x61, 0x67, 0x40, 0xf9, 0xf1, 0xb0, 0xd7, 0xf1, 0xe3, 0x70, 0x8b, 0x46, 0x9c, 0x04, 0x69, 0x9f, - 0x7e, 0x7a, 0xba, 0x95, 0x46, 0x38, 0xd9, 0xf2, 0xe3, 0x88, 0xb3, 0x38, 0xd8, 0x4a, 0x82, 0xe1, - 0x80, 0x46, 0x5b, 0x2c, 0xf1, 0xf5, 0x63, 0x27, 0x61, 0x31, 0x8f, 0x91, 0xcd, 0x12, 0xdf, 0x2d, - 0x43, 0x71, 0x37, 0x4c, 0xf8, 0xc8, 0x6d, 0x41, 0x65, 0x97, 0x31, 0x8f, 0x24, 0xc1, 0x08, 0x9d, - 0x83, 0x22, 0x61, 0x2c, 0x66, 0x0d, 0xab, 0x65, 0xb5, 0x1d, 0x4f, 0x19, 0xee, 0x6d, 0x28, 0x1c, - 0xd2, 0x90, 0xa0, 0x0d, 0xb0, 0x53, 0xe2, 0xcb, 0x98, 0xed, 0x89, 0x47, 0x84, 0xa0, 0x10, 0x09, - 0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, 0x28, 0x1c, 0xe2, 0x41, 0xda, 0x28, 0x1a, 0x8b, - 0x55, 0xc5, 0x74, 0x84, 0x7f, 0x37, 0xe2, 0x6c, 0xe4, 0x15, 0x38, 0x1e, 0xa4, 0xe8, 0x06, 0x38, - 0x02, 0x92, 0x72, 0x1c, 0x26, 0x8d, 0xd2, 0x34, 0xb9, 0xc3, 0xb3, 0x98, 0xe8, 0xc0, 0xf7, 0x11, - 0xe5, 0x8d, 0xb2, 0xea, 0xc0, 0x30, 0xa2, 0x7c, 0xba, 0x6f, 0x95, 0xd9, 0xbe, 0x5d, 0x81, 0x6a, - 0xca, 0x19, 0x8d, 0x06, 0xaf, 0xfb, 0x98, 0xe3, 0x86, 0x23, 0x32, 0xf6, 0x56, 0x3c, 0x50, 0xce, - 0xc7, 0x98, 0x63, 0x74, 0x15, 0x6a, 0x47, 0x41, 0x8c, 0xf9, 0x76, 0x57, 0xe5, 0x40, 0xcb, 0x6a, - 0xaf, 0xee, 0xad, 0x78, 0x55, 0xed, 0xcd, 0x25, 0xdd, 0xbd, 0xa3, 0x92, 0xaa, 0x2d, 0xab, 0x6d, - 0x8d, 0x93, 0xee, 0xde, 0x91, 0x49, 0x97, 0x01, 0x68, 0x34, 0xe6, 0xa9, 0xb5, 0xac, 0x76, 0x71, - 0x6f, 0xc5, 0x73, 0xa4, 0xcf, 0x48, 0xc8, 0x38, 0xd6, 0x44, 0x5f, 0x74, 0xc2, 0x84, 0xa1, 0x37, - 0xe2, 0x24, 0x55, 0x09, 0xf5, 0x96, 0xd5, 0xae, 0x89, 0x04, 0xe9, 0x13, 0x09, 0xcd, 0x2f, 0xc1, - 0x19, 0x2b, 0x28, 0xb6, 0xc1, 0x4f, 0x64, 0xa4, 0x47, 0x59, 0x3c, 0x8a, 0xf1, 0x96, 0x13, 0xad, - 0x47, 0x58, 0x19, 0x3b, 0xab, 0xf7, 0xac, 0x47, 0x25, 0x28, 0x08, 0x4e, 0xf7, 0x5f, 0x1b, 0x9c, - 0x71, 0xaf, 0x51, 0x17, 0x4a, 0x4f, 0x23, 0xbe, 0x8f, 0x13, 0x3d, 0x57, 0xcd, 0xfc, 0x2c, 0x74, - 0x54, 0x50, 0xf5, 0xab, 0x44, 0xa5, 0x81, 0x1e, 0x80, 0xf3, 0x52, 0xaa, 0x27, 0x60, 0xab, 0x12, - 0x76, 0x69, 0x0a, 0x36, 0x8e, 0x2b, 0xa4, 0x93, 0x66, 0x36, 0xba, 0x07, 0x95, 0x6f, 0x85, 0x62, - 0x02, 0x6b, 0x4b, 0xec, 0xc5, 0x29, 0x6c, 0x16, 0x56, 0xd0, 0xca, 0x91, 0x36, 0xd1, 0x17, 0x50, - 0x7e, 0x14, 0xc7, 0x81, 0x00, 0x16, 0x24, 0xf0, 0xc2, 0x14, 0x50, 0x47, 0x15, 0xae, 0xdc, 0x53, - 0x56, 0xf3, 0x3e, 0x54, 0x8d, 0x22, 0x96, 0x49, 0x66, 0x1b, 0x92, 0x35, 0xbf, 0x82, 0x7a, 0xbe, - 0x90, 0xb3, 0x08, 0xde, 0x7c, 0x00, 0x6b, 0xb9, 0x52, 0x96, 0x81, 0x2d, 0x13, 0xbc, 0x03, 0x35, - 0xb3, 0x9c, 0x65, 0xd8, 0x8a, 0x81, 0x75, 0xaf, 0x40, 0xf9, 0x39, 0x0d, 0x02, 0x71, 0x26, 0x9d, - 0x87, 0x92, 0x47, 0x70, 0x1a, 0x47, 0x1a, 0x59, 0x62, 0xd2, 0x72, 0x7f, 0x2f, 0xc2, 0xb9, 0x27, - 0x84, 0x2b, 0xed, 0x0e, 0xe2, 0x80, 0xfa, 0xa3, 0xb7, 0x1c, 0xbb, 0xe8, 0x19, 0x54, 0x85, 0x9c, - 0xaf, 0x13, 0x99, 0xa9, 0x7b, 0x7e, 0x53, 0xca, 0x3f, 0x8f, 0x45, 0x76, 0x42, 0xd9, 0xaa, 0x19, - 0xd0, 0x1b, 0x3b, 0xd0, 0xbe, 0xde, 0x48, 0x19, 0x99, 0x1a, 0x82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f, 0x09, 0x43, - 0xb7, 0xa0, 0xac, 0x8d, 0xd9, 0x32, 0x66, 0x7e, 0xf6, 0x3d, 0x29, 0xa1, 0x57, 0x92, 0xff, 0x15, - 0x6c, 0xff, 0x17, 0x00, 0x00, 0xff, 0xff, 0x45, 0xd2, 0x7c, 0x6e, 0x69, 0x10, 0x00, 0x00, + // 1345 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xcc, 0x58, 0xdb, 0x6e, 0x13, 0x47, + 0x18, 0xf6, 0x66, 0x7d, 0xda, 0x7f, 0x1d, 0x27, 0x19, 0x51, 0xea, 0x1a, 0x10, 0x66, 0x29, 0x60, + 0x0a, 0x75, 0x5a, 0x87, 0x52, 0x08, 0xed, 0x05, 0x94, 0x94, 0x00, 0x0d, 0xb2, 0x96, 0x94, 0x9b, + 0x4a, 0x45, 0xeb, 0xf5, 0xc4, 0x19, 0x75, 0x4f, 0x9d, 0x1d, 0x47, 0xf1, 0x13, 0x54, 0x42, 0xaa, + 0xd4, 0xe7, 0xe9, 0x55, 0x2f, 0x7a, 0x51, 0xf5, 0x25, 0xfa, 0x12, 0x7d, 0x80, 0x6a, 0x0e, 0x6b, + 0xcf, 0xfa, 0x80, 0xc9, 0x45, 0x25, 0xee, 0xe6, 0x3f, 0x7c, 0x9f, 0xe7, 0xff, 0xe6, 0x9f, 0x99, + 0x1d, 0xc3, 0xee, 0x90, 0xb0, 0xe3, 0x51, 0xbf, 0xe3, 0xc7, 0xe1, 0x36, 0x89, 0x18, 0x0e, 0xd2, + 0x01, 0xf9, 0xf4, 0x74, 0x3b, 0x8d, 0xbc, 0x64, 0xdb, 0x8f, 0x23, 0x46, 0xe3, 0x60, 0x3b, 0x09, + 0x46, 0x43, 0x12, 0x6d, 0xd3, 0xc4, 0x57, 0xc3, 0x4e, 0x42, 0x63, 0x16, 0x23, 0x93, 0x26, 0xbe, + 0x53, 0x81, 0xd2, 0x5e, 0x98, 0xb0, 0xb1, 0xd3, 0x82, 0xea, 0x1e, 0xa5, 0x2e, 0x4e, 0x82, 0x31, + 0x3a, 0x07, 0x25, 0x4c, 0x69, 0x4c, 0x1b, 0x46, 0xcb, 0x68, 0x5b, 0xae, 0x34, 0x9c, 0xdb, 0x50, + 0x3c, 0x24, 0x21, 0x46, 0x9b, 0x60, 0xa6, 0xd8, 0x17, 0x31, 0xd3, 0xe5, 0x43, 0x84, 0xa0, 0x18, + 0x71, 0xd7, 0x9a, 0x70, 0x89, 0xb1, 0xf3, 0x23, 0x6c, 0xbe, 0xf0, 0x42, 0x9c, 0x26, 0x9e, 0x8f, + 0xf7, 0x02, 0x1c, 0xe2, 0x88, 0x71, 0xde, 0x57, 0x5e, 0x30, 0xc2, 0x19, 0xef, 0x09, 0x37, 0x50, + 0x0b, 0xec, 0xc7, 0x38, 0xf5, 0x29, 0x49, 0x18, 0x89, 0x23, 0x41, 0x62, 0xb9, 0xf6, 0x60, 0xea, + 0xe2, 0xfc, 0x9c, 0xab, 0x61, 0x8a, 0x50, 0x31, 0xf2, 0x42, 0xec, 0xfc, 0x00, 0xd0, 0x1b, 0xf5, + 0x7b, 0x34, 0xf6, 0x1f, 0xd2, 0x21, 0xba, 0x06, 0x95, 0x03, 0xcc, 0x28, 0xf1, 0xd3, 0x86, 0xd1, + 0x32, 0xdb, 0x76, 0xd7, 0xee, 0xd0, 0xc4, 0xef, 0x48, 0x9f, 0x5b, 0x09, 0x65, 0x0c, 0x5d, 0x87, + 0xf2, 0x37, 0x71, 0x74, 0x44, 0x86, 0xe2, 0x57, 0xec, 0x6e, 0x5d, 0x64, 0x49, 0xd7, 0x81, 0x97, + 0xb8, 0x65, 0x5f, 0x0c, 0x9d, 0x7f, 0x8b, 0x50, 0x96, 0x58, 0xb4, 0x03, 0xd6, 0xa4, 0x0e, 0xc5, + 0xfd, 0x81, 0x40, 0xcd, 0x56, 0xe7, 0x5a, 0x51, 0xe6, 0x41, 0x0d, 0xa8, 0xbc, 0xc2, 0x34, 0xcd, + 0xca, 0x31, 0xdd, 0xca, 0x89, 0x34, 0xb5, 0x19, 0x98, 0x6f, 0x9b, 0x01, 0xba, 0x0f, 0xe8, 0x3b, + 0x2f, 0x65, 0x0f, 0x07, 0x27, 0x98, 0x32, 0x92, 0xe2, 0x01, 0x97, 0xbe, 0x51, 0x14, 0x18, 0x4b, + 0x60, 0xb8, 0xc3, 0x45, 0xc1, 0x5c, 0x12, 0xba, 0x09, 0xc5, 0x43, 0x6f, 0x98, 0x36, 0x4a, 0xda, + 0x64, 0x65, 0x31, 0x1d, 0xee, 0xdf, 0x8b, 0x18, 0x1d, 0xbb, 0x45, 0xe6, 0x0d, 0x53, 0x74, 0x03, + 0x2c, 0x0e, 0x49, 0x99, 0x17, 0x26, 0x8d, 0xf2, 0x2c, 0xb9, 0xc5, 0xb2, 0x18, 0x5f, 0x81, 0xef, + 0x23, 0xc2, 0x1a, 0x15, 0xb9, 0x02, 0xa3, 0x88, 0xb0, 0xd9, 0x75, 0xab, 0xce, 0xaf, 0xdb, 0x15, + 0xb0, 0x53, 0x46, 0x49, 0x34, 0x7c, 0x3d, 0xf0, 0x98, 0xd7, 0xb0, 0x78, 0xc6, 0x7e, 0xc1, 0x05, + 0xe9, 0x7c, 0xec, 0x31, 0x0f, 0x5d, 0x85, 0xda, 0x51, 0x10, 0x7b, 0x6c, 0xa7, 0x2b, 0x73, 0xa0, + 0x65, 0xb4, 0xd7, 0xf6, 0x0b, 0xae, 0xad, 0xbc, 0xb9, 0xa4, 0xbb, 0x77, 0x64, 0x92, 0xdd, 0x32, + 0xda, 0xc6, 0x24, 0xe9, 0xee, 0x1d, 0x91, 0x74, 0x19, 0x80, 0x44, 0x13, 0x9e, 0x5a, 0xcb, 0x68, + 0x97, 0xf6, 0x0b, 0xae, 0x25, 0x7c, 0x5a, 0x42, 0xc6, 0xb1, 0xce, 0xd7, 0x45, 0x25, 0x4c, 0x19, + 0xfa, 0x63, 0x86, 0x53, 0x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a0, 0x78, 0x37, + 0x36, 0xe5, 0xf1, 0x98, 0x3d, 0x1d, 0x9d, 0x02, 0xba, 0x06, 0x45, 0xfe, 0x89, 0x83, 0x6a, 0x22, + 0xa0, 0xbe, 0x76, 0xe6, 0xd3, 0x76, 0x61, 0x63, 0xe6, 0xb6, 0xce, 0xd1, 0x7e, 0xb4, 0xf4, 0x3e, + 0x77, 0x0a, 0xdd, 0x3f, 0x0d, 0xb0, 0xf8, 0xcb, 0x0f, 0xa7, 0x69, 0x4c, 0xd1, 0x36, 0x54, 0x94, + 0xa1, 0x54, 0x98, 0xbe, 0x0b, 0xdf, 0xef, 0x32, 0xfe, 0xe0, 0x65, 0x8c, 0xfa, 0x01, 0x49, 0x8f, + 0x31, 0x45, 0xb7, 0xa0, 0xa2, 0x8c, 0xf9, 0x32, 0xe6, 0x7e, 0xf6, 0x3d, 0x29, 0xa1, 0x5f, 0x16, + 0x7f, 0x25, 0xec, 0xfc, 0x17, 0x00, 0x00, 0xff, 0xff, 0x25, 0xb7, 0x84, 0x93, 0x88, 0x10, 0x00, + 0x00, } diff --git a/control/plugin/rpc/plugin.proto b/control/plugin/rpc/plugin.proto index 6d0e00d4e..c6f3e3033 100644 --- a/control/plugin/rpc/plugin.proto +++ b/control/plugin/rpc/plugin.proto @@ -82,6 +82,7 @@ message Metric { int32 int32_data = 12; int64 int64_data = 13; bytes bytes_data = 14; + bool bool_data = 15; } } diff --git a/grpc/common/common.go b/grpc/common/common.go index fbc44cce8..f1ccf194f 100644 --- a/grpc/common/common.go +++ b/grpc/common/common.go @@ -65,6 +65,8 @@ func ToMetric(co core.Metric) *Metric { cm.Data = &Metric_Int64Data{t} case []byte: cm.Data = &Metric_BytesData{t} + case bool: + cm.Data = &Metric_BoolData{t} case nil: cm.Data = nil default: @@ -159,6 +161,8 @@ func ToCoreMetric(mt *Metric) core.Metric { ret.data = mt.GetInt32Data() case *Metric_Int64Data: ret.data = mt.GetInt64Data() + case *Metric_BoolData: + ret.data = mt.GetBoolData() } return ret } diff --git a/grpc/common/common.pb.go b/grpc/common/common.pb.go index 5984dc723..28e563feb 100644 --- a/grpc/common/common.pb.go +++ b/grpc/common/common.pb.go @@ -117,6 +117,7 @@ type Metric struct { // *Metric_Int32Data // *Metric_Int64Data // *Metric_BytesData + // *Metric_BoolData Data isMetric_Data `protobuf_oneof:"data"` } @@ -147,6 +148,9 @@ type Metric_Int64Data struct { type Metric_BytesData struct { BytesData []byte `protobuf:"bytes,14,opt,name=bytes_data,json=bytesData,proto3,oneof"` } +type Metric_BoolData struct { + BoolData bool `protobuf:"varint,15,opt,name=bool_data,json=boolData,oneof"` +} func (*Metric_StringData) isMetric_Data() {} func (*Metric_Float32Data) isMetric_Data() {} @@ -154,6 +158,7 @@ func (*Metric_Float64Data) isMetric_Data() {} func (*Metric_Int32Data) isMetric_Data() {} func (*Metric_Int64Data) isMetric_Data() {} func (*Metric_BytesData) isMetric_Data() {} +func (*Metric_BoolData) isMetric_Data() {} func (m *Metric) GetData() isMetric_Data { if m != nil { @@ -239,6 +244,13 @@ func (m *Metric) GetBytesData() []byte { return nil } +func (m *Metric) GetBoolData() bool { + if x, ok := m.GetData().(*Metric_BoolData); ok { + return x.BoolData + } + return false +} + // XXX_OneofFuncs is for the internal use of the proto package. func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, func(msg proto.Message, tag, wire int, b *proto.Buffer) (bool, error), func(msg proto.Message) (n int), []interface{}) { return _Metric_OneofMarshaler, _Metric_OneofUnmarshaler, _Metric_OneofSizer, []interface{}{ @@ -248,6 +260,7 @@ func (*Metric) XXX_OneofFuncs() (func(msg proto.Message, b *proto.Buffer) error, (*Metric_Int32Data)(nil), (*Metric_Int64Data)(nil), (*Metric_BytesData)(nil), + (*Metric_BoolData)(nil), } } @@ -273,6 +286,13 @@ func _Metric_OneofMarshaler(msg proto.Message, b *proto.Buffer) error { case *Metric_BytesData: b.EncodeVarint(14<<3 | proto.WireBytes) b.EncodeRawBytes(x.BytesData) + case *Metric_BoolData: + t := uint64(0) + if x.BoolData { + t = 1 + } + b.EncodeVarint(15<<3 | proto.WireVarint) + b.EncodeVarint(t) case nil: default: return fmt.Errorf("Metric.Data has unexpected type %T", x) @@ -325,6 +345,13 @@ func _Metric_OneofUnmarshaler(msg proto.Message, tag, wire int, b *proto.Buffer) x, err := b.DecodeRawBytes(true) m.Data = &Metric_BytesData{x} return true, err + case 15: // data.bool_data + if wire != proto.WireVarint { + return true, proto.ErrInternalBadWireType + } + x, err := b.DecodeVarint() + m.Data = &Metric_BoolData{x != 0} + return true, err default: return false, nil } @@ -354,6 +381,9 @@ func _Metric_OneofSizer(msg proto.Message) (n int) { n += proto.SizeVarint(14<<3 | proto.WireBytes) n += proto.SizeVarint(uint64(len(x.BytesData))) n += len(x.BytesData) + case *Metric_BoolData: + n += proto.SizeVarint(15<<3 | proto.WireVarint) + n += 1 case nil: default: panic(fmt.Sprintf("proto: unexpected type %T in oneof", x)) @@ -462,52 +492,53 @@ func init() { } var fileDescriptor0 = []byte{ - // 747 bytes of a gzipped FileDescriptorProto - 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x55, 0xd1, 0x4e, 0xdb, 0x48, - 0x14, 0xc5, 0xb1, 0xe3, 0xc4, 0xd7, 0x01, 0x65, 0x47, 0xfb, 0x60, 0x45, 0xda, 0xc5, 0x78, 0x5f, - 0xb2, 0xab, 0x6d, 0xa2, 0x02, 0xa5, 0x14, 0x10, 0x52, 0x29, 0x41, 0x54, 0x82, 0xaa, 0x32, 0x94, - 0xc7, 0xa2, 0x89, 0x3d, 0x49, 0x47, 0xb5, 0xc7, 0x96, 0x3d, 0x41, 0xe4, 0x0b, 0xfa, 0x45, 0xfd, - 0xa3, 0xbe, 0xf5, 0x27, 0xaa, 0x99, 0xb1, 0x8d, 0x43, 0x5a, 0x45, 0x48, 0x7d, 0x81, 0x7b, 0xcf, - 0x9c, 0x73, 0x67, 0xee, 0x9d, 0xe3, 0x09, 0xec, 0x4c, 0x29, 0xff, 0x34, 0x1b, 0x0f, 0x82, 0x24, - 0x1e, 0x52, 0xc6, 0x49, 0x94, 0x87, 0xf4, 0xd9, 0xfd, 0x30, 0x67, 0x38, 0x1d, 0x4e, 0xb3, 0x34, - 0x18, 0x06, 0x49, 0x1c, 0x27, 0xac, 0xf8, 0x37, 0x48, 0xb3, 0x84, 0x27, 0xc8, 0x54, 0x99, 0xf7, - 0x3f, 0x18, 0xd7, 0x34, 0x26, 0xa8, 0x0b, 0x7a, 0x4e, 0x02, 0x47, 0x73, 0xb5, 0xbe, 0xee, 0x8b, - 0x10, 0x21, 0x30, 0x98, 0x80, 0x1a, 0x12, 0x92, 0xb1, 0xd7, 0x82, 0xe6, 0x28, 0x4e, 0xf9, 0xdc, - 0xfb, 0xaa, 0x81, 0x75, 0xc5, 0x70, 0x3a, 0xca, 0xb2, 0x24, 0x43, 0x5b, 0xd0, 0x21, 0x22, 0xb8, - 0xcd, 0x79, 0x46, 0xd9, 0x54, 0x56, 0xb1, 0x7c, 0x5b, 0x62, 0x57, 0x12, 0x42, 0xa3, 0x92, 0x32, - 0xa1, 0x24, 0x0a, 0x73, 0xa7, 0xe1, 0xea, 0x7d, 0x7b, 0xdb, 0x1b, 0x14, 0x87, 0xaa, 0x6a, 0x0d, - 0xe4, 0xdf, 0x33, 0x49, 0x1a, 0x31, 0x9e, 0xcd, 0x8b, 0x32, 0x0a, 0xe9, 0x1d, 0x43, 0xf7, 0x31, - 0x41, 0x1c, 0xfd, 0x33, 0x99, 0x17, 0x9b, 0x8a, 0x10, 0xfd, 0x09, 0xcd, 0x3b, 0x1c, 0xcd, 0x88, - 0x3c, 0xbb, 0xe5, 0xab, 0xe4, 0xa0, 0xb1, 0xaf, 0x79, 0xcf, 0xa1, 0x79, 0x81, 0xc7, 0x24, 0x12, - 0x14, 0xca, 0x42, 0x72, 0x2f, 0x65, 0x86, 0xaf, 0x12, 0xd9, 0x33, 0x8e, 0x4b, 0x9d, 0x8c, 0xbd, - 0x6f, 0x06, 0x98, 0x97, 0x84, 0x67, 0x34, 0x40, 0x7b, 0x60, 0xbd, 0xc3, 0x31, 0xc9, 0x53, 0x1c, - 0x10, 0x47, 0x93, 0x1d, 0x38, 0x65, 0x07, 0xd5, 0xc2, 0x28, 0x22, 0x31, 0x61, 0xdc, 0xb7, 0x58, - 0x89, 0x20, 0x07, 0x5a, 0x37, 0x24, 0xcb, 0x69, 0xc2, 0x8a, 0x69, 0xb6, 0xee, 0x54, 0x8a, 0xfe, - 0x05, 0xf3, 0x4d, 0xc2, 0x26, 0x74, 0xea, 0xe8, 0xae, 0xd6, 0xb7, 0xb7, 0xff, 0x28, 0xcb, 0x29, - 0xf4, 0x12, 0xa7, 0xbe, 0x19, 0xc8, 0x10, 0x1d, 0x01, 0xba, 0xc0, 0x39, 0x7f, 0x1d, 0xde, 0x91, - 0x8c, 0xd3, 0x9c, 0x84, 0xe2, 0xde, 0x1c, 0x43, 0xca, 0x3a, 0xa5, 0x4c, 0x60, 0x3e, 0x8a, 0x96, - 0x78, 0x48, 0xdc, 0x33, 0x9e, 0xe6, 0x4e, 0x73, 0xf1, 0xd4, 0xaa, 0xb1, 0x81, 0x58, 0x52, 0xd3, - 0x36, 0x38, 0x9e, 0xe6, 0xe8, 0x3f, 0xb0, 0x84, 0x2a, 0xe7, 0x38, 0x4e, 0x1d, 0xf3, 0x27, 0x5b, - 0x58, 0xbc, 0x5c, 0x16, 0x33, 0xfb, 0xc0, 0x28, 0x77, 0x5a, 0x6a, 0x66, 0x33, 0x46, 0x39, 0x72, - 0xc1, 0x3e, 0x25, 0x79, 0x90, 0xd1, 0x94, 0x8b, 0xa6, 0xdb, 0xca, 0x0f, 0xe1, 0x03, 0x84, 0xb6, - 0xc0, 0x56, 0x66, 0xb9, 0x0d, 0x31, 0xc7, 0x8e, 0x25, 0x18, 0xe7, 0x6b, 0x3e, 0x28, 0xf0, 0x14, - 0x73, 0x8c, 0xfe, 0x81, 0xce,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 0x13, 0x77, 0x59, 0x59, 0x51, - 0x94, 0xd8, 0xca, 0xcb, 0x1c, 0x1d, 0x42, 0xfb, 0x4c, 0x38, 0x44, 0xc8, 0x75, 0x29, 0xdf, 0x5c, - 0x96, 0x97, 0x0c, 0xa5, 0x6e, 0x4f, 0x8a, 0x14, 0xed, 0x43, 0xeb, 0x24, 0x49, 0x22, 0xa1, 0x35, - 0xa4, 0xf6, 0xef, 0x65, 0x6d, 0x41, 0x50, 0xd2, 0xd6, 0x58, 0x65, 0xbd, 0x57, 0x60, 0xd7, 0xba, - 0x59, 0x65, 0x14, 0xbd, 0x66, 0x94, 0xde, 0x11, 0x6c, 0x2c, 0xb6, 0xf3, 0x14, 0x9b, 0xf5, 0x0e, - 0x61, 0x7d, 0xa1, 0x9b, 0x55, 0x62, 0xad, 0x2e, 0x3e, 0x80, 0x4e, 0xbd, 0x9d, 0x55, 0xda, 0x76, - 0xfd, 0xc5, 0xf5, 0xc1, 0xfc, 0xdd, 0x66, 0x1b, 0x9b, 0xf2, 0x37, 0x6c, 0xe7, 0x47, 0x00, 0x00, - 0x00, 0xff, 0xff, 0xfa, 0xc3, 0x4f, 0x62, 0xfa, 0x06, 0x00, 0x00, + // 764 bytes of a gzipped FileDescriptorProto + 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x55, 0x51, 0x6f, 0xe3, 0x44, + 0x10, 0x8e, 0x63, 0xc7, 0xb1, 0xc7, 0xb9, 0x23, 0xac, 0x78, 0xb0, 0x22, 0x1d, 0xe7, 0x33, 0x2f, + 0x06, 0x41, 0x22, 0xda, 0xa3, 0x1c, 0x6d, 0x55, 0x89, 0xd2, 0x54, 0x41, 0x6a, 0x11, 0x72, 0x4b, + 0x1f, 0xa9, 0xd6, 0xf6, 0x26, 0xac, 0xb0, 0xd7, 0x96, 0xbd, 0xa9, 0x9a, 0x67, 0x1e, 0xf8, 0x45, + 0xfc, 0x2a, 0xfe, 0x04, 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, 0xe7, 0xc6, 0x1e, 0x9f, 0xfb, 0x7f, 0xeb, 0x60, 0xb7, 0x28, + 0xfa, 0x06, 0xcc, 0x1f, 0x19, 0xbf, 0xc6, 0x45, 0xfd, 0xbd, 0xbd, 0xd9, 0x11, 0x4e, 0x55, 0x5d, + 0xd9, 0xd7, 0xa4, 0x32, 0x41, 0x67, 0x60, 0xab, 0x8b, 0x47, 0x28, 0xd5, 0x5d, 0xe3, 0xed, 0x2a, + 0x5b, 0x8a, 0x12, 0xdb, 0x55, 0x93, 0xa3, 0x13, 0xb0, 0x2e, 0x85, 0x81, 0x84, 0x5c, 0x97, 0xf2, + 0xb7, 0xbb, 0xf2, 0x86, 0xa1, 0xd4, 0xd6, 0xb2, 0x4e, 0xd1, 0x07, 0x18, 0x9e, 0xe7, 0x79, 0x2a, + 0xb4, 0x86, 0xd4, 0x7e, 0xba, 0xab, 0xad, 0x09, 0x4a, 0x3a, 0x8c, 0x54, 0x36, 0xf9, 0x0e, 0x9c, + 0xce, 0x34, 0xfb, 0x8c, 0xa2, 0x77, 0x8c, 0x32, 0x39, 0x85, 0xd7, 0xdb, 0xe3, 0xbc, 0xc4, 0x66, + 0x93, 0x13, 0x78, 0xb5, 0x35, 0xcd, 0x3e, 0xb1, 0xd6, 0x15, 0x1f, 0xc3, 0xa8, 0x3b, 0xce, 0x3e, + 0xad, 0xd5, 0xbd, 0x90, 0x43, 0x30, 0xff, 0x6f, 0xb3, 0x45, 0xa6, 0xfc, 0x89, 0x3b, 0xfc, 0x27, + 0x00, 0x00, 0xff, 0xff, 0xef, 0x9e, 0x96, 0x24, 0x19, 0x07, 0x00, 0x00, } diff --git a/grpc/common/common.proto b/grpc/common/common.proto index eb9b638ad..13abd3e9c 100644 --- a/grpc/common/common.proto +++ b/grpc/common/common.proto @@ -53,7 +53,8 @@ message Metric { double float64_data = 11; int32 int32_data = 12; int64 int64_data = 13; - bytes bytes_data = 14; + bytes bytes_data = 14; + bool bool_data = 15; } }