Documentation ¶
Index ¶
- Variables
- type Metric
- func (*Metric) Descriptor() ([]byte, []int)deprecated
- func (x *Metric) GetAttributes() map[string]string
- func (x *Metric) GetDataPoints() map[string]*structpb.Value
- func (x *Metric) GetName() string
- func (x *Metric) GetRelations() *pb.Relation
- func (x *Metric) GetTimeUnixNano() uint64
- func (m *Metric) MarshalJSON() ([]byte, error)
- func (*Metric) ProtoMessage()
- func (x *Metric) ProtoReflect() protoreflect.Message
- func (x *Metric) Reset()
- func (x *Metric) String() string
- func (m *Metric) UnmarshalJSON(b []byte) error
- func (m *Metric) UnmarshalURLValues(prefix string, values url.Values) error
- func (this *Metric) Validate() error
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) GetAttributes ¶
func (*Metric) GetRelations ¶
func (*Metric) GetTimeUnixNano ¶
func (*Metric) MarshalJSON ¶
Metric implement json.Marshaler.
func (*Metric) ProtoMessage ¶
func (*Metric) ProtoMessage()
func (*Metric) ProtoReflect ¶
func (x *Metric) ProtoReflect() protoreflect.Message
func (*Metric) UnmarshalJSON ¶
Metric implement json.Marshaler.
func (*Metric) UnmarshalURLValues ¶
Metric implement urlenc.URLValuesUnmarshaler.
Click to show internal directories.
Click to hide internal directories.