usage

package
v0.8.1 Latest Latest
Warning

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

Go to latest
Published: Jan 20, 2021 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthUsage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowUsage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupUsage = fmt.Errorf("proto: unexpected end of group")
)

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 */
}

func (*Metrics) Descriptor

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

func (*Metrics) GetCount

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

func (*Metrics) Marshal

func (m *Metrics) Marshal() (dAtA []byte, err error)

func (*Metrics) MarshalTo

func (m *Metrics) MarshalTo(dAtA []byte) (int, error)

func (*Metrics) MarshalToSizedBuffer

func (m *Metrics) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Metrics) ProtoMessage

func (*Metrics) ProtoMessage()

func (*Metrics) Reset

func (m *Metrics) Reset()

func (*Metrics) Size

func (m *Metrics) Size() (n int)

func (*Metrics) String

func (m *Metrics) String() string

func (*Metrics) Unmarshal

func (m *Metrics) Unmarshal(dAtA []byte) error

func (*Metrics) XXX_DiscardUnknown

func (m *Metrics) XXX_DiscardUnknown()

func (*Metrics) XXX_Marshal

func (m *Metrics) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Metrics) XXX_Merge

func (m *Metrics) XXX_Merge(src proto.Message)

func (*Metrics) XXX_Size

func (m *Metrics) XXX_Size() int

func (*Metrics) XXX_Unmarshal

func (m *Metrics) XXX_Unmarshal(b []byte) error

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"`
}

func (*Usage) Descriptor

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

func (*Usage) GetId

func (m *Usage) GetId() string

func (*Usage) GetMetrics

func (m *Usage) GetMetrics() *Metrics

func (*Usage) GetService

func (m *Usage) GetService() string

func (*Usage) GetTimestamp

func (m *Usage) GetTimestamp() uint64

func (*Usage) GetVersion

func (m *Usage) GetVersion() string

func (*Usage) GetWindow

func (m *Usage) GetWindow() uint64

func (*Usage) Marshal

func (m *Usage) Marshal() (dAtA []byte, err error)

func (*Usage) MarshalTo

func (m *Usage) MarshalTo(dAtA []byte) (int, error)

func (*Usage) MarshalToSizedBuffer

func (m *Usage) MarshalToSizedBuffer(dAtA []byte) (int, error)

func (*Usage) ProtoMessage

func (*Usage) ProtoMessage()

func (*Usage) Reset

func (m *Usage) Reset()

func (*Usage) Size

func (m *Usage) Size() (n int)

func (*Usage) String

func (m *Usage) String() string

func (*Usage) Unmarshal

func (m *Usage) Unmarshal(dAtA []byte) error

func (*Usage) XXX_DiscardUnknown

func (m *Usage) XXX_DiscardUnknown()

func (*Usage) XXX_Marshal

func (m *Usage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)

func (*Usage) XXX_Merge

func (m *Usage) XXX_Merge(src proto.Message)

func (*Usage) XXX_Size

func (m *Usage) XXX_Size() int

func (*Usage) XXX_Unmarshal

func (m *Usage) XXX_Unmarshal(b []byte) error

Jump to

Keyboard shortcuts

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