229 lines
9.0 KiB
Go
229 lines
9.0 KiB
Go
// Code generated by protoc-gen-go.
|
|
// source: remote.proto
|
|
// DO NOT EDIT!
|
|
|
|
/*
|
|
Package remote is a generated protocol buffer package.
|
|
|
|
It is generated from these files:
|
|
remote.proto
|
|
|
|
It has these top-level messages:
|
|
Sample
|
|
LabelPair
|
|
TimeSeries
|
|
WriteRequest
|
|
ReadRequest
|
|
ReadResponse
|
|
Query
|
|
LabelMatcher
|
|
*/
|
|
package remote
|
|
|
|
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
|
|
|
|
type MatchType int32
|
|
|
|
const (
|
|
MatchType_EQUAL MatchType = 0
|
|
MatchType_NOT_EQUAL MatchType = 1
|
|
MatchType_REGEX_MATCH MatchType = 2
|
|
MatchType_REGEX_NO_MATCH MatchType = 3
|
|
)
|
|
|
|
var MatchType_name = map[int32]string{
|
|
0: "EQUAL",
|
|
1: "NOT_EQUAL",
|
|
2: "REGEX_MATCH",
|
|
3: "REGEX_NO_MATCH",
|
|
}
|
|
var MatchType_value = map[string]int32{
|
|
"EQUAL": 0,
|
|
"NOT_EQUAL": 1,
|
|
"REGEX_MATCH": 2,
|
|
"REGEX_NO_MATCH": 3,
|
|
}
|
|
|
|
func (x MatchType) String() string {
|
|
return proto.EnumName(MatchType_name, int32(x))
|
|
}
|
|
func (MatchType) EnumDescriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
type Sample struct {
|
|
Value float64 `protobuf:"fixed64,1,opt,name=value" json:"value,omitempty"`
|
|
TimestampMs int64 `protobuf:"varint,2,opt,name=timestamp_ms,json=timestampMs" json:"timestamp_ms,omitempty"`
|
|
}
|
|
|
|
func (m *Sample) Reset() { *m = Sample{} }
|
|
func (m *Sample) String() string { return proto.CompactTextString(m) }
|
|
func (*Sample) ProtoMessage() {}
|
|
func (*Sample) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
|
|
|
|
type LabelPair struct {
|
|
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
|
|
Value string `protobuf:"bytes,2,opt,name=value" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *LabelPair) Reset() { *m = LabelPair{} }
|
|
func (m *LabelPair) String() string { return proto.CompactTextString(m) }
|
|
func (*LabelPair) ProtoMessage() {}
|
|
func (*LabelPair) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
|
|
|
|
type TimeSeries struct {
|
|
Labels []*LabelPair `protobuf:"bytes,1,rep,name=labels" json:"labels,omitempty"`
|
|
// Sorted by time, oldest sample first.
|
|
Samples []*Sample `protobuf:"bytes,2,rep,name=samples" json:"samples,omitempty"`
|
|
}
|
|
|
|
func (m *TimeSeries) Reset() { *m = TimeSeries{} }
|
|
func (m *TimeSeries) String() string { return proto.CompactTextString(m) }
|
|
func (*TimeSeries) ProtoMessage() {}
|
|
func (*TimeSeries) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
|
|
|
|
func (m *TimeSeries) GetLabels() []*LabelPair {
|
|
if m != nil {
|
|
return m.Labels
|
|
}
|
|
return nil
|
|
}
|
|
|
|
func (m *TimeSeries) GetSamples() []*Sample {
|
|
if m != nil {
|
|
return m.Samples
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type WriteRequest struct {
|
|
Timeseries []*TimeSeries `protobuf:"bytes,1,rep,name=timeseries" json:"timeseries,omitempty"`
|
|
}
|
|
|
|
func (m *WriteRequest) Reset() { *m = WriteRequest{} }
|
|
func (m *WriteRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*WriteRequest) ProtoMessage() {}
|
|
func (*WriteRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
|
|
|
|
func (m *WriteRequest) GetTimeseries() []*TimeSeries {
|
|
if m != nil {
|
|
return m.Timeseries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReadRequest struct {
|
|
Queries []*Query `protobuf:"bytes,1,rep,name=queries" json:"queries,omitempty"`
|
|
}
|
|
|
|
func (m *ReadRequest) Reset() { *m = ReadRequest{} }
|
|
func (m *ReadRequest) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadRequest) ProtoMessage() {}
|
|
func (*ReadRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
|
|
|
|
func (m *ReadRequest) GetQueries() []*Query {
|
|
if m != nil {
|
|
return m.Queries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type ReadResponse struct {
|
|
Timeseries []*TimeSeries `protobuf:"bytes,1,rep,name=timeseries" json:"timeseries,omitempty"`
|
|
}
|
|
|
|
func (m *ReadResponse) Reset() { *m = ReadResponse{} }
|
|
func (m *ReadResponse) String() string { return proto.CompactTextString(m) }
|
|
func (*ReadResponse) ProtoMessage() {}
|
|
func (*ReadResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
|
|
|
|
func (m *ReadResponse) GetTimeseries() []*TimeSeries {
|
|
if m != nil {
|
|
return m.Timeseries
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type Query struct {
|
|
StartTimestampMs int64 `protobuf:"varint,1,opt,name=start_timestamp_ms,json=startTimestampMs" json:"start_timestamp_ms,omitempty"`
|
|
EndTimestampMs int64 `protobuf:"varint,2,opt,name=end_timestamp_ms,json=endTimestampMs" json:"end_timestamp_ms,omitempty"`
|
|
Matchers []*LabelMatcher `protobuf:"bytes,3,rep,name=matchers" json:"matchers,omitempty"`
|
|
}
|
|
|
|
func (m *Query) Reset() { *m = Query{} }
|
|
func (m *Query) String() string { return proto.CompactTextString(m) }
|
|
func (*Query) ProtoMessage() {}
|
|
func (*Query) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{6} }
|
|
|
|
func (m *Query) GetMatchers() []*LabelMatcher {
|
|
if m != nil {
|
|
return m.Matchers
|
|
}
|
|
return nil
|
|
}
|
|
|
|
type LabelMatcher struct {
|
|
Type MatchType `protobuf:"varint,1,opt,name=type,enum=remote.MatchType" json:"type,omitempty"`
|
|
Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
|
|
Value string `protobuf:"bytes,3,opt,name=value" json:"value,omitempty"`
|
|
}
|
|
|
|
func (m *LabelMatcher) Reset() { *m = LabelMatcher{} }
|
|
func (m *LabelMatcher) String() string { return proto.CompactTextString(m) }
|
|
func (*LabelMatcher) ProtoMessage() {}
|
|
func (*LabelMatcher) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{7} }
|
|
|
|
func init() {
|
|
proto.RegisterType((*Sample)(nil), "remote.Sample")
|
|
proto.RegisterType((*LabelPair)(nil), "remote.LabelPair")
|
|
proto.RegisterType((*TimeSeries)(nil), "remote.TimeSeries")
|
|
proto.RegisterType((*WriteRequest)(nil), "remote.WriteRequest")
|
|
proto.RegisterType((*ReadRequest)(nil), "remote.ReadRequest")
|
|
proto.RegisterType((*ReadResponse)(nil), "remote.ReadResponse")
|
|
proto.RegisterType((*Query)(nil), "remote.Query")
|
|
proto.RegisterType((*LabelMatcher)(nil), "remote.LabelMatcher")
|
|
proto.RegisterEnum("remote.MatchType", MatchType_name, MatchType_value)
|
|
}
|
|
|
|
func init() { proto.RegisterFile("remote.proto", fileDescriptor0) }
|
|
|
|
var fileDescriptor0 = []byte{
|
|
// 397 bytes of a gzipped FileDescriptorProto
|
|
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x9c, 0x52, 0x5d, 0x6b, 0xe2, 0x40,
|
|
0x14, 0xdd, 0x24, 0x1a, 0x37, 0xd7, 0x98, 0xcd, 0x0e, 0x3e, 0xf8, 0xb8, 0x1b, 0x58, 0xd6, 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