gogen

package
v5.0.72 Latest Latest
Warning

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

Go to latest
Published: Feb 16, 2023 License: BSD-3-Clause Imports: 6 Imported by: 3

Documentation

Overview

Package gogen is a generated protocol buffer package.

It is generated from these files:

proto/metrics/agent_payload.proto

It has these top-level messages:

CommonMetadata
MetricPayload
EventsPayload
SketchPayload

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthAgentPayload = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowAgentPayload   = fmt.Errorf("proto: integer overflow")
)
View Source
var MetricPayload_MetricType_name = map[int32]string{
	0: "UNSPECIFIED",
	1: "COUNT",
	2: "RATE",
	3: "GAUGE",
}
View Source
var MetricPayload_MetricType_value = map[string]int32{
	"UNSPECIFIED": 0,
	"COUNT":       1,
	"RATE":        2,
	"GAUGE":       3,
}

Functions

This section is empty.

Types

type CommonMetadata

type CommonMetadata struct {
	AgentVersion string  `protobuf:"bytes,1,opt,name=agent_version,json=agentVersion,proto3" json:"agent_version,omitempty"`
	Timezone     string  `protobuf:"bytes,2,opt,name=timezone,proto3" json:"timezone,omitempty"`
	CurrentEpoch float64 `protobuf:"fixed64,3,opt,name=current_epoch,json=currentEpoch,proto3" json:"current_epoch,omitempty"`
	InternalIp   string  `protobuf:"bytes,4,opt,name=internal_ip,json=internalIp,proto3" json:"internal_ip,omitempty"`
	PublicIp     string  `protobuf:"bytes,5,opt,name=public_ip,json=publicIp,proto3" json:"public_ip,omitempty"`
	ApiKey       string  `protobuf:"bytes,6,opt,name=api_key,json=apiKey,proto3" json:"api_key,omitempty"`
}

func (*CommonMetadata) Descriptor

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

func (*CommonMetadata) GetAgentVersion

func (m *CommonMetadata) GetAgentVersion() string

func (*CommonMetadata) GetApiKey

func (m *CommonMetadata) GetApiKey() string

func (*CommonMetadata) GetCurrentEpoch

func (m *CommonMetadata) GetCurrentEpoch() float64

func (*CommonMetadata) GetInternalIp

func (m *CommonMetadata) GetInternalIp() string

func (*CommonMetadata) GetPublicIp

func (m *CommonMetadata) GetPublicIp() string

func (*CommonMetadata) GetTimezone

func (m *CommonMetadata) GetTimezone() string

func (*CommonMetadata) Marshal

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

func (*CommonMetadata) MarshalTo

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

func (*CommonMetadata) ProtoMessage

func (*CommonMetadata) ProtoMessage()

func (*CommonMetadata) Reset

func (m *CommonMetadata) Reset()

func (*CommonMetadata) Size

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

func (*CommonMetadata) String

func (m *CommonMetadata) String() string

func (*CommonMetadata) Unmarshal

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

type EventsPayload

type EventsPayload struct {
	Events   []*EventsPayload_Event `protobuf:"bytes,1,rep,name=events" json:"events,omitempty"`
	Metadata *CommonMetadata        `protobuf:"bytes,2,opt,name=metadata" json:"metadata,omitempty"`
}

func (*EventsPayload) Descriptor

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

func (*EventsPayload) GetEvents

func (m *EventsPayload) GetEvents() []*EventsPayload_Event

func (*EventsPayload) GetMetadata

func (m *EventsPayload) GetMetadata() *CommonMetadata

func (*EventsPayload) Marshal

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

func (*EventsPayload) MarshalTo

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

func (*EventsPayload) ProtoMessage

func (*EventsPayload) ProtoMessage()

func (*EventsPayload) Reset

func (m *EventsPayload) Reset()

func (*EventsPayload) Size

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

func (*EventsPayload) String

func (m *EventsPayload) String() string

func (*EventsPayload) Unmarshal

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

type EventsPayload_Event

