annotation

package
Version: v1.5.0 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2022 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 GraphiteType_name = map[int32]string{
	0: "GRAPHITE_UNKNOWN",
	1: "GRAPHITE_COUNTER",
	2: "GRAPHITE_GAUGE",
	3: "GRAPHITE_TIMER",
}
View Source
var GraphiteType_value = map[string]int32{
	"GRAPHITE_UNKNOWN": 0,
	"GRAPHITE_COUNTER": 1,
	"GRAPHITE_GAUGE":   2,
	"GRAPHITE_TIMER":   3,
}
View Source
var OpenMetricsFamilyType_name = map[int32]string{
	0: "UNKNOWN",
	1: "COUNTER",
	2: "GAUGE",
	3: "HISTOGRAM",
	4: "GAUGE_HISTOGRAM",
	5: "SUMMARY",
	6: "INFO",
	7: "STATESET",
}
View Source
var OpenMetricsFamilyType_value = map[string]int32{
	"UNKNOWN":         0,
	"COUNTER":         1,
	"GAUGE":           2,
	"HISTOGRAM":       3,
	"GAUGE_HISTOGRAM": 4,
	"SUMMARY":         5,
	"INFO":            6,
	"STATESET":        7,
}
View Source
var SourceFormat_name = map[int32]string{
	0: "OPEN_METRICS",
	1: "GRAPHITE",
}
View Source
var SourceFormat_value = map[string]int32{
	"OPEN_METRICS": 0,
	"GRAPHITE":     1,
}

Functions

This section is empty.

Types

type GraphiteType added in v1.4.2

type GraphiteType int32
const (
	GraphiteType_GRAPHITE_UNKNOWN GraphiteType = 0
	GraphiteType_GRAPHITE_COUNTER GraphiteType = 1
	GraphiteType_GRAPHITE_GAUGE   GraphiteType = 2
	GraphiteType_GRAPHITE_TIMER   GraphiteType = 3
)

func (GraphiteType) EnumDescriptor added in v1.4.2

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

func (GraphiteType) String added in v1.4.2

func (x GraphiteType) String() string

type OpenMetricsFamilyType added in v1.4.2

type OpenMetricsFamilyType int32
const (
	OpenMetricsFamilyType_UNKNOWN         OpenMetricsFamilyType = 0
	OpenMetricsFamilyType_COUNTER         OpenMetricsFamilyType = 1
	OpenMetricsFamilyType_GAUGE           OpenMetricsFamilyType = 2
	OpenMetricsFamilyType_HISTOGRAM       OpenMetricsFamilyType = 3
	OpenMetricsFamilyType_GAUGE_HISTOGRAM OpenMetricsFamilyType = 4
	OpenMetricsFamilyType_SUMMARY         OpenMetricsFamilyType = 5
	OpenMetricsFamilyType_INFO            OpenMetricsFamilyType = 6
	OpenMetricsFamilyType_STATESET        OpenMetricsFamilyType = 7
)

func (OpenMetricsFamilyType) EnumDescriptor added in v1.4.2

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

func (OpenMetricsFamilyType) String added in v1.4.2

func (x OpenMetricsFamilyType) String() string

type Payload

type Payload struct {
	SourceFormat SourceFormat `` /* 127-byte string literal not displayed */
	// Used when source_format == OPEN_METRICS
	OpenMetricsFamilyType        OpenMetricsFamilyType `` /* 167-byte string literal not displayed */
	OpenMetricsHandleValueResets bool                  `` /* 152-byte string literal not displayed */
	// Used when source_format == GRAPHITE
	GraphiteType GraphiteType `` /* 127-byte string literal not displayed */
}

func (*Payload) Descriptor

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

func (*Payload) GetGraphiteType added in v1.4.2

func (m *Payload) GetGraphiteType() GraphiteType

func (*Payload) GetOpenMetricsFamilyType added in v1.4.2

func (m *Payload) GetOpenMetricsFamilyType() OpenMetricsFamilyType

func (*Payload) GetOpenMetricsHandleValueResets added in v1.4.2

func (m *Payload) GetOpenMetricsHandleValueResets() bool

func (*Payload) GetSourceFormat added in v1.4.2

func (m *Payload) GetSourceFormat() SourceFormat

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

type SourceFormat added in v1.4.2

type SourceFormat int32
const (
	// OPEN_METRICS also includes Prometheus data.
	// Using 0 for OPEN_METRICS because only Prometheus types were being stored before.
	SourceFormat_OPEN_METRICS SourceFormat = 0
	// Graphite/statsd.
	SourceFormat_GRAPHITE SourceFormat = 1
)

func (SourceFormat) EnumDescriptor added in v1.4.2

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

func (SourceFormat) String added in v1.4.2

func (x SourceFormat) String() string

Jump to

Keyboard shortcuts

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