Documentation ¶
Index ¶
- Constants
- type Dist
- func (*Dist) Descriptor() ([]byte, []int)
- func (m *Dist) GetBuckets() isDist_Buckets
- func (m *Dist) GetExplicitBuckets() string
- func (m *Dist) GetExponentialBuckets() *ExponentialBuckets
- func (*Dist) ProtoMessage()
- func (m *Dist) Reset()
- func (m *Dist) String() string
- func (m *Dist) XXX_DiscardUnknown()
- func (m *Dist) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Dist) XXX_Merge(src proto.Message)
- func (*Dist) XXX_OneofWrappers() []interface{}
- func (m *Dist) XXX_Size() int
- func (m *Dist) XXX_Unmarshal(b []byte) error
- type Dist_ExplicitBuckets
- type Dist_ExponentialBuckets
- type ExponentialBuckets
- func (*ExponentialBuckets) Descriptor() ([]byte, []int)
- func (m *ExponentialBuckets) GetBase() float32
- func (m *ExponentialBuckets) GetNumBuckets() uint32
- func (m *ExponentialBuckets) GetScaleFactor() float32
- func (*ExponentialBuckets) ProtoMessage()
- func (m *ExponentialBuckets) Reset()
- func (m *ExponentialBuckets) String() string
- func (m *ExponentialBuckets) XXX_DiscardUnknown()
- func (m *ExponentialBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *ExponentialBuckets) XXX_Merge(src proto.Message)
- func (m *ExponentialBuckets) XXX_Size() int
- func (m *ExponentialBuckets) XXX_Unmarshal(b []byte) error
Constants ¶
View Source
const Default_ExponentialBuckets_Base float32 = 2
View Source
const Default_ExponentialBuckets_NumBuckets uint32 = 20
View Source
const Default_ExponentialBuckets_ScaleFactor float32 = 1
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dist ¶
type Dist struct { // Types that are valid to be assigned to Buckets: // *Dist_ExplicitBuckets // *Dist_ExponentialBuckets Buckets isDist_Buckets `protobuf_oneof:"buckets"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
Dist defines a Distribution data type.
func (*Dist) Descriptor ¶
func (*Dist) GetBuckets ¶
func (m *Dist) GetBuckets() isDist_Buckets
func (*Dist) GetExplicitBuckets ¶
func (*Dist) GetExponentialBuckets ¶
func (m *Dist) GetExponentialBuckets() *ExponentialBuckets
func (*Dist) ProtoMessage ¶
func (*Dist) ProtoMessage()
func (*Dist) XXX_DiscardUnknown ¶
func (m *Dist) XXX_DiscardUnknown()
func (*Dist) XXX_OneofWrappers ¶ added in v0.10.4
func (*Dist) XXX_OneofWrappers() []interface{}
XXX_OneofWrappers is for the internal use of the proto package.
func (*Dist) XXX_Unmarshal ¶
type Dist_ExplicitBuckets ¶
type Dist_ExplicitBuckets struct {
ExplicitBuckets string `protobuf:"bytes,1,opt,name=explicit_buckets,json=explicitBuckets,oneof"`
}
type Dist_ExponentialBuckets ¶
type Dist_ExponentialBuckets struct {
ExponentialBuckets *ExponentialBuckets `protobuf:"bytes,2,opt,name=exponential_buckets,json=exponentialBuckets,oneof"`
}
type ExponentialBuckets ¶
type ExponentialBuckets struct { ScaleFactor *float32 `protobuf:"fixed32,1,opt,name=scale_factor,json=scaleFactor,def=1" json:"scale_factor,omitempty"` Base *float32 `protobuf:"fixed32,2,opt,name=base,def=2" json:"base,omitempty"` NumBuckets *uint32 `protobuf:"varint,3,opt,name=num_buckets,json=numBuckets,def=20" json:"num_buckets,omitempty"` XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
ExponentialBucket defines a set of num_buckets+2 buckets:
bucket[0] covers (−Inf, 0) bucket[1] covers [0, scale_factor) bucket[2] covers [scale_factor, scale_factor*base) ... bucket[i] covers [scale_factor*base^(i−2), scale_factor*base^(i−1)) ... bucket[num_buckets+1] covers [scale_factor*base^(num_buckets−1), +Inf)
NB: Base must be at least 1.01.
func (*ExponentialBuckets) Descriptor ¶
func (*ExponentialBuckets) Descriptor() ([]byte, []int)
func (*ExponentialBuckets) GetBase ¶
func (m *ExponentialBuckets) GetBase() float32
func (*ExponentialBuckets) GetNumBuckets ¶
func (m *ExponentialBuckets) GetNumBuckets() uint32
func (*ExponentialBuckets) GetScaleFactor ¶
func (m *ExponentialBuckets) GetScaleFactor() float32
func (*ExponentialBuckets) ProtoMessage ¶
func (*ExponentialBuckets) ProtoMessage()
func (*ExponentialBuckets) Reset ¶
func (m *ExponentialBuckets) Reset()
func (*ExponentialBuckets) String ¶
func (m *ExponentialBuckets) String() string
func (*ExponentialBuckets) XXX_DiscardUnknown ¶
func (m *ExponentialBuckets) XXX_DiscardUnknown()
func (*ExponentialBuckets) XXX_Marshal ¶
func (m *ExponentialBuckets) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
func (*ExponentialBuckets) XXX_Merge ¶
func (m *ExponentialBuckets) XXX_Merge(src proto.Message)
func (*ExponentialBuckets) XXX_Size ¶
func (m *ExponentialBuckets) XXX_Size() int
func (*ExponentialBuckets) XXX_Unmarshal ¶
func (m *ExponentialBuckets) XXX_Unmarshal(b []byte) error
Click to show internal directories.
Click to hide internal directories.