type EventsPayload_Event struct {
	Title          string   `protobuf:"bytes,1,opt,name=title,proto3" json:"title,omitempty"`
	Text           string   `protobuf:"bytes,2,opt,name=text,proto3" json:"text,omitempty"`
	Ts             int64    `protobuf:"varint,3,opt,name=ts,proto3" json:"ts,omitempty"`
	Priority       string   `protobuf:"bytes,4,opt,name=priority,proto3" json:"priority,omitempty"`
	Host           string   `protobuf:"bytes,5,opt,name=host,proto3" json:"host,omitempty"`
	Tags           []string `protobuf:"bytes,6,rep,name=tags" json:"tags,omitempty"`
	AlertType      string   `protobuf:"bytes,7,opt,name=alert_type,json=alertType,proto3" json:"alert_type,omitempty"`
	AggregationKey string   `protobuf:"bytes,8,opt,name=aggregation_key,json=aggregationKey,proto3" json:"aggregation_key,omitempty"`
	SourceTypeName string   `protobuf:"bytes,9,opt,name=source_type_name,json=sourceTypeName,proto3" json:"source_type_name,omitempty"`
}

func (*EventsPayload_Event) Descriptor

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

func (*EventsPayload_Event) GetAggregationKey

func (m *EventsPayload_Event) GetAggregationKey() string

func (*EventsPayload_Event) GetAlertType

func (m *EventsPayload_Event) GetAlertType() string

func (*EventsPayload_Event) GetHost

func (m *EventsPayload_Event) GetHost() string

func (*EventsPayload_Event) GetPriority

func (m *EventsPayload_Event) GetPriority() string

func (*EventsPayload_Event) GetSourceTypeName

func (m *EventsPayload_Event) GetSourceTypeName() string

func (*EventsPayload_Event) GetTags

func (m *EventsPayload_Event) GetTags() []string

func (*EventsPayload_Event) GetText

func (m *EventsPayload_Event) GetText() string

func (*EventsPayload_Event) GetTitle

func (m *EventsPayload_Event) GetTitle() string

func (*EventsPayload_Event) GetTs

func (m *EventsPayload_Event) GetTs() int64

func (*EventsPayload_Event) Marshal

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

func (*EventsPayload_Event) MarshalTo

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

func (*EventsPayload_Event) ProtoMessage

func (*EventsPayload_Event) ProtoMessage()

func (*EventsPayload_Event) Reset

func (m *EventsPayload_Event) Reset()

func (*EventsPayload_Event) Size

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

func (*EventsPayload_Event) String

func (m *EventsPayload_Event) String() string

func (*EventsPayload_Event) Unmarshal

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

type MetricPayload

type MetricPayload struct {
	Series []*MetricPayload_MetricSeries `protobuf:"bytes,1,rep,name=series" json:"series,omitempty"`
}

func (*MetricPayload) Descriptor

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

func (*MetricPayload) GetSeries

func (m *MetricPayload) GetSeries() []*MetricPayload_MetricSeries

func (*MetricPayload) Marshal

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

func (*MetricPayload) MarshalTo

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

func (*MetricPayload) ProtoMessage

func (*MetricPayload) ProtoMessage()

func (*MetricPayload) Reset

func (m *MetricPayload) Reset()

func (*MetricPayload) Size

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

func (*MetricPayload) String

func (m *MetricPayload) String() string

func (*MetricPayload) Unmarshal

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

type MetricPayload_MetricPoint

