|
|
|
|
@ -132,6 +132,89 @@ func (m *LokiRequest) GetShards() []string { |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type LokiInstantRequest struct { |
|
|
|
|
Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` |
|
|
|
|
Limit uint32 `protobuf:"varint,2,opt,name=limit,proto3" json:"limit,omitempty"` |
|
|
|
|
TimeTs time.Time `protobuf:"bytes,3,opt,name=timeTs,proto3,stdtime" json:"timeTs"` |
|
|
|
|
Direction logproto.Direction `protobuf:"varint,4,opt,name=direction,proto3,enum=logproto.Direction" json:"direction,omitempty"` |
|
|
|
|
Path string `protobuf:"bytes,5,opt,name=path,proto3" json:"path,omitempty"` |
|
|
|
|
Shards []string `protobuf:"bytes,6,rep,name=shards,proto3" json:"shards"` |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) Reset() { *m = LokiInstantRequest{} } |
|
|
|
|
func (*LokiInstantRequest) ProtoMessage() {} |
|
|
|
|
func (*LokiInstantRequest) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{1} |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { |
|
|
|
|
if deterministic { |
|
|
|
|
return xxx_messageInfo_LokiInstantRequest.Marshal(b, m, deterministic) |
|
|
|
|
} else { |
|
|
|
|
b = b[:cap(b)] |
|
|
|
|
n, err := m.MarshalTo(b) |
|
|
|
|
if err != nil { |
|
|
|
|
return nil, err |
|
|
|
|
} |
|
|
|
|
return b[:n], nil |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) XXX_Merge(src proto.Message) { |
|
|
|
|
xxx_messageInfo_LokiInstantRequest.Merge(m, src) |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) XXX_Size() int { |
|
|
|
|
return m.Size() |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) XXX_DiscardUnknown() { |
|
|
|
|
xxx_messageInfo_LokiInstantRequest.DiscardUnknown(m) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var xxx_messageInfo_LokiInstantRequest proto.InternalMessageInfo |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetQuery() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Query |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetLimit() uint32 { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Limit |
|
|
|
|
} |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetTimeTs() time.Time { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.TimeTs |
|
|
|
|
} |
|
|
|
|
return time.Time{} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetDirection() logproto.Direction { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Direction |
|
|
|
|
} |
|
|
|
|
return logproto.FORWARD |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetPath() string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Path |
|
|
|
|
} |
|
|
|
|
return "" |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) GetShards() []string { |
|
|
|
|
if m != nil { |
|
|
|
|
return m.Shards |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
type LokiResponse struct { |
|
|
|
|
Status string `protobuf:"bytes,1,opt,name=Status,proto3" json:"status"` |
|
|
|
|
Data LokiData `protobuf:"bytes,2,opt,name=Data,proto3" json:"data,omitempty"` |
|
|
|
|
@ -147,7 +230,7 @@ type LokiResponse struct { |
|
|
|
|
func (m *LokiResponse) Reset() { *m = LokiResponse{} } |
|
|
|
|
func (*LokiResponse) ProtoMessage() {} |
|
|
|
|
func (*LokiResponse) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{1} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{2} |
|
|
|
|
} |
|
|
|
|
func (m *LokiResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -243,7 +326,7 @@ type LokiSeriesRequest struct { |
|
|
|
|
func (m *LokiSeriesRequest) Reset() { *m = LokiSeriesRequest{} } |
|
|
|
|
func (*LokiSeriesRequest) ProtoMessage() {} |
|
|
|
|
func (*LokiSeriesRequest) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{2} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{3} |
|
|
|
|
} |
|
|
|
|
func (m *LokiSeriesRequest) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -317,7 +400,7 @@ type LokiSeriesResponse struct { |
|
|
|
|
func (m *LokiSeriesResponse) Reset() { *m = LokiSeriesResponse{} } |
|
|
|
|
func (*LokiSeriesResponse) ProtoMessage() {} |
|
|
|
|
func (*LokiSeriesResponse) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{3} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{4} |
|
|
|
|
} |
|
|
|
|
func (m *LokiSeriesResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -376,7 +459,7 @@ type LokiLabelNamesRequest struct { |
|
|
|
|
func (m *LokiLabelNamesRequest) Reset() { *m = LokiLabelNamesRequest{} } |
|
|
|
|
func (*LokiLabelNamesRequest) ProtoMessage() {} |
|
|
|
|
func (*LokiLabelNamesRequest) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{4} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{5} |
|
|
|
|
} |
|
|
|
|
func (m *LokiLabelNamesRequest) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -436,7 +519,7 @@ type LokiLabelNamesResponse struct { |
|
|
|
|
func (m *LokiLabelNamesResponse) Reset() { *m = LokiLabelNamesResponse{} } |
|
|
|
|
func (*LokiLabelNamesResponse) ProtoMessage() {} |
|
|
|
|
func (*LokiLabelNamesResponse) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{5} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{6} |
|
|
|
|
} |
|
|
|
|
func (m *LokiLabelNamesResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -494,7 +577,7 @@ type LokiData struct { |
|
|
|
|
func (m *LokiData) Reset() { *m = LokiData{} } |
|
|
|
|
func (*LokiData) ProtoMessage() {} |
|
|
|
|
func (*LokiData) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{6} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{7} |
|
|
|
|
} |
|
|
|
|
func (m *LokiData) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -539,7 +622,7 @@ type LokiPromResponse struct { |
|
|
|
|
func (m *LokiPromResponse) Reset() { *m = LokiPromResponse{} } |
|
|
|
|
func (*LokiPromResponse) ProtoMessage() {} |
|
|
|
|
func (*LokiPromResponse) Descriptor() ([]byte, []int) { |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{7} |
|
|
|
|
return fileDescriptor_51b9d53b40d11902, []int{8} |
|
|
|
|
} |
|
|
|
|
func (m *LokiPromResponse) XXX_Unmarshal(b []byte) error { |
|
|
|
|
return m.Unmarshal(b) |
|
|
|
|
@ -584,6 +667,7 @@ func (m *LokiPromResponse) GetStatistics() stats.Result { |
|
|
|
|
|
|
|
|
|
func init() { |
|
|
|
|
proto.RegisterType((*LokiRequest)(nil), "queryrange.LokiRequest") |
|
|
|
|
proto.RegisterType((*LokiInstantRequest)(nil), "queryrange.LokiInstantRequest") |
|
|
|
|
proto.RegisterType((*LokiResponse)(nil), "queryrange.LokiResponse") |
|
|
|
|
proto.RegisterType((*LokiSeriesRequest)(nil), "queryrange.LokiSeriesRequest") |
|
|
|
|
proto.RegisterType((*LokiSeriesResponse)(nil), "queryrange.LokiSeriesResponse") |
|
|
|
|
@ -598,62 +682,65 @@ func init() { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
var fileDescriptor_51b9d53b40d11902 = []byte{ |
|
|
|
|
// 874 bytes of a gzipped FileDescriptorProto
|
|
|
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xdc, 0x56, 0x4f, 0x6f, 0xdc, 0x44, |
|
|
|
|
0x14, 0xdf, 0x59, 0xef, 0x9f, 0x78, 0x42, 0x03, 0x4c, 0x4a, 0x6b, 0x05, 0xc9, 0xb6, 0x56, 0x08, |
|
|
|
|
0x16, 0x41, 0xbd, 0x22, 0x85, 0x0b, 0x12, 0xa8, 0xb5, 0xca, 0x3f, 0xa9, 0x02, 0x34, 0xcd, 0x81, |
|
|
|
|
0xeb, 0x64, 0x3d, 0xf1, 0x9a, 0xd8, 0x3b, 0xce, 0xcc, 0x2c, 0x22, 0x37, 0xae, 0xdc, 0x7a, 0x03, |
|
|
|
|
0x3e, 0x01, 0x88, 0x33, 0x7c, 0x87, 0x1c, 0x73, 0xac, 0x2a, 0x61, 0xc8, 0xe6, 0x82, 0xf6, 0xd4, |
|
|
|
|
0x8f, 0x80, 0x66, 0xc6, 0xde, 0x9d, 0xa0, 0x16, 0xba, 0xcd, 0x05, 0x71, 0xd9, 0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xd6, 0x1e, 0x9f, 0xb8, 0xb5, 0x9d, 0xb6, |
|
|
|
|
0x46, 0x78, 0xfb, 0xef, 0x00, 0x00, 0x00, 0xff, 0xff, 0x52, 0x92, 0xbf, 0x59, 0x9f, 0x0a, 0x00, |
|
|
|
|
0x00, |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (this *LokiRequest) Equal(that interface{}) bool { |
|
|
|
|
@ -706,6 +793,50 @@ func (this *LokiRequest) Equal(that interface{}) bool { |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *LokiInstantRequest) Equal(that interface{}) bool { |
|
|
|
|
if that == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
that1, ok := that.(*LokiInstantRequest) |
|
|
|
|
if !ok { |
|
|
|
|
that2, ok := that.(LokiInstantRequest) |
|
|
|
|
if ok { |
|
|
|
|
that1 = &that2 |
|
|
|
|
} else { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if that1 == nil { |
|
|
|
|
return this == nil |
|
|
|
|
} else if this == nil { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Query != that1.Query { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Limit != that1.Limit { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if !this.TimeTs.Equal(that1.TimeTs) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Direction != that1.Direction { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if this.Path != that1.Path { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
if len(this.Shards) != len(that1.Shards) { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
for i := range this.Shards { |
|
|
|
|
if this.Shards[i] != that1.Shards[i] { |
|
|
|
|
return false |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return true |
|
|
|
|
} |
|
|
|
|
func (this *LokiResponse) Equal(that interface{}) bool { |
|
|
|
|
if that == nil { |
|
|
|
|
return this == nil |
|
|
|
|
@ -997,6 +1128,21 @@ func (this *LokiRequest) GoString() string { |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func (this *LokiInstantRequest) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := make([]string, 0, 10) |
|
|
|
|
s = append(s, "&queryrange.LokiInstantRequest{") |
|
|
|
|
s = append(s, "Query: "+fmt.Sprintf("%#v", this.Query)+",\n") |
|
|
|
|
s = append(s, "Limit: "+fmt.Sprintf("%#v", this.Limit)+",\n") |
|
|
|
|
s = append(s, "TimeTs: "+fmt.Sprintf("%#v", this.TimeTs)+",\n") |
|
|
|
|
s = append(s, "Direction: "+fmt.Sprintf("%#v", this.Direction)+",\n") |
|
|
|
|
s = append(s, "Path: "+fmt.Sprintf("%#v", this.Path)+",\n") |
|
|
|
|
s = append(s, "Shards: "+fmt.Sprintf("%#v", this.Shards)+",\n") |
|
|
|
|
s = append(s, "}") |
|
|
|
|
return strings.Join(s, "") |
|
|
|
|
} |
|
|
|
|
func (this *LokiResponse) GoString() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
@ -1181,6 +1327,69 @@ func (m *LokiRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
return i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) 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 *LokiInstantRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
var i int |
|
|
|
|
_ = i |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
if len(m.Query) > 0 { |
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Query))) |
|
|
|
|
i += copy(dAtA[i:], m.Query) |
|
|
|
|
} |
|
|
|
|
if m.Limit != 0 { |
|
|
|
|
dAtA[i] = 0x10 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Limit)) |
|
|
|
|
} |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.TimeTs))) |
|
|
|
|
n3, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.TimeTs, dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n3 |
|
|
|
|
if m.Direction != 0 { |
|
|
|
|
dAtA[i] = 0x20 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Direction)) |
|
|
|
|
} |
|
|
|
|
if len(m.Path) > 0 { |
|
|
|
|
dAtA[i] = 0x2a |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(len(m.Path))) |
|
|
|
|
i += copy(dAtA[i:], m.Path) |
|
|
|
|
} |
|
|
|
|
if len(m.Shards) > 0 { |
|
|
|
|
for _, s := range m.Shards { |
|
|
|
|
dAtA[i] = 0x32 |
|
|
|
|
i++ |
|
|
|
|
l = len(s) |
|
|
|
|
for l >= 1<<7 { |
|
|
|
|
dAtA[i] = uint8(uint64(l)&0x7f | 0x80) |
|
|
|
|
l >>= 7 |
|
|
|
|
i++ |
|
|
|
|
} |
|
|
|
|
dAtA[i] = uint8(l) |
|
|
|
|
i++ |
|
|
|
|
i += copy(dAtA[i:], s) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiResponse) Marshal() (dAtA []byte, err error) { |
|
|
|
|
size := m.Size() |
|
|
|
|
dAtA = make([]byte, size) |
|
|
|
|
@ -1205,11 +1414,11 @@ func (m *LokiResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Data.Size())) |
|
|
|
|
n3, err := m.Data.MarshalTo(dAtA[i:]) |
|
|
|
|
n4, err := m.Data.MarshalTo(dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n3 |
|
|
|
|
i += n4 |
|
|
|
|
if len(m.ErrorType) > 0 { |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
i++ |
|
|
|
|
@ -1240,11 +1449,11 @@ func (m *LokiResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
dAtA[i] = 0x42 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Statistics.Size())) |
|
|
|
|
n4, err := m.Statistics.MarshalTo(dAtA[i:]) |
|
|
|
|
n5, err := m.Statistics.MarshalTo(dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n4 |
|
|
|
|
i += n5 |
|
|
|
|
if len(m.Headers) > 0 { |
|
|
|
|
for _, msg := range m.Headers { |
|
|
|
|
dAtA[i] = 0x4a |
|
|
|
|
@ -1293,19 +1502,19 @@ func (m *LokiSeriesRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs))) |
|
|
|
|
n5, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) |
|
|
|
|
n6, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n5 |
|
|
|
|
i += n6 |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs))) |
|
|
|
|
n6, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) |
|
|
|
|
n7, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n6 |
|
|
|
|
i += n7 |
|
|
|
|
if len(m.Path) > 0 { |
|
|
|
|
dAtA[i] = 0x22 |
|
|
|
|
i++ |
|
|
|
|
@ -1401,19 +1610,19 @@ func (m *LokiLabelNamesRequest) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.StartTs))) |
|
|
|
|
n7, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) |
|
|
|
|
n8, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.StartTs, dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n7 |
|
|
|
|
i += n8 |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(github_com_gogo_protobuf_types.SizeOfStdTime(m.EndTs))) |
|
|
|
|
n8, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) |
|
|
|
|
n9, err := github_com_gogo_protobuf_types.StdTimeMarshalTo(m.EndTs, dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n8 |
|
|
|
|
i += n9 |
|
|
|
|
if len(m.Path) > 0 { |
|
|
|
|
dAtA[i] = 0x1a |
|
|
|
|
i++ |
|
|
|
|
@ -1534,20 +1743,20 @@ func (m *LokiPromResponse) MarshalTo(dAtA []byte) (int, error) { |
|
|
|
|
dAtA[i] = 0xa |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Response.Size())) |
|
|
|
|
n9, err := m.Response.MarshalTo(dAtA[i:]) |
|
|
|
|
n10, err := m.Response.MarshalTo(dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n9 |
|
|
|
|
i += n10 |
|
|
|
|
} |
|
|
|
|
dAtA[i] = 0x12 |
|
|
|
|
i++ |
|
|
|
|
i = encodeVarintQueryrange(dAtA, i, uint64(m.Statistics.Size())) |
|
|
|
|
n10, err := m.Statistics.MarshalTo(dAtA[i:]) |
|
|
|
|
n11, err := m.Statistics.MarshalTo(dAtA[i:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return 0, err |
|
|
|
|
} |
|
|
|
|
i += n10 |
|
|
|
|
i += n11 |
|
|
|
|
return i, nil |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
@ -1596,6 +1805,37 @@ func (m *LokiRequest) Size() (n int) { |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiInstantRequest) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
} |
|
|
|
|
var l int |
|
|
|
|
_ = l |
|
|
|
|
l = len(m.Query) |
|
|
|
|
if l > 0 { |
|
|
|
|
n += 1 + l + sovQueryrange(uint64(l)) |
|
|
|
|
} |
|
|
|
|
if m.Limit != 0 { |
|
|
|
|
n += 1 + sovQueryrange(uint64(m.Limit)) |
|
|
|
|
} |
|
|
|
|
l = github_com_gogo_protobuf_types.SizeOfStdTime(m.TimeTs) |
|
|
|
|
n += 1 + l + sovQueryrange(uint64(l)) |
|
|
|
|
if m.Direction != 0 { |
|
|
|
|
n += 1 + sovQueryrange(uint64(m.Direction)) |
|
|
|
|
} |
|
|
|
|
l = len(m.Path) |
|
|
|
|
if l > 0 { |
|
|
|
|
n += 1 + l + sovQueryrange(uint64(l)) |
|
|
|
|
} |
|
|
|
|
if len(m.Shards) > 0 { |
|
|
|
|
for _, s := range m.Shards { |
|
|
|
|
l = len(s) |
|
|
|
|
n += 1 + l + sovQueryrange(uint64(l)) |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
return n |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
func (m *LokiResponse) Size() (n int) { |
|
|
|
|
if m == nil { |
|
|
|
|
return 0 |
|
|
|
|
@ -1802,6 +2042,21 @@ func (this *LokiRequest) String() string { |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func (this *LokiInstantRequest) String() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
} |
|
|
|
|
s := strings.Join([]string{`&LokiInstantRequest{`, |
|
|
|
|
`Query:` + fmt.Sprintf("%v", this.Query) + `,`, |
|
|
|
|
`Limit:` + fmt.Sprintf("%v", this.Limit) + `,`, |
|
|
|
|
`TimeTs:` + strings.Replace(strings.Replace(this.TimeTs.String(), "Timestamp", "types.Timestamp", 1), `&`, ``, 1) + `,`, |
|
|
|
|
`Direction:` + fmt.Sprintf("%v", this.Direction) + `,`, |
|
|
|
|
`Path:` + fmt.Sprintf("%v", this.Path) + `,`, |
|
|
|
|
`Shards:` + fmt.Sprintf("%v", this.Shards) + `,`, |
|
|
|
|
`}`, |
|
|
|
|
}, "") |
|
|
|
|
return s |
|
|
|
|
} |
|
|
|
|
func (this *LokiResponse) String() string { |
|
|
|
|
if this == nil { |
|
|
|
|
return "nil" |
|
|
|
|
@ -2174,6 +2429,226 @@ func (m *LokiRequest) Unmarshal(dAtA []byte) error { |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *LokiInstantRequest) 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 ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
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: LokiInstantRequest: wiretype end group for non-group") |
|
|
|
|
} |
|
|
|
|
if fieldNum <= 0 { |
|
|
|
|
return fmt.Errorf("proto: LokiInstantRequest: illegal tag %d (wire type %d)", fieldNum, wire) |
|
|
|
|
} |
|
|
|
|
switch fieldNum { |
|
|
|
|
case 1: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Query", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
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 ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Query = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 2: |
|
|
|
|
if wireType != 0 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Limit", wireType) |
|
|
|
|
} |
|
|
|
|
m.Limit = 0 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
m.Limit |= uint32(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
case 3: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field TimeTs", wireType) |
|
|
|
|
} |
|
|
|
|
var msglen int |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
msglen |= int(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
if msglen < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + msglen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
if err := github_com_gogo_protobuf_types.StdTimeUnmarshal(&m.TimeTs, dAtA[iNdEx:postIndex]); err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 4: |
|
|
|
|
if wireType != 0 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Direction", wireType) |
|
|
|
|
} |
|
|
|
|
m.Direction = 0 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
if iNdEx >= l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
b := dAtA[iNdEx] |
|
|
|
|
iNdEx++ |
|
|
|
|
m.Direction |= logproto.Direction(b&0x7F) << shift |
|
|
|
|
if b < 0x80 { |
|
|
|
|
break |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
case 5: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Path", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
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 ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Path = string(dAtA[iNdEx:postIndex]) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
case 6: |
|
|
|
|
if wireType != 2 { |
|
|
|
|
return fmt.Errorf("proto: wrong wireType = %d for field Shards", wireType) |
|
|
|
|
} |
|
|
|
|
var stringLen uint64 |
|
|
|
|
for shift := uint(0); ; shift += 7 { |
|
|
|
|
if shift >= 64 { |
|
|
|
|
return ErrIntOverflowQueryrange |
|
|
|
|
} |
|
|
|
|
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 ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
postIndex := iNdEx + intStringLen |
|
|
|
|
if postIndex < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if postIndex > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
m.Shards = append(m.Shards, string(dAtA[iNdEx:postIndex])) |
|
|
|
|
iNdEx = postIndex |
|
|
|
|
default: |
|
|
|
|
iNdEx = preIndex |
|
|
|
|
skippy, err := skipQueryrange(dAtA[iNdEx:]) |
|
|
|
|
if err != nil { |
|
|
|
|
return err |
|
|
|
|
} |
|
|
|
|
if skippy < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) < 0 { |
|
|
|
|
return ErrInvalidLengthQueryrange |
|
|
|
|
} |
|
|
|
|
if (iNdEx + skippy) > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
iNdEx += skippy |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
if iNdEx > l { |
|
|
|
|
return io.ErrUnexpectedEOF |
|
|
|
|
} |
|
|
|
|
return nil |
|
|
|
|
} |
|
|
|
|
func (m *LokiResponse) Unmarshal(dAtA []byte) error { |
|
|
|
|
l := len(dAtA) |
|
|
|
|
iNdEx := 0 |
|
|
|
|
|