Documentation
¶
Index ¶
- Constants
- Variables
- type Bucket
- type Bucket_builder
- type Histogram
- type Histogram_builder
- type Metric
- func (x *Metric) ClearCount()
- func (x *Metric) ClearHistogram()
- func (x *Metric) ClearValue()
- func (x *Metric) GetCount() uint64
- func (x *Metric) GetHistogram() *Histogram
- func (x *Metric) GetName() string
- func (x *Metric) GetValue() isMetric_Value
- func (x *Metric) HasCount() bool
- func (x *Metric) HasHistogram() bool
- func (x *Metric) HasValue() bool
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) SetCount(v uint64)
- func (x *Metric) SetHistogram(v *Histogram)
- func (x *Metric) SetName(v string)
- func (x *Metric) String() string
- func (x *Metric) WhichValue() case_Metric_Value
- type Metric_Count
- type Metric_Histogram
- type Metric_builder
- type Stats
- type Stats_builder
Constants ¶
View Source
const Metric_Count_case case_Metric_Value = 10
View Source
const Metric_Histogram_case case_Metric_Value = 11
View Source
const Metric_Value_not_set_case case_Metric_Value = 0
Variables ¶
View Source
var File_grpc_core_stats_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Bucket ¶
type Bucket struct {
Start float64 `protobuf:"fixed64,1,opt,name=start,proto3" json:"start,omitempty"`
Count uint64 `protobuf:"varint,2,opt,name=count,proto3" json:"count,omitempty"`
// contains filtered or unexported fields
}
func (*Bucket) ProtoReflect ¶
func (x *Bucket) ProtoReflect() protoreflect.Message
type Bucket_builder ¶
func (Bucket_builder) Build ¶
func (b0 Bucket_builder) Build() *Bucket
type Histogram ¶
type Histogram struct {
Buckets []*Bucket `protobuf:"bytes,1,rep,name=buckets,proto3" json:"buckets,omitempty"`
// contains filtered or unexported fields
}
func (*Histogram) ProtoReflect ¶
func (x *Histogram) ProtoReflect() protoreflect.Message
type Histogram_builder ¶
type Histogram_builder struct {
Buckets []*Bucket
// contains filtered or unexported fields
}
func (Histogram_builder) Build ¶
func (b0 Histogram_builder) Build() *Histogram
type Metric ¶
type Metric struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Types that are valid to be assigned to Value:
//
// *Metric_Count
// *Metric_Histogram
Value isMetric_Value `protobuf_oneof:"value"`
// contains filtered or unexported fields
}
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
type Metric_Count ¶
type Metric_Count struct {
Count uint64 `protobuf:"varint,10,opt,name=count,proto3,oneof"`
}
type Metric_Histogram ¶
type Metric_Histogram struct {
Histogram *Histogram `protobuf:"bytes,11,opt,name=histogram,proto3,oneof"`
}
type Metric_builder ¶
type Metric_builder struct {
Name string
// Fields of oneof Value:
Count *uint64
Histogram *Histogram
// contains filtered or unexported fields
}
func (Metric_builder) Build ¶
func (b0 Metric_builder) Build() *Metric
type Stats ¶
type Stats struct {
Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
// contains filtered or unexported fields
}
func (*Stats) ProtoReflect ¶
func (x *Stats) ProtoReflect() protoreflect.Message
type Stats_builder ¶
type Stats_builder struct {
Metrics []*Metric
// contains filtered or unexported fields
}
func (Stats_builder) Build ¶
func (b0 Stats_builder) Build() *Stats
Source Files
¶
- stats.pb.go
Click to show internal directories.
Click to hide internal directories.