history

package
v1.6.0-1 Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2024 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 {
	locking.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

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