metricsv4

package
v0.18.14 Latest Latest
Warning

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

Go to latest
Published: Nov 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	MetricType_name = map[int32]string{
		0: "METRIC_TYPE_UNSPECIFIED",
		1: "METRIC_TYPE_COUNTER",
		2: "METRIC_TYPE_UP_DOWN_COUNTER",
		3: "METRIC_TYPE_HISTOGRAM",
	}
	MetricType_value = map[string]int32{
		"METRIC_TYPE_UNSPECIFIED":     0,
		"METRIC_TYPE_COUNTER":         1,
		"METRIC_TYPE_UP_DOWN_COUNTER": 2,
		"METRIC_TYPE_HISTOGRAM":       3,
	}
)

Enum value maps for MetricType.

View Source
var (
	MetricNamespace_name = map[int32]string{
		0: "METRIC_NAMESPACE_UNSPECIFIED",
		1: "METRIC_NAMESPACE_FEATURE",
		2: "METRIC_NAMESPACE_SYSTEM",
	}
	MetricNamespace_value = map[string]int32{
		"METRIC_NAMESPACE_UNSPECIFIED": 0,
		"METRIC_NAMESPACE_FEATURE":     1,
		"METRIC_NAMESPACE_SYSTEM":      2,
	}
)

Enum value maps for MetricNamespace.

View Source
var (
	MetricName_name = map[int32]string{
		0:  "METRIC_NAME_UNSPECIFIED",
		1:  "METRIC_NAME_DEFAULT_VALUES_USED",
		2:  "METRIC_NAME_GIVENS_VALUES_USED",
		3:  "METRIC_NAME_OFFLINE_STORE_VALUES_USED",
		4:  "METRIC_NAME_ONLINE_STORE_VALUES_USED",
		5:  "METRIC_NAME_RESOLVER_VALUES_USED",
		6:  "METRIC_NAME_NULL_COUNT",
		7:  "METRIC_NAME_NON_NULL_COUNT",
		8:  "METRIC_NAME_MISSING_COUNT",
		9:  "METRIC_NAME_ZERO_COUNT",
		10: "METRIC_NAME_VALUES_DISTRIBUTION",
		11: "METRIC_NAME_RESOLVER_LATENCY",
		12: "METRIC_NAME_BYTES_DOWNLOADED",
		13: "METRIC_NAME_NUM_ROWS",
		14: "METRIC_NAME_NUM_FEATURES",
	}
	MetricName_value = map[string]int32{
		"METRIC_NAME_UNSPECIFIED":               0,
		"METRIC_NAME_DEFAULT_VALUES_USED":       1,
		"METRIC_NAME_GIVENS_VALUES_USED":        2,
		"METRIC_NAME_OFFLINE_STORE_VALUES_USED": 3,
		"METRIC_NAME_ONLINE_STORE_VALUES_USED":  4,
		"METRIC_NAME_RESOLVER_VALUES_USED":      5,
		"METRIC_NAME_NULL_COUNT":                6,
		"METRIC_NAME_NON_NULL_COUNT":            7,
		"METRIC_NAME_MISSING_COUNT":             8,
		"METRIC_NAME_ZERO_COUNT":                9,
		"METRIC_NAME_VALUES_DISTRIBUTION":       10,
		"METRIC_NAME_RESOLVER_LATENCY":          11,
		"METRIC_NAME_BYTES_DOWNLOADED":          12,
		"METRIC_NAME_NUM_ROWS":                  13,
		"METRIC_NAME_NUM_FEATURES":              14,
	}
)

Enum value maps for MetricName.

View Source
var File_chalk_metrics_v4_metrics_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type Metric

