Documentation ¶
Index ¶
- func ForClustersByProperty(ctx context.Context, property string) (*apicontracts.MetricsCustom, error)
- func GetForClusterid(ctx context.Context, clusterId string) (*apicontracts.MetricItem, error)
- func GetForClusters(ctx context.Context) (*apicontracts.MetricList, error)
- func GetForClustersByWorkspace(ctx context.Context, workspaceName string) (*apicontracts.MetricList, error)
- func GetForDatacenterName(ctx context.Context, datacenterName string) (*apicontracts.MetricItem, error)
- func GetForDatacenters(ctx context.Context) (*apicontracts.MetricList, error)
- func GetForWorkspaceName(ctx context.Context, workspaceName string) (*apicontracts.MetricItem, error)
- func GetForWorkspaces(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.Metric], error)
- func GetForWorkspacesByDatacenter(ctx context.Context, filter *apicontracts.Filter, datacenterName string) (*apicontracts.PaginatedResult[apicontracts.Metric], error)
- func GetTotal(ctx context.Context) (*apicontracts.MetricsTotal, error)
- func GetTotalByUser(ctx context.Context) (*apicontracts.MetricsTotal, error)
- func ProcessMetricReport(ctx context.Context, resourceUpdate *apicontracts.MetricsReport) error
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 GetForWorkspaces ¶
func GetForWorkspaces(ctx context.Context, filter *apicontracts.Filter) (*apicontracts.PaginatedResult[apicontracts.Metric], 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.
Click to show internal directories.
Click to hide internal directories.