Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Metric ¶
type Metric struct { Key string `json:"key" json:"key"` Desc string `json:"description" json:"description"` }
Metric string type to extend extra helper functions
var ( //MetricTopic is a static def for the Topic Label MetricTopic Metric = NewMetric("metric.topic") //MetricType is a static def for the Type Label MetricType Metric = NewMetric("metric.type") //MetricPartition is a static def for the Partition Label MetricPartition Metric = NewMetric("metric.partition") //KnownMetrics is a collection of all the available MetricLabels KnownMetrics []Metric = []Metric{ MetricTopic, MetricType, MetricPartition, } )
func (Metric) MarshalJSON ¶
type Resource ¶
Resource struct to represent a Resource Label
var ( //ResourceKafka is a static reference for a Kafka Cluster's ID ResourceKafka Resource = newResource("kafka.id") ResourceConnector Resource = newResource("connector.id") ResourceKSQL Resource = newResource("ksql.id") ResourceSchemaRegistry Resource = newResource("schema_registry.id") //KnownResources is a collection of known resource labels at this time KnownResources []Resource = []Resource{ ResourceKafka, ResourceConnector, ResourceKSQL, ResourceSchemaRegistry, } )
func (Resource) MarshalJSON ¶
Click to show internal directories.
Click to hide internal directories.