Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func NewServer ¶
func NewServer(logger lager.Logger, conf *config.Config, policyDB db.PolicyDB, credentials cred_helper.Credentials, allowedMetricCache cache.Cache, httpStatusCollector healthendpoint.HTTPStatusCollector, rateLimiter ratelimiter.Limiter) (ifrit.Runner, error)
Types ¶
type CustomMetricsHandler ¶
type CustomMetricsHandler struct {
// contains filtered or unexported fields
}
func NewCustomMetricsHandler ¶
func NewCustomMetricsHandler(logger lager.Logger, metricForwarder forwarder.MetricForwarder, policyDB db.PolicyDB, allowedMetricCache cache.Cache) *CustomMetricsHandler
func (*CustomMetricsHandler) PublishMetrics ¶
func (mh *CustomMetricsHandler) PublishMetrics(w http.ResponseWriter, r *http.Request, appID string) error
func (*CustomMetricsHandler) VerifyCredentialsAndPublishMetrics ¶
func (mh *CustomMetricsHandler) VerifyCredentialsAndPublishMetrics(w http.ResponseWriter, r *http.Request, vars map[string]string)
type Error ¶
type Error struct {
// contains filtered or unexported fields
}
func (*Error) GetMetricName ¶
type MetricError ¶
Click to show internal directories.
Click to hide internal directories.