reconciler

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2021 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// KinesisChannelReadyCountN is the number of kinesis channels that have become ready.
	KinesisChannelReadyCountN = "kinesischannel_ready_count"
	// KinesisChannelReadyLatencyN is the time it takes for a kinesis channel to become ready since the resource is created.
	KinesisChannelReadyLatencyN = "kinesischannel_ready_latency"
)

Variables

View Source
var (
	KindToStatKeys = map[string]StatKey{
		"KinesisChannel": {
			ReadyCountKey:   KinesisChannelReadyCountN,
			ReadyLatencyKey: KinesisChannelReadyLatencyN,
		},
	}

	KindToMeasurements map[string]Measurements
)

Functions

This section is empty.

Types

type Measurement

type Measurement int

type Measurements

type Measurements struct {
	ReadyLatencyStat *stats.Int64Measure
	ReadyCountStat   *stats.Int64Measure
}

type StatKey

type StatKey struct {
	ReadyLatencyKey string
	ReadyCountKey   string
}

type StatsReporter

type StatsReporter interface {
	// ReportReady reports the time it took a resource to become Ready.
	ReportReady(kind, namespace, service string, d time.Duration) error
}

StatsReporter reports reconcilers' metrics.

func NewStatsReporter

func NewStatsReporter(reconciler string) (StatsReporter, error)

NewStatsReporter creates a reporter for reconcilers' metrics.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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