usage

package
v3.10.13 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

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) Descriptor() ([]byte, []int)

Deprecated: Use Metrics.ProtoReflect.Descriptor instead.

func (*Metrics) GetCount

func (x *Metrics) GetCount() map[string]uint64

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) ProtoReflect

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

func (*Metrics) Reset

func (x *Metrics) Reset()

func (*Metrics) String

func (x *Metrics) String() string

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) Descriptor() ([]byte, []int)

Deprecated: Use Usage.ProtoReflect.Descriptor instead.

func (*Usage) GetId

func (x *Usage) GetId() string

func (*Usage) GetMetrics

func (x *Usage) GetMetrics() *Metrics

func (*Usage) GetService

func (x *Usage) GetService() string

func (*Usage) GetTimestamp

func (x *Usage) GetTimestamp() uint64

func (*Usage) GetVersion

func (x *Usage) GetVersion() string

func (*Usage) GetWindow

func (x *Usage) GetWindow() uint64

func (*Usage) ProtoMessage

func (*Usage) ProtoMessage()

func (*Usage) ProtoReflect

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

func (*Usage) Reset

func (x *Usage) Reset()

func (*Usage) String

func (x *Usage) String() string

Jump to

Keyboard shortcuts

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