|
|
|
@ -165,12 +165,37 @@ func (m *LabelMatcher) GetValue() string {
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
type ReadHints struct {
|
|
|
|
|
StepMs int64 `protobuf:"varint,1,opt,name=step_ms,json=stepMs,proto3" json:"step_ms,omitempty"`
|
|
|
|
|
Func string `protobuf:"bytes,2,opt,name=func,proto3" json:"func,omitempty"`
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) Reset() { *m = ReadHints{} }
|
|
|
|
|
func (m *ReadHints) String() string { return proto.CompactTextString(m) }
|
|
|
|
|
func (*ReadHints) ProtoMessage() {}
|
|
|
|
|
func (*ReadHints) Descriptor() ([]byte, []int) { return fileDescriptorTypes, []int{5} }
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) GetStepMs() int64 {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.StepMs
|
|
|
|
|
}
|
|
|
|
|
return 0
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) GetFunc() string {
|
|
|
|
|
if m != nil {
|
|
|
|
|
return m.Func
|
|
|
|
|
}
|
|
|
|
|
return ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func init() {
|
|
|
|
|
proto.RegisterType((*Sample)(nil), "prometheus.Sample")
|
|
|
|
|
proto.RegisterType((*TimeSeries)(nil), "prometheus.TimeSeries")
|
|
|
|
|
proto.RegisterType((*Label)(nil), "prometheus.Label")
|
|
|
|
|
proto.RegisterType((*Labels)(nil), "prometheus.Labels")
|
|
|
|
|
proto.RegisterType((*LabelMatcher)(nil), "prometheus.LabelMatcher")
|
|
|
|
|
proto.RegisterType((*ReadHints)(nil), "prometheus.ReadHints")
|
|
|
|
|
proto.RegisterEnum("prometheus.LabelMatcher_Type", LabelMatcher_Type_name, LabelMatcher_Type_value)
|
|
|
|
|
}
|
|
|
|
|
func (m *Sample) Marshal() (dAtA []byte, err error) {
|
|
|
|
@ -339,6 +364,35 @@ func (m *LabelMatcher) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
|
return i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) Marshal() (dAtA []byte, err error) {
|
|
|
|
|
size := m.Size()
|
|
|
|
|
dAtA = make([]byte, size)
|
|
|
|
|
n, err := m.MarshalTo(dAtA)
|
|
|
|
|
if err != nil {
|
|
|
|
|
return nil, err
|
|
|
|
|
}
|
|
|
|
|
return dAtA[:n], nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) MarshalTo(dAtA []byte) (int, error) {
|
|
|
|
|
var i int
|
|
|
|
|
_ = i
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if m.StepMs != 0 {
|
|
|
|
|
dAtA[i] = 0x8
|
|
|
|
|
i++
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(m.StepMs))
|
|
|
|
|
}
|
|
|
|
|
if len(m.Func) > 0 {
|
|
|
|
|
dAtA[i] = 0x12
|
|
|
|
|
i++
|
|
|
|
|
i = encodeVarintTypes(dAtA, i, uint64(len(m.Func)))
|
|
|
|
|
i += copy(dAtA[i:], m.Func)
|
|
|
|
|
}
|
|
|
|
|
return i, nil
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func encodeVarintTypes(dAtA []byte, offset int, v uint64) int {
|
|
|
|
|
for v >= 1<<7 {
|
|
|
|
|
dAtA[offset] = uint8(v&0x7f | 0x80)
|
|
|
|
@ -421,6 +475,19 @@ func (m *LabelMatcher) Size() (n int) {
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func (m *ReadHints) Size() (n int) {
|
|
|
|
|
var l int
|
|
|
|
|
_ = l
|
|
|
|
|
if m.StepMs != 0 {
|
|
|
|
|
n += 1 + sovTypes(uint64(m.StepMs))
|
|
|
|
|
}
|
|
|
|
|
l = len(m.Func)
|
|
|
|
|
if l > 0 {
|
|
|
|
|
n += 1 + l + sovTypes(uint64(l))
|
|
|
|
|
}
|
|
|
|
|
return n
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
func sovTypes(x uint64) (n int) {
|
|
|
|
|
for {
|
|
|
|
|
n++
|
|
|
|
@ -942,6 +1009,104 @@ func (m *LabelMatcher) Unmarshal(dAtA []byte) error {
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func (m *ReadHints) Unmarshal(dAtA []byte) error {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
|
for iNdEx < l {
|
|
|
|
|
preIndex := iNdEx
|
|
|
|
|
var wire uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
wire |= (uint64(b) & 0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
fieldNum := int32(wire >> 3)
|
|
|
|
|
wireType := int(wire & 0x7)
|
|
|
|
|
if wireType == 4 {
|
|
|
|
|
return fmt.Errorf("proto: ReadHints: wiretype end group for non-group")
|
|
|
|
|
}
|
|
|
|
|
if fieldNum <= 0 {
|
|
|
|
|
return fmt.Errorf("proto: ReadHints: illegal tag %d (wire type %d)", fieldNum, wire)
|
|
|
|
|
}
|
|
|
|
|
switch fieldNum {
|
|
|
|
|
case 1:
|
|
|
|
|
if wireType != 0 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field StepMs", wireType)
|
|
|
|
|
}
|
|
|
|
|
m.StepMs = 0
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
m.StepMs |= (int64(b) & 0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
case 2:
|
|
|
|
|
if wireType != 2 {
|
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Func", wireType)
|
|
|
|
|
}
|
|
|
|
|
var stringLen uint64
|
|
|
|
|
for shift := uint(0); ; shift += 7 {
|
|
|
|
|
if shift >= 64 {
|
|
|
|
|
return ErrIntOverflowTypes
|
|
|
|
|
}
|
|
|
|
|
if iNdEx >= l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
b := dAtA[iNdEx]
|
|
|
|
|
iNdEx++
|
|
|
|
|
stringLen |= (uint64(b) & 0x7F) << shift
|
|
|
|
|
if b < 0x80 {
|
|
|
|
|
break
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
intStringLen := int(stringLen)
|
|
|
|
|
if intStringLen < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
postIndex := iNdEx + intStringLen
|
|
|
|
|
if postIndex > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
m.Func = string(dAtA[iNdEx:postIndex])
|
|
|
|
|
iNdEx = postIndex
|
|
|
|
|
default:
|
|
|
|
|
iNdEx = preIndex
|
|
|
|
|
skippy, err := skipTypes(dAtA[iNdEx:])
|
|
|
|
|
if err != nil {
|
|
|
|
|
return err
|
|
|
|
|
}
|
|
|
|
|
if skippy < 0 {
|
|
|
|
|
return ErrInvalidLengthTypes
|
|
|
|
|
}
|
|
|
|
|
if (iNdEx + skippy) > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
iNdEx += skippy
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if iNdEx > l {
|
|
|
|
|
return io.ErrUnexpectedEOF
|
|
|
|
|
}
|
|
|
|
|
return nil
|
|
|
|
|
}
|
|
|
|
|
func skipTypes(dAtA []byte) (n int, err error) {
|
|
|
|
|
l := len(dAtA)
|
|
|
|
|
iNdEx := 0
|
|
|
|
@ -1050,25 +1215,28 @@ var (
|
|
|
|
|
func init() { proto.RegisterFile("types.proto", fileDescriptorTypes) }
|
|
|
|
|
|
|
|
|
|
var fileDescriptorTypes = []byte{
|
|
|
|
|
// 316 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x91, 0xc1, 0x6a, 0xea, 0x40,
|
|
|
|
|
0x14, 0x86, 0x9d, 0x24, 0x46, 0x3c, 0x5e, 0x2e, 0xe9, 0xe0, 0x22, 0x94, 0xd6, 0x4a, 0x56, 0x29,
|
|
|
|
|
0x94, 0x88, 0x76, 0x55, 0xe8, 0x4a, 0xc8, 0xce, 0x16, 0x1c, 0x5d, 0x75, 0x37, 0x96, 0x83, 0x0a,
|
|
|
|
|
0x99, 0x66, 0xc8, 0x8c, 0x05, 0x1f, 0xa4, 0xef, 0xe4, 0xb2, 0x4f, 0x50, 0x8a, 0x4f, 0x52, 0x66,
|
|
|
|
|
0x46, 0x1b, 0xa1, 0x85, 0xee, 0xce, 0xf9, 0xf3, 0x1d, 0xfe, 0x8f, 0x0c, 0x74, 0xf4, 0x56, 0xa2,
|
|
|
|
|
0xca, 0x64, 0x55, 0xea, 0x92, 0x82, 0xac, 0x4a, 0x81, 0x7a, 0x85, 0x1b, 0x75, 0xde, 0x5d, 0x96,
|
|
|
|
|
0xcb, 0xd2, 0xc6, 0x03, 0x33, 0x39, 0x22, 0xb9, 0x87, 0x70,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4f, 0x23,
|
|
|
|
|
0x62, 0x02, 0x96, 0x47, 0x9e, 0x0d, 0x58, 0x1e, 0xf9, 0xe3, 0xee, 0x6e, 0xdf, 0x23, 0xef, 0xfb,
|
|
|
|
|
0x1e, 0xf9, 0xdc, 0xf7, 0xc8, 0x53, 0x68, 0x2c, 0xe4, 0x62, 0x11, 0xda, 0x77, 0xbc, 0xfd, 0x0a,
|
|
|
|
|
0x00, 0x00, 0xff, 0xff, 0x6c, 0xee, 0x68, 0x81, 0xf8, 0x01, 0x00, 0x00,
|
|
|
|
|
// 353 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x84, 0x92, 0xc1, 0x6a, 0xea, 0x40,
|
|
|
|
|
0x14, 0x86, 0x9d, 0x24, 0x46, 0x3c, 0x5e, 0x2e, 0xb9, 0x83, 0x70, 0x43, 0x69, 0xad, 0x64, 0x95,
|
|
|
|
|
0x42, 0x89, 0x68, 0x37, 0x2d, 0x74, 0x25, 0x04, 0xba, 0xd0, 0x82, 0xa3, 0xab, 0x6e, 0x4a, 0xb4,
|
|
|
|
|
0xa7, 0x1a, 0xc8, 0x98, 0x21, 0x33, 0x16, 0x7c, 0x90, 0xbe, 0x93, 0xcb, 0x3e, 0x41, 0x29, 0x3e,
|
|
|
|
|
0x49, 0x99, 0x89, 0x56, 0xa1, 0x85, 0xee, 0xce, 0xf9, 0xf3, 0x1d, 0xfe, 0x8f, 0x30, 0xd0, 0x50,
|
|
|
|
|
0x6b, 0x81, 0x32, 0x12, 0x45, 0xae, 0x72, 0x0a, 0xa2, 0xc8, 0x39, 0xaa, 0x05, 0xae, 0xe4, 0x49,
|
|
|
|
|
0x73, 0x9e, 0xcf, 0x73, 0x13, 0x77, 0xf4, 0x54, 0x12, 0xc1, 0x2d, 0xb8, 0xe3, 0x84, 0x8b, 0x0c,
|
|
|
|
|
0x69, 0x13, 0xaa, 0x2f, 0x49, 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