pb

package
v1.4.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var File_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"`
	TimeUnixNano uint64 `protobuf:"fixed64,2,opt,name=timeUnixNano,proto3" json:"timeUnixNano,omitempty"`
	// Store trace and resource pointer
	Relations *pb.Relation `protobuf:"bytes,3,opt,name=relations,proto3" json:"relations,omitempty"`
	// Including label, attributes and resource
	Attributes map[string]string `` /* 161-byte string literal not displayed */
	// Multi data points
	// The data point can be the original value or the aggregated value
	DataPoints map[string]*structpb.Value `` /* 161-byte string literal not displayed */
	// contains filtered or unexported fields
}

The metrics data model

of the observability analysis platform.

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetAttributes

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

func (*Metric) GetDataPoints

func (x *Metric) GetDataPoints() map[string]*structpb.Value

func (*Metric) GetName

func (x *Metric) GetName() string

func (*Metric) GetRelations

func (x *Metric) GetRelations() *pb.Relation

func (*Metric) GetTimeUnixNano

func (x *Metric) GetTimeUnixNano() uint64

func (*Metric) MarshalJSON

func (m *Metric) MarshalJSON() ([]byte, error)

Metric implement json.Marshaler.

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

func (*Metric) UnmarshalJSON

func (m *Metric) UnmarshalJSON(b []byte) error

Metric implement json.Marshaler.

func (*Metric) UnmarshalURLValues

func (m *Metric) UnmarshalURLValues(prefix string, values url.Values) error

Metric implement urlenc.URLValuesUnmarshaler.

func (*Metric) Validate

func (this *Metric) Validate() error

Jump to

Keyboard shortcuts

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