publisher

package
v2.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2024 License: Apache-2.0 Imports: 9 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Dimension

type Dimension struct {
	Name  string
	Value string
}

Dimension holds dimension name and value.

type Metric

type Metric struct {
	Name   string
	Values MetricValues
}

Metric defines metric name and values.

type MetricSet

type MetricSet struct {
	Dimensions []Dimension
	Metrics    []Metric
}

MetricSet defines metrics and dimensions associated for metrics.

type MetricValues

type MetricValues = sample.Metric

MetricValues holds metric min, max, count, total values.

type Publisher

type Publisher struct {
	// contains filtered or unexported fields
}

Publisher is responsible for translation of internal tables to public structures and publishing process of metrics.

func New

func New(metricsChannel chan []*MetricSet, schema *schema.Schema) *Publisher

func (*Publisher) Publish

func (p *Publisher) Publish(ctx context.Context, lookups tables.LookupSet, priorityTable aggregator.PriorityTable) error

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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