metrics

package
v0.8.2 Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2026 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewReportMetricsCmd

func NewReportMetricsCmd() *cobra.Command

Types

type MetricReporter

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

func NewMetricReporter

func NewMetricReporter(reportService ReportService, opts MetricReporterOpts) *MetricReporter

func (*MetricReporter) Run

func (r *MetricReporter) Run() error

type MetricReporterOpts

type MetricReporterOpts struct {
	ClusterIds []string
	State      *types.State
	StartDate  *time.Time
	EndDate    *time.Time
	SourceType string
}

type ReportService

type ReportService interface {
	ProcessState(state types.State) types.ProcessedState
	FilterClusterMetrics(processedState types.ProcessedState, clusterArn string, sourceType string, startTime, endTime *time.Time) (*types.ProcessedClusterMetrics, error)
}

Jump to

Keyboard shortcuts

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