metric_endpoint

package module
v0.0.0-...-81f4724 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2020 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MetricEndpoint

func MetricEndpoint(
	servicePlansFetcher *service_plans_fetcher.ServicePlansFetcher,
	serviceMetricsFetcher ServiceMetricFetcher,
	logger lager.Logger,
) gin.HandlerFunc

Types

type Metric

type Metric struct {
	Name  string
	Value interface{}
	Time  *time.Time
	Tags  map[string]string
}

type ServiceMetricFetcher

type ServiceMetricFetcher interface {
	FetchMetrics(
		c *gin.Context,
		user authenticator.CFUser,
		serviceInstances []cfclient.ServiceInstance,
		servicePlans []cfclient.ServicePlan,
		service cfclient.Service,
	) ([]Metric, error)
}

Jump to

Keyboard shortcuts

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