Documentation
¶
Index ¶
- Variables
- type Metrics
- type Usage
- func (*Usage) Descriptor() ([]byte, []int)deprecated
- func (x *Usage) GetId() string
- func (x *Usage) GetMetrics() *Metrics
- func (x *Usage) GetService() string
- func (x *Usage) GetTimestamp() uint64
- func (x *Usage) GetVersion() string
- func (x *Usage) GetWindow() uint64
- func (*Usage) ProtoMessage()
- func (x *Usage) ProtoReflect() protoreflect.Message
- func (x *Usage) Reset()
- func (x *Usage) String() string
Constants ¶
This section is empty.
Variables ¶
View Source
var File_usage_proto protoreflect.FileDescriptor
Functions ¶
This section is empty.
Types ¶
type Metrics ¶
type Metrics struct {
// counts such as requests, services, etc
Count map[string]uint64 `` /* 152-byte string literal not displayed */
// contains filtered or unexported fields
}
func (*Metrics) Descriptor
deprecated
func (*Metrics) ProtoMessage ¶
func (*Metrics) ProtoMessage()
func (*Metrics) ProtoReflect ¶
func (x *Metrics) ProtoReflect() protoreflect.Message
type Usage ¶
type Usage struct {
// service name
Service string `protobuf:"bytes,1,opt,name=service,proto3" json:"service,omitempty"`
// version of service
Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
// unique service id
Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"`
// unix timestamp of report
Timestamp uint64 `protobuf:"varint,4,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// window of report in seconds
Window uint64 `protobuf:"varint,5,opt,name=window,proto3" json:"window,omitempty"`
// usage metrics
Metrics *Metrics `protobuf:"bytes,6,opt,name=metrics,proto3" json:"metrics,omitempty"`
// contains filtered or unexported fields
}
func (*Usage) Descriptor
deprecated
func (*Usage) GetMetrics ¶
func (*Usage) GetService ¶
func (*Usage) GetTimestamp ¶
func (*Usage) GetVersion ¶
func (*Usage) ProtoMessage ¶
func (*Usage) ProtoMessage()
func (*Usage) ProtoReflect ¶
func (x *Usage) ProtoReflect() protoreflect.Message
Click to show internal directories.
Click to hide internal directories.