metricsv1

package
v2.1.1 Latest Latest
Warning

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

Go to latest
Published: Sep 12, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_ampy_metrics_v1_metrics_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Metric

type Metric struct {
	Name   string                 `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
	Labels map[string]string      `` /* 139-byte string literal not displayed */
	Value  float64                `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
	At     *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=at,proto3" json:"at,omitempty"`
	// contains filtered or unexported fields
}

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetAt

func (x *Metric) GetAt() *timestamppb.Timestamp

func (*Metric) GetLabels

func (x *Metric) GetLabels() map[string]string

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetValue

func (x *Metric) GetValue() float64

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

func (x *Metric) ProtoReflect() protoreflect.Message

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type MetricBatch

type MetricBatch struct {
	Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricBatch) Descriptor deprecated

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

Deprecated: Use MetricBatch.ProtoReflect.Descriptor instead.

func (*MetricBatch) GetMetrics

func (x *MetricBatch) GetMetrics() []*Metric

func (*MetricBatch) ProtoMessage

func (*MetricBatch) ProtoMessage()

func (*MetricBatch) ProtoReflect

func (x *MetricBatch) ProtoReflect() protoreflect.Message

func (*MetricBatch) Reset

func (x *MetricBatch) Reset()

func (*MetricBatch) String

func (x *MetricBatch) String() string

Jump to

Keyboard shortcuts

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