usage

package
v0.55.0 Latest Latest
Warning

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

Go to latest
Published: Feb 17, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrInvalidLengthMessage        = fmt.Errorf("proto: negative length found during unmarshaling")
	ErrIntOverflowMessage          = fmt.Errorf("proto: integer overflow")
	ErrUnexpectedEndOfGroupMessage = fmt.Errorf("proto: unexpected end of group")
)
View Source
var GroupByKey_name = map[int32]string{
	0: "Unspecified",
	1: "Namespace",
}
View Source
var GroupByKey_value = map[string]int32{
	"Unspecified": 0,
	"Namespace":   1,
}
View Source
var RecordType_name = map[int32]string{
	0: "Unspecified",
	1: "Actions",
	2: "ActiveStorage",
	3: "RetainedStorage",
}
View Source
var RecordType_value = map[string]int32{
	"Unspecified":     0,
	"Actions":         1,
	"ActiveStorage":   2,
	"RetainedStorage": 3,
}
View Source
var RecordUnit_name = map[int32]string{
	0: "Unspecified",
	1: "Number",
	2: "ByteSeconds",
}
View Source
var RecordUnit_value = map[string]int32{
	"Unspecified": 0,
	"Number":      1,
	"ByteSeconds": 2,
}

Functions

This section is empty.

Types

type GroupBy

