metrics

package
v0.4.6-debug Latest Latest
Warning

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

Go to latest
Published: Nov 25, 2025 License: Apache-2.0 Imports: 11 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 {
	ClusterArns []string
	State       *types.State
	StartDate   *time.Time
	EndDate     *time.Time
}

type ReportService

type ReportService interface {
	ProcessState(state types.State) types.ProcessedState
	FilterClusterMetrics(processedState types.ProcessedState, clusterArn 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