type MetricPayload_MetricPoint struct {
	// metric value
	Value float64 `protobuf:"fixed64,1,opt,name=value,proto3" json:"value,omitempty"`
	// timestamp for this value in seconds since the UNIX epoch
	Timestamp int64 `protobuf:"varint,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
}

func (*MetricPayload_MetricPoint) Descriptor

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

func (*MetricPayload_MetricPoint) GetTimestamp

func (m *MetricPayload_MetricPoint) GetTimestamp() int64

func (*MetricPayload_MetricPoint) GetValue

func (m *MetricPayload_MetricPoint) GetValue() float64

func (*MetricPayload_MetricPoint) Marshal

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

func (*MetricPayload_MetricPoint) MarshalTo

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

func (*MetricPayload_MetricPoint) ProtoMessage

func (*MetricPayload_MetricPoint) ProtoMessage()

func (*MetricPayload_MetricPoint) Reset

func (m *MetricPayload_MetricPoint) Reset()

func (*MetricPayload_MetricPoint) Size

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

func (*MetricPayload_MetricPoint) String

func (m *MetricPayload_MetricPoint) String() string

func (*MetricPayload_MetricPoint) Unmarshal

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

type MetricPayload_MetricSeries

type MetricPayload_MetricSeries struct {
	// Resources this series applies to; include at least
	// { type="host", name=<hostname> }
	Resources []*MetricPayload_Resource `protobuf:"bytes,1,rep,name=resources" json:"resources,omitempty"`
	// metric name
	Metric string `protobuf:"bytes,2,opt,name=metric,proto3" json:"metric,omitempty"`
	// tags for this metric
	Tags []string `protobuf:"bytes,3,rep,name=tags" json:"tags,omitempty"`
	// data points for this metric
	Points []*MetricPayload_MetricPoint `protobuf:"bytes,4,rep,name=points" json:"points,omitempty"`
	// type of metric
	Type MetricPayload_MetricType `protobuf:"varint,5,opt,name=type,proto3,enum=datadog.agentpayload.MetricPayload_MetricType" json:"type,omitempty"`
	// metric unit name
	Unit string `protobuf:"bytes,6,opt,name=unit,proto3" json:"unit,omitempty"`
	// source of this metric (check name, etc.)
	SourceTypeName string `protobuf:"bytes,7,opt,name=source_type_name,json=sourceTypeName,proto3" json:"source_type_name,omitempty"`
	// interval, in seconds, between samples of this metric
	Interval int64 `protobuf:"varint,8,opt,name=interval,proto3" json:"interval,omitempty"`
}

func (*MetricPayload_MetricSeries) Descriptor

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

func (*MetricPayload_MetricSeries) GetInterval

func (m *MetricPayload_MetricSeries) GetInterval() int64

func (*MetricPayload_MetricSeries) GetMetric

func (m *MetricPayload_MetricSeries) GetMetric() string

func (*MetricPayload_MetricSeries) GetPoints

func (*MetricPayload_MetricSeries) GetResources

func (*MetricPayload_MetricSeries) GetSourceTypeName

func (m *MetricPayload_MetricSeries) GetSourceTypeName() string

func (*MetricPayload_MetricSeries) GetTags

func (m *MetricPayload_MetricSeries) GetTags() []string

func (*MetricPayload_MetricSeries) GetType

func (*MetricPayload_MetricSeries) GetUnit

func (m *MetricPayload_MetricSeries) GetUnit() string

func (*MetricPayload_MetricSeries) Marshal

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

func (*MetricPayload_MetricSeries) MarshalTo

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

func (*MetricPayload_MetricSeries) ProtoMessage

func (*MetricPayload_MetricSeries) ProtoMessage()

func (*MetricPayload_MetricSeries) Reset

func (m *MetricPayload_MetricSeries) Reset()

func (*MetricPayload_MetricSeries) Size

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

func (*MetricPayload_MetricSeries) String

func (m *MetricPayload_MetricSeries) String() string

func (*MetricPayload_MetricSeries) Unmarshal

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

type MetricPayload_MetricType

type MetricPayload_MetricType int32
const (
	MetricPayload_UNSPECIFIED MetricPayload_MetricType = 0
	MetricPayload_COUNT       MetricPayload_MetricType = 1
	MetricPayload_RATE        MetricPayload_MetricType = 2
	MetricPayload_GAUGE       MetricPayload_MetricType = 3
)

func (MetricPayload_MetricType) EnumDescriptor

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

func (MetricPayload_MetricType) String

func (x MetricPayload_MetricType) String() string

type MetricPayload_Resource

type MetricPayload_Resource struct {
	Type string `protobuf:"bytes,1,opt,name=type,proto3" json:"type,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
}

func (*MetricPayload_Resource) Descriptor

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

