usage

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Mar 14, 2025 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	RecordType_name = map[int32]string{
		0: "RECORD_TYPE_UNSPECIFIED",
		1: "RECORD_TYPE_ACTIONS",
		2: "RECORD_TYPE_ACTIVE_STORAGE",
		3: "RECORD_TYPE_RETAINED_STORAGE",
	}
	RecordType_value = map[string]int32{
		"RECORD_TYPE_UNSPECIFIED":      0,
		"RECORD_TYPE_ACTIONS":          1,
		"RECORD_TYPE_ACTIVE_STORAGE":   2,
		"RECORD_TYPE_RETAINED_STORAGE": 3,
	}
)

Enum value maps for RecordType.

View Source
var (
	RecordUnit_name = map[int32]string{
		0: "RECORD_UNIT_UNSPECIFIED",
		1: "RECORD_UNIT_NUMBER",
		2: "RECORD_UNIT_BYTE_SECONDS",
	}
	RecordUnit_value = map[string]int32{
		"RECORD_UNIT_UNSPECIFIED":  0,
		"RECORD_UNIT_NUMBER":       1,
		"RECORD_UNIT_BYTE_SECONDS": 2,
	}
)

Enum value maps for RecordUnit.

View Source
var (
	GroupByKey_name = map[int32]string{
		0: "GROUP_BY_KEY_UNSPECIFIED",
		1: "GROUP_BY_KEY_NAMESPACE",
	}
	GroupByKey_value = map[string]int32{
		"GROUP_BY_KEY_UNSPECIFIED": 0,
		"GROUP_BY_KEY_NAMESPACE":   1,
	}
)

Enum value maps for GroupByKey.

View Source
var File_temporal_api_cloud_usage_v1_message_proto protoreflect.FileDescriptor

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"`
	// contains filtered or unexported fields
}

func (*GroupBy) Descriptor deprecated

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

Deprecated: Use GroupBy.ProtoReflect.Descriptor instead.

func (*GroupBy) GetKey

func (x *GroupBy) GetKey() GroupByKey

func (*GroupBy) GetValue

func (x *GroupBy) GetValue() string

func (*GroupBy) ProtoMessage

func (*GroupBy) ProtoMessage()

func (*GroupBy) ProtoReflect

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

func (*GroupBy) Reset

func (x *GroupBy) Reset()

func (*GroupBy) String

func (x *GroupBy) String() string

type GroupByKey

type GroupByKey int32
const (
	GroupByKey_GROUP_BY_KEY_UNSPECIFIED GroupByKey = 0
	GroupByKey_GROUP_BY_KEY_NAMESPACE   GroupByKey = 1
)

func (GroupByKey) Descriptor

func (GroupByKey) Descriptor() protoreflect.EnumDescriptor

func (GroupByKey) Enum

func (x GroupByKey) Enum() *GroupByKey

func (GroupByKey) EnumDescriptor deprecated

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

Deprecated: Use GroupByKey.Descriptor instead.

func (GroupByKey) Number

func (x GroupByKey) Number() protoreflect.EnumNumber

func (GroupByKey) String

func (x GroupByKey) String() string

func (GroupByKey) Type

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"`
	// contains filtered or unexported fields
}

func (*Record) Descriptor deprecated

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

Deprecated: Use Record.ProtoReflect.Descriptor instead.

func (*Record) GetType

func (x *Record) GetType() RecordType

func (*Record) GetUnit

func (x *Record) GetUnit() RecordUnit

func (*Record) GetValue

func (x *Record) GetValue() float64

func (*Record) ProtoMessage

func (*Record) ProtoMessage()

func (*Record) ProtoReflect

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

func (*Record) Reset

func (x *Record) Reset()

func (*Record) String

func (x *Record) String() string

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"`
	// contains filtered or unexported fields
}

func (*RecordGroup) Descriptor deprecated

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

Deprecated: Use RecordGroup.ProtoReflect.Descriptor instead.

func (*RecordGroup) GetGroupBys

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

func (*RecordGroup) GetRecords

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

func (*RecordGroup) ProtoMessage

func (*RecordGroup) ProtoMessage()

func (*RecordGroup) ProtoReflect

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

func (*RecordGroup) Reset

func (x *RecordGroup) Reset()

func (*RecordGroup) String

func (x *RecordGroup) String() string

type RecordType

type RecordType int32
const (
	RecordType_RECORD_TYPE_UNSPECIFIED      RecordType = 0
	RecordType_RECORD_TYPE_ACTIONS          RecordType = 1
	RecordType_RECORD_TYPE_ACTIVE_STORAGE   RecordType = 2
	RecordType_RECORD_TYPE_RETAINED_STORAGE RecordType = 3
)

func (RecordType) Descriptor

func (RecordType) Descriptor() protoreflect.EnumDescriptor

func (RecordType) Enum

func (x RecordType) Enum() *RecordType

func (RecordType) EnumDescriptor deprecated

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

Deprecated: Use RecordType.Descriptor instead.

func (RecordType) Number

func (x RecordType) Number() protoreflect.EnumNumber

func (RecordType) String

func (x RecordType) String() string

func (RecordType) Type

type RecordUnit

type RecordUnit int32
const (
	RecordUnit_RECORD_UNIT_UNSPECIFIED  RecordUnit = 0
	RecordUnit_RECORD_UNIT_NUMBER       RecordUnit = 1
	RecordUnit_RECORD_UNIT_BYTE_SECONDS RecordUnit = 2
)

func (RecordUnit) Descriptor

func (RecordUnit) Descriptor() protoreflect.EnumDescriptor

func (RecordUnit) Enum

func (x RecordUnit) Enum() *RecordUnit

func (RecordUnit) EnumDescriptor deprecated

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

Deprecated: Use RecordUnit.Descriptor instead.

func (RecordUnit) Number

func (x RecordUnit) Number() protoreflect.EnumNumber

func (RecordUnit) String

func (x RecordUnit) String() string

func (RecordUnit) Type

type Summary

type Summary struct {

	// Start of UTC day for now (inclusive)
	StartTime *timestamppb.Timestamp `protobuf:"bytes,1,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"`
	// End of UTC day for now (exclusive)
	EndTime *timestamppb.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 for the given time range could still be added/updated in the future (until false)
	Incomplete bool `protobuf:"varint,4,opt,name=incomplete,proto3" json:"incomplete,omitempty"`
	// contains filtered or unexported fields
}

func (*Summary) Descriptor deprecated

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

Deprecated: Use Summary.ProtoReflect.Descriptor instead.

func (*Summary) GetEndTime

func (x *Summary) GetEndTime() *timestamppb.Timestamp

func (*Summary) GetIncomplete

func (x *Summary) GetIncomplete() bool

func (*Summary) GetRecordGroups

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

func (*Summary) GetStartTime

func (x *Summary) GetStartTime() *timestamppb.Timestamp

func (*Summary) ProtoMessage

func (*Summary) ProtoMessage()

func (*Summary) ProtoReflect

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

func (*Summary) Reset

func (x *Summary) Reset()

func (*Summary) String

func (x *Summary) String() string

Jump to

Keyboard shortcuts

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