type GroupBy struct {
	Key   GroupByKey `protobuf:"varint,1,opt,name=key,proto3,enum=temporal.api.cloud.usage.v1.GroupByKey" json:"key,omitempty"`
	Value string     `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
}

func (*GroupBy) Descriptor

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

func (*GroupBy) Equal

func (this *GroupBy) Equal(that interface{}) bool

func (*GroupBy) GetKey

func (m *GroupBy) GetKey() GroupByKey

func (*GroupBy) GetValue

func (m *GroupBy) GetValue() string

func (*GroupBy) GoString

func (this *GroupBy) GoString() string

func (*GroupBy) Marshal

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

func (*GroupBy) MarshalTo

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

func (*GroupBy) MarshalToSizedBuffer

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

func (*GroupBy) ProtoMessage

func (*GroupBy) ProtoMessage()

func (*GroupBy) Reset

func (m *GroupBy) Reset()

func (*GroupBy) Size

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

func (*GroupBy) String

func (this *GroupBy) String() string

func (*GroupBy) Unmarshal

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

func (*GroupBy) XXX_DiscardUnknown

func (m *GroupBy) XXX_DiscardUnknown()

func (*GroupBy) XXX_Marshal

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

func (*GroupBy) XXX_Merge

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

func (*GroupBy) XXX_Size

func (m *GroupBy) XXX_Size() int

func (*GroupBy) XXX_Unmarshal

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

type GroupByKey

type GroupByKey int32
const (
	GROUP_BY_KEY_UNSPECIFIED GroupByKey = 0
	GROUP_BY_KEY_NAMESPACE   GroupByKey = 1
)

func (GroupByKey) EnumDescriptor

func (GroupByKey) EnumDescriptor() ([]byte, []int)

func (GroupByKey) String

func (x GroupByKey) String() string

type Record

type Record struct {
	Type  RecordType `protobuf:"varint,1,opt,name=type,proto3,enum=temporal.api.cloud.usage.v1.RecordType" json:"type,omitempty"`
	Unit  RecordUnit `protobuf:"varint,2,opt,name=unit,proto3,enum=temporal.api.cloud.usage.v1.RecordUnit" json:"unit,omitempty"`
	Value float64    `protobuf:"fixed64,3,opt,name=value,proto3" json:"value,omitempty"`
}

func (*Record) Descriptor

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

func (*Record) Equal

func (this *Record) Equal(that interface{}) bool

func (*Record) GetType

func (m *Record) GetType() RecordType

func (*Record) GetUnit

func (m *Record) GetUnit() RecordUnit

func (*Record) GetValue

func (m *Record) GetValue() float64

func (*Record) GoString

func (this *Record) GoString() string

func (*Record) Marshal

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

func (*Record) MarshalTo

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

func (*Record) MarshalToSizedBuffer

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

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) Reset

func (m *Record) Reset()

func (*Record) Size

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

func (*Record) String

func (this *Record) String() string

func (*Record) Unmarshal

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

func (*Record) XXX_DiscardUnknown

func (m *Record) XXX_DiscardUnknown()

func (*Record) XXX_Marshal

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

func (*Record) XXX_Merge

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

func (*Record) XXX_Size

func (m *Record) XXX_Size() int

func (*Record) XXX_Unmarshal

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

type RecordGroup

type RecordGroup struct {
	// GroupBy keys and their values for this record group. Multiple fields are combined with logical AND.
	GroupBys []*GroupBy `protobuf:"bytes,1,rep,name=group_bys,json=groupBys,proto3" json:"group_bys,omitempty"`
	Records  []*Record  `protobuf:"bytes,2,rep,name=records,proto3" json:"records,omitempty"`
}

func (*RecordGroup) Descriptor

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

func (*RecordGroup) Equal

func (this *RecordGroup) Equal(that interface{}) bool

func (*RecordGroup) GetGroupBys

func (m *RecordGroup) GetGroupBys() []*GroupBy

func (*RecordGroup) GetRecords

func (m *RecordGroup) GetRecords() []*Record

func (*RecordGroup) GoString

func (this *RecordGroup) GoString() string

func (*RecordGroup) Marshal

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

func (*RecordGroup) MarshalTo

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

func (*RecordGroup) MarshalToSizedBuffer

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

func (*RecordGroup) ProtoMessage

func (*RecordGroup) ProtoMessage()

func (*RecordGroup) Reset

func (m *RecordGroup) Reset()

func (*RecordGroup) Size

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

func (*RecordGroup) String

func (this *RecordGroup) String() string

func (*RecordGroup) Unmarshal

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

func (*RecordGroup) XXX_DiscardUnknown

func (m *RecordGroup) XXX_DiscardUnknown()

func (*RecordGroup) XXX_Marshal

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

func (*RecordGroup) XXX_Merge

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

func (*RecordGroup) XXX_Size

func (m *RecordGroup) XXX_Size() int

func (*RecordGroup) XXX_Unmarshal

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

type RecordType

type RecordType int32
const (
	RECORD_TYPE_UNSPECIFIED      RecordType = 0
	RECORD_TYPE_ACTIONS          RecordType = 1
	RECORD_TYPE_ACTIVE_STORAGE   RecordType = 2
	RECORD_TYPE_RETAINED_STORAGE RecordType = 3
)

func (RecordType) EnumDescriptor

func (RecordType) EnumDescriptor() ([]byte, []int)

func (RecordType) String

func (x RecordType) String() string

type RecordUnit

type RecordUnit int32
const (
	RECORD_UNIT_UNSPECIFIED  RecordUnit = 0
	RECORD_UNIT_NUMBER       RecordUnit = 1
	RECORD_UNIT_BYTE_SECONDS RecordUnit = 2
)

func (RecordUnit) EnumDescriptor

func (RecordUnit) EnumDescriptor() ([]byte, []int)

func (RecordUnit) String

func (x RecordUnit) String() string

type Summary

type Summary struct {
	// Start of UTC day for now (inclusive)
	StartTime *types.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End of UTC day for now (exclusive)
	EndTime *types.Timestamp `protobuf:"bytes,2,opt,name=end_time,json=endTime,proto3" json:"end_time,omitempty"`
	// Records grouped by namespace
	RecordGroups []*RecordGroup `protobuf:"bytes,3,rep,name=record_groups,json=recordGroups,proto3" json:"record_groups,omitempty"`
	// True if data for given time window is not fully available yet (e.g. delays)
	// When true, records could be added in the future (until false)
	Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"`
}

func (*Summary) Descriptor

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

func (*Summary) Equal

func (this *Summary) Equal(that interface{}) bool

func (*Summary) GetEndTime

func (m *Summary) GetEndTime() *types.Timestamp

func (*Summary) GetIncomplete

func (m *Summary) GetIncomplete() bool

func (*Summary) GetRecordGroups

func (m *Summary) GetRecordGroups() []*RecordGroup

func (*Summary) GetStartTime

func (m *Summary) GetStartTime() *types.Timestamp

func (*Summary) GoString

func (this *Summary) GoString() string

func (*Summary) Marshal

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

func (*Summary) MarshalTo

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

func (*Summary) MarshalToSizedBuffer

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

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) Reset

func (m *Summary) Reset()

func (*Summary) Size

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

func (*Summary) String

func (this *Summary) String() string

func (*Summary) Unmarshal

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

func (*Summary) XXX_DiscardUnknown

func (m *Summary) XXX_DiscardUnknown()

func (*Summary) XXX_Marshal

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

func (*Summary) XXX_Merge

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

func (*Summary) XXX_Size

func (m *Summary) XXX_Size() int

func (*Summary) XXX_Unmarshal

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

Jump to

Keyboard shortcuts

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