func (*MetricPayload_Resource) GetName

func (m *MetricPayload_Resource) GetName() string

func (*MetricPayload_Resource) GetType

func (m *MetricPayload_Resource) GetType() string

func (*MetricPayload_Resource) Marshal

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

func (*MetricPayload_Resource) MarshalTo

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

func (*MetricPayload_Resource) ProtoMessage

func (*MetricPayload_Resource) ProtoMessage()

func (*MetricPayload_Resource) Reset

func (m *MetricPayload_Resource) Reset()

func (*MetricPayload_Resource) Size

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

func (*MetricPayload_Resource) String

func (m *MetricPayload_Resource) String() string

func (*MetricPayload_Resource) Unmarshal

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

type SketchPayload

type SketchPayload struct {
	Sketches []SketchPayload_Sketch `protobuf:"bytes,1,rep,name=sketches" json:"sketches"`
	Metadata CommonMetadata         `protobuf:"bytes,2,opt,name=metadata" json:"metadata"`
}

func (*SketchPayload) Descriptor

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

func (*SketchPayload) GetMetadata

func (m *SketchPayload) GetMetadata() CommonMetadata

func (*SketchPayload) GetSketches

func (m *SketchPayload) GetSketches() []SketchPayload_Sketch

func (*SketchPayload) Marshal

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

func (*SketchPayload) MarshalTo

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

func (*SketchPayload) ProtoMessage

func (*SketchPayload) ProtoMessage()

func (*SketchPayload) Reset

func (m *SketchPayload) Reset()

func (*SketchPayload) Size

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

func (*SketchPayload) String

func (m *SketchPayload) String() string

func (*SketchPayload) Unmarshal

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

type SketchPayload_Sketch

type SketchPayload_Sketch struct {
	Metric        string                              `protobuf:"bytes,1,opt,name=metric,proto3" json:"metric,omitempty"`
	Host          string                              `protobuf:"bytes,2,opt,name=host,proto3" json:"host,omitempty"`
	Distributions []SketchPayload_Sketch_Distribution `protobuf:"bytes,3,rep,name=distributions" json:"distributions"`
	Tags          []string                            `protobuf:"bytes,4,rep,name=tags" json:"tags,omitempty"`
	Dogsketches   []SketchPayload_Sketch_Dogsketch    `protobuf:"bytes,7,rep,name=dogsketches" json:"dogsketches"`
}

func (*SketchPayload_Sketch) Descriptor

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

func (*SketchPayload_Sketch) GetDistributions

func (*SketchPayload_Sketch) GetDogsketches

func (*SketchPayload_Sketch) GetHost

func (m *SketchPayload_Sketch) GetHost() string

func (*SketchPayload_Sketch) GetMetric

func (m *SketchPayload_Sketch) GetMetric() string

func (*SketchPayload_Sketch) GetTags

func (m *SketchPayload_Sketch) GetTags() []string

func (*SketchPayload_Sketch) Marshal

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

func (*SketchPayload_Sketch) MarshalTo

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

func (*SketchPayload_Sketch) ProtoMessage

func (*SketchPayload_Sketch) ProtoMessage()

func (*SketchPayload_Sketch) Reset

func (m *SketchPayload_Sketch) Reset()

func (*SketchPayload_Sketch) Size

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

func (*SketchPayload_Sketch) String

func (m *SketchPayload_Sketch) String() string

func (*SketchPayload_Sketch) Unmarshal

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

type SketchPayload_Sketch_Distribution

type SketchPayload_Sketch_Distribution struct {
	Ts    int64     `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Cnt   int64     `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"`
	Min   float64   `protobuf:"fixed64,3,opt,name=min,proto3" json:"min,omitempty"`
	Max   float64   `protobuf:"fixed64,4,opt,name=max,proto3" json:"max,omitempty"`
	Avg   float64   `protobuf:"fixed64,5,opt,name=avg,proto3" json:"avg,omitempty"`
	Sum   float64   `protobuf:"fixed64,6,opt,name=sum,proto3" json:"sum,omitempty"`
	V     []float64 `protobuf:"fixed64,7,rep,packed,name=v" json:"v,omitempty"`
	G     []uint32  `protobuf:"varint,8,rep,packed,name=g" json:"g,omitempty"`
	Delta []uint32  `protobuf:"varint,9,rep,packed,name=delta" json:"delta,omitempty"`
	Buf   []float64 `protobuf:"fixed64,10,rep,packed,name=buf" json:"buf,omitempty"`
}

