metricsservice

package
v0.0.0-...-14e2bc2 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ForClustersByProperty

func ForClustersByProperty(ctx context.Context, property string) (*apicontracts.MetricsCustom, error)

func GetForClusterid

func GetForClusterid(ctx context.Context, clusterId string) (*apicontracts.MetricItem, error)

func GetForClusters

func GetForClusters(ctx context.Context) (*apicontracts.MetricList, error)

func GetForClustersByWorkspace

func GetForClustersByWorkspace(ctx context.Context, workspaceName string) (*apicontracts.MetricList, error)

func GetForDatacenterName

func GetForDatacenterName(ctx context.Context, datacenterName string) (*apicontracts.MetricItem, error)

func GetForDatacenters

func GetForDatacenters(ctx context.Context) (*apicontracts.MetricList, error)

func GetForWorkspaceName

func GetForWorkspaceName(ctx context.Context, workspaceName string) (*apicontracts.MetricItem, error)

func GetForWorkspacesByDatacenter

func GetForWorkspacesByDatacenter(ctx context.Context, filter *apicontracts.Filter, datacenterName string) (*apicontracts.PaginatedResult[apicontracts.Metric], error)

func GetTotal

func GetTotal(ctx context.Context) (*apicontracts.MetricsTotal, error)

func GetTotalByUser

func GetTotalByUser(ctx context.Context) (*apicontracts.MetricsTotal, error)

func ProcessMetricReport

func ProcessMetricReport(ctx context.Context, resourceUpdate *apicontracts.MetricsReport) error

Enriches metricsreports and calls metricsRepo.WriteMetrics to save the data to mongodb

Types

This section is empty.

Jump to

Keyboard shortcuts

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