annotation

package
v1.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 21, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package annotation is a generated protocol buffer package.

It is generated from these files:

github.com/m3db/m3/src/dbnode/generated/proto/annotation/annotation.proto

It has these top-level messages:

Payload

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAnnotation = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAnnotation   = fmt.Errorf("proto: integer overflow")
)
View Source
var MetricType_name = map[int32]string{
	0: "UNKNOWN",
	1: "COUNTER",
	2: "GAUGE",
	3: "HISTOGRAM",
	4: "GAUGE_HISTOGRAM",
	5: "SUMMARY",
	6: "INFO",
	7: "STATESET",
}
View Source
var MetricType_value = map[string]int32{
	"UNKNOWN":         0,
	"COUNTER":         1,
	"GAUGE":           2,
	"HISTOGRAM":       3,
	"GAUGE_HISTOGRAM": 4,
	"SUMMARY":         5,
	"INFO":            6,
	"STATESET":        7,
}

Functions

This section is empty.

Types

type MetricType

type MetricType int32
const (
	MetricType_UNKNOWN         MetricType = 0
	MetricType_COUNTER         MetricType = 1
	MetricType_GAUGE           MetricType = 2
	MetricType_HISTOGRAM       MetricType = 3
	MetricType_GAUGE_HISTOGRAM MetricType = 4
	MetricType_SUMMARY         MetricType = 5
	MetricType_INFO            MetricType = 6
	MetricType_STATESET        MetricType = 7
)

func (MetricType) EnumDescriptor

func (MetricType) EnumDescriptor() ([]byte, []int)

func (MetricType) String

func (x MetricType) String() string

type Payload

type Payload struct {
	MetricType        MetricType `protobuf:"varint,1,opt,name=metric_type,json=metricType,proto3,enum=annotation.MetricType" json:"metric_type,omitempty"`
	HandleValueResets bool       `protobuf:"varint,2,opt,name=handle_value_resets,json=handleValueResets,proto3" json:"handle_value_resets,omitempty"`
}

func (*Payload) Descriptor

func (*Payload) Descriptor() ([]byte, []int)

func (*Payload) GetHandleValueResets

func (m *Payload) GetHandleValueResets() bool

func (*Payload) GetMetricType

func (m *Payload) GetMetricType() MetricType

func (*Payload) Marshal

func (m *Payload) Marshal() (dAtA []byte, err error)

func (*Payload) MarshalTo

func (m *Payload) MarshalTo(dAtA []byte) (int, error)

func (*Payload) ProtoMessage

func (*Payload) ProtoMessage()

func (*Payload) Reset

func (m *Payload) Reset()

func (*Payload) Size

func (m *Payload) Size() (n int)

func (*Payload) String

func (m *Payload) String() string

func (*Payload) Unmarshal

func (m *Payload) Unmarshal(dAtA []byte) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL