report

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: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CalculateMetricsAggregates added in v0.8.1

func CalculateMetricsAggregates(metrics []types.ProcessedMetric) map[string]types.MetricAggregate

CalculateMetricsAggregates returns avg, min, max, P95, P99, and count per metric label. Percentiles use the nearest-rank method — see nearestRankIndex.

Types

type ReportService

type ReportService struct{}

func NewReportService

func NewReportService() *ReportService

func (*ReportService) FilterClusterMetrics

func (rs *ReportService) FilterClusterMetrics(processedState types.ProcessedState, clusterID string, sourceType string, startTime, endTime *time.Time) (*types.ProcessedClusterMetrics, error)

filterClusterMetrics filters the processed state by cluster ID and date range sourceType can be "msk", "osk", or "auto" (auto-detects based on identifier pattern)

func (*ReportService) FilterMetrics

func (rs *ReportService) FilterMetrics(processedState types.ProcessedState, regionName, clusterName string, startTime, endTime *time.Time) (*types.ProcessedClusterMetrics, error)

filterMetrics filters the processed state by region, cluster, and date range

func (*ReportService) FilterRegionCosts

func (rs *ReportService) FilterRegionCosts(processedState types.ProcessedState, regionName string, startTime, endTime *time.Time) (*types.ProcessedRegionCosts, error)

FilterRegionCosts filters the processed state to return cost data for a specific region

func (*ReportService) ProcessState

func (rs *ReportService) ProcessState(state types.State) types.ProcessedState

Jump to

Keyboard shortcuts

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