type Metric struct {

	// optional because we may not have an id when we're doing the initial publish
	Id            *int64          `protobuf:"varint,1,opt,name=id,proto3,oneof" json:"id,omitempty"`
	EnvironmentId string          `protobuf:"bytes,2,opt,name=environment_id,json=environmentId,proto3" json:"environment_id,omitempty"`
	Namespace     MetricNamespace `protobuf:"varint,3,opt,name=namespace,proto3,enum=chalk.metrics.v4.MetricNamespace" json:"namespace,omitempty"`
	Source        string          `protobuf:"bytes,4,opt,name=source,proto3" json:"source,omitempty"`
	Name          MetricName      `protobuf:"varint,5,opt,name=name,proto3,enum=chalk.metrics.v4.MetricName" json:"name,omitempty"`
	Type          MetricType      `protobuf:"varint,6,opt,name=type,proto3,enum=chalk.metrics.v4.MetricType" json:"type,omitempty"`
	DeploymentId  string          `protobuf:"bytes,7,opt,name=deployment_id,json=deploymentId,proto3" json:"deployment_id,omitempty"`
	// values
	//
	// Types that are assignable to Value:
	//
	//	*Metric_Sketch
	//	*Metric_Numeric
	Value          isMetric_Value         `protobuf_oneof:"value"`
	Statistics     *MetricStatistics      `protobuf:"bytes,12,opt,name=statistics,proto3,oneof" json:"statistics,omitempty"`
	ObservedAt     *timestamppb.Timestamp `protobuf:"bytes,20,opt,name=observed_at,json=observedAt,proto3,oneof" json:"observed_at,omitempty"`
	AdditionalTags map[string]string      `` /* 192-byte string literal not displayed */
	// contains filtered or unexported fields
}

func (*Metric) Descriptor deprecated

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

Deprecated: Use Metric.ProtoReflect.Descriptor instead.

func (*Metric) GetAdditionalTags

func (x *Metric) GetAdditionalTags() map[string]string

func (*Metric) GetDeploymentId added in v0.17.10

func (x *Metric) GetDeploymentId() string

func (*Metric) GetEnvironmentId

func (x *Metric) GetEnvironmentId() string

func (*Metric) GetId

func (x *Metric) GetId() int64

func (*Metric) GetName

func (x *Metric) GetName() MetricName

func (*Metric) GetNamespace

func (x *Metric) GetNamespace() MetricNamespace

func (*Metric) GetNumeric

func (x *Metric) GetNumeric() float64

func (*Metric) GetObservedAt

func (x *Metric) GetObservedAt() *timestamppb.Timestamp

func (*Metric) GetSketch

func (x *Metric) GetSketch() string

func (*Metric) GetSource

func (x *Metric) GetSource() string

func (*Metric) GetStatistics

func (x *Metric) GetStatistics() *MetricStatistics

func (*Metric) GetType

func (x *Metric) GetType() MetricType

func (*Metric) GetValue

func (m *Metric) GetValue() isMetric_Value

func (*Metric) ProtoMessage

func (*Metric) ProtoMessage()

func (*Metric) ProtoReflect

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

func (*Metric) Reset

func (x *Metric) Reset()

func (*Metric) String

func (x *Metric) String() string

type MetricBatch added in v0.17.10