func (*SketchPayload_Sketch_Distribution) Descriptor

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

func (*SketchPayload_Sketch_Distribution) GetAvg

func (*SketchPayload_Sketch_Distribution) GetBuf

func (*SketchPayload_Sketch_Distribution) GetCnt

func (*SketchPayload_Sketch_Distribution) GetDelta

func (m *SketchPayload_Sketch_Distribution) GetDelta() []uint32

func (*SketchPayload_Sketch_Distribution) GetG

func (*SketchPayload_Sketch_Distribution) GetMax

func (*SketchPayload_Sketch_Distribution) GetMin

func (*SketchPayload_Sketch_Distribution) GetSum

func (*SketchPayload_Sketch_Distribution) GetTs

func (*SketchPayload_Sketch_Distribution) GetV

func (*SketchPayload_Sketch_Distribution) Marshal

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

func (*SketchPayload_Sketch_Distribution) MarshalTo

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

func (*SketchPayload_Sketch_Distribution) ProtoMessage

func (*SketchPayload_Sketch_Distribution) ProtoMessage()

func (*SketchPayload_Sketch_Distribution) Reset

func (*SketchPayload_Sketch_Distribution) Size

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

func (*SketchPayload_Sketch_Distribution) String

func (*SketchPayload_Sketch_Distribution) Unmarshal

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

type SketchPayload_Sketch_Dogsketch

type SketchPayload_Sketch_Dogsketch struct {
	Ts  int64    `protobuf:"varint,1,opt,name=ts,proto3" json:"ts,omitempty"`
	Cnt int64    `protobuf:"varint,2,opt,name=cnt,proto3" json:"cnt,omitempty"`
	Min float64  `protobuf:"fixed64,3,opt,name=min,proto3" json:"min,omitempty"`
	Max float64  `protobuf:"fixed64,4,opt,name=max,proto3" json:"max,omitempty"`
	Avg float64  `protobuf:"fixed64,5,opt,name=avg,proto3" json:"avg,omitempty"`
	Sum float64  `protobuf:"fixed64,6,opt,name=sum,proto3" json:"sum,omitempty"`
	K   []int32  `protobuf:"zigzag32,7,rep,packed,name=k" json:"k,omitempty"`
	N   []uint32 `protobuf:"varint,8,rep,packed,name=n" json:"n,omitempty"`
}

func (*SketchPayload_Sketch_Dogsketch) Descriptor

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

func (*SketchPayload_Sketch_Dogsketch) GetAvg

func (*SketchPayload_Sketch_Dogsketch) GetCnt

func (*SketchPayload_Sketch_Dogsketch) GetK

func (*SketchPayload_Sketch_Dogsketch) GetMax

func (*SketchPayload_Sketch_Dogsketch) GetMin

func (*SketchPayload_Sketch_Dogsketch) GetN

func (*SketchPayload_Sketch_Dogsketch) GetSum

func (*SketchPayload_Sketch_Dogsketch) GetTs

func (*SketchPayload_Sketch_Dogsketch) Marshal

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

func (*SketchPayload_Sketch_Dogsketch) MarshalTo

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

func (*SketchPayload_Sketch_Dogsketch) ProtoMessage

func (*SketchPayload_Sketch_Dogsketch) ProtoMessage()

func (*SketchPayload_Sketch_Dogsketch) Reset

func (m *SketchPayload_Sketch_Dogsketch) Reset()

func (*SketchPayload_Sketch_Dogsketch) Size

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

func (*SketchPayload_Sketch_Dogsketch) String

func (*SketchPayload_Sketch_Dogsketch) Unmarshal

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

Jump to

Keyboard shortcuts

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