history

package
v0.12.2 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2022 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type InternalMetricsHistory

type InternalMetricsHistory struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

This class collects basic information about the cluster for the web UI's front page. For more detailed metrics collection use Prometheus.

func NewInternalMetricsHistory

func NewInternalMetricsHistory(limit int) *InternalMetricsHistory

func (*InternalMetricsHistory) GetLimit

func (h *InternalMetricsHistory) GetLimit() int

func (*InternalMetricsHistory) GetRecords

func (h *InternalMetricsHistory) GetRecords() []*MetricsRecord

contract: the non-nil values are ordered by the time of addition may contains nil values, those should be handled (filtered) on the caller's side

func (*InternalMetricsHistory) Store

func (h *InternalMetricsHistory) Store(totalApplications, totalContainers int)

type MetricsRecord added in v0.12.0

type MetricsRecord struct {
	Timestamp         time.Time
	TotalApplications int
	TotalContainers   int
}

Jump to

Keyboard shortcuts

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