type MetricBatch struct {
	Metrics []*Metric `protobuf:"bytes,1,rep,name=metrics,proto3" json:"metrics,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricBatch) Descriptor deprecated added in v0.17.10

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

Deprecated: Use MetricBatch.ProtoReflect.Descriptor instead.

func (*MetricBatch) GetMetrics added in v0.17.10

func (x *MetricBatch) GetMetrics() []*Metric

func (*MetricBatch) ProtoMessage added in v0.17.10

func (*MetricBatch) ProtoMessage()

func (*MetricBatch) ProtoReflect added in v0.17.10

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

func (*MetricBatch) Reset added in v0.17.10

func (x *MetricBatch) Reset()

func (*MetricBatch) String added in v0.17.10

func (x *MetricBatch) String() string

type MetricName

type MetricName int32
const (
	MetricName_METRIC_NAME_UNSPECIFIED               MetricName = 0
	MetricName_METRIC_NAME_DEFAULT_VALUES_USED       MetricName = 1
	MetricName_METRIC_NAME_GIVENS_VALUES_USED        MetricName = 2
	MetricName_METRIC_NAME_OFFLINE_STORE_VALUES_USED MetricName = 3
	MetricName_METRIC_NAME_ONLINE_STORE_VALUES_USED  MetricName = 4
	MetricName_METRIC_NAME_RESOLVER_VALUES_USED      MetricName = 5
	MetricName_METRIC_NAME_NULL_COUNT                MetricName = 6
	MetricName_METRIC_NAME_NON_NULL_COUNT            MetricName = 7
	MetricName_METRIC_NAME_MISSING_COUNT             MetricName = 8
	MetricName_METRIC_NAME_ZERO_COUNT                MetricName = 9
	MetricName_METRIC_NAME_VALUES_DISTRIBUTION       MetricName = 10
	MetricName_METRIC_NAME_RESOLVER_LATENCY          MetricName = 11
	MetricName_METRIC_NAME_BYTES_DOWNLOADED          MetricName = 12
	MetricName_METRIC_NAME_NUM_ROWS                  MetricName = 13
	MetricName_METRIC_NAME_NUM_FEATURES              MetricName = 14
)

func (MetricName) Descriptor

func (MetricName) Descriptor() protoreflect.EnumDescriptor

func (MetricName) Enum

func (x MetricName) Enum() *MetricName

func (MetricName) EnumDescriptor deprecated

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

Deprecated: Use MetricName.Descriptor instead.

func (MetricName) Number

func (x MetricName) Number() protoreflect.EnumNumber

func (MetricName) String

func (x MetricName) String() string

func (MetricName) Type

type MetricNamespace

type MetricNamespace int32
const (
	MetricNamespace_METRIC_NAMESPACE_UNSPECIFIED MetricNamespace = 0
	MetricNamespace_METRIC_NAMESPACE_FEATURE     MetricNamespace = 1
	MetricNamespace_METRIC_NAMESPACE_SYSTEM      MetricNamespace = 2
)

func (MetricNamespace) Descriptor

func (MetricNamespace) Enum

func (x MetricNamespace) Enum() *MetricNamespace

func (MetricNamespace) EnumDescriptor deprecated

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

Deprecated: Use MetricNamespace.Descriptor instead.

func (MetricNamespace) Number

func (MetricNamespace) String

func (x MetricNamespace) String() string

func (MetricNamespace) Type

type MetricStatistics

type MetricStatistics struct {
	Min       *float64 `protobuf:"fixed64,1,opt,name=min,proto3,oneof" json:"min,omitempty"`
	Max       *float64 `protobuf:"fixed64,2,opt,name=max,proto3,oneof" json:"max,omitempty"`
	Count     *uint64  `protobuf:"varint,3,opt,name=count,proto3,oneof" json:"count,omitempty"`
	NullCount *uint64  `protobuf:"varint,4,opt,name=null_count,json=nullCount,proto3,oneof" json:"null_count,omitempty"`
	Mean      *float64 `protobuf:"fixed64,5,opt,name=mean,proto3,oneof" json:"mean,omitempty"`
	Variance  *float64 `protobuf:"fixed64,6,opt,name=variance,proto3,oneof" json:"variance,omitempty"`
	// contains filtered or unexported fields
}

func (*MetricStatistics) Descriptor deprecated

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

Deprecated: Use MetricStatistics.ProtoReflect.Descriptor instead.

func (*MetricStatistics) GetCount

func (x *MetricStatistics) GetCount() uint64

func (*MetricStatistics) GetMax

func (x *MetricStatistics) GetMax() float64

func (*MetricStatistics) GetMean

func (x *MetricStatistics) GetMean() float64

func (*MetricStatistics) GetMin

func (x *MetricStatistics) GetMin() float64

func (*MetricStatistics) GetNullCount

func (x *MetricStatistics) GetNullCount() uint64

func (*MetricStatistics) GetVariance

func (x *MetricStatistics) GetVariance() float64

func (*MetricStatistics) ProtoMessage

func (*MetricStatistics) ProtoMessage()

func (*MetricStatistics) ProtoReflect

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

func (*MetricStatistics) Reset

func (x *MetricStatistics) Reset()

func (*MetricStatistics) String

func (x *MetricStatistics) String() string

type MetricType

type MetricType int32
const (
	MetricType_METRIC_TYPE_UNSPECIFIED     MetricType = 0
	MetricType_METRIC_TYPE_COUNTER         MetricType = 1
	MetricType_METRIC_TYPE_UP_DOWN_COUNTER MetricType = 2
	MetricType_METRIC_TYPE_HISTOGRAM       MetricType = 3
)

func (MetricType) Descriptor

func (MetricType) Descriptor() protoreflect.EnumDescriptor

func (MetricType) Enum

func (x MetricType) Enum() *MetricType

func (MetricType) EnumDescriptor deprecated

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

Deprecated: Use MetricType.Descriptor instead.

func (MetricType) Number

func (x MetricType) Number() protoreflect.EnumNumber

func (MetricType) String

func (x MetricType) String() string

func (MetricType) Type

type Metric_Numeric

type Metric_Numeric struct {
	Numeric float64 `protobuf:"fixed64,11,opt,name=numeric,proto3,oneof"`
}

type Metric_Sketch

type Metric_Sketch struct {
	Sketch string `protobuf:"bytes,10,opt,name=sketch,proto3,oneof"`
}

Jump to

Keyboard shortcuts

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