metrics

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleAdminSubrouter

func HandleAdminSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

HandleAdminSubrouter includes the admin specific calls (put/get)

func HandleSubrouter

func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)

HandleSubrouter includes the tenant only specific calls (get only)

func ListMetrics

func ListMetrics(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListMetrics actually list monitoring metrics

func ListMetricsByReport

func ListMetricsByReport(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

ListMetricsByReport list all metrics available in the metric profile used by a report

func Options

func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

Options request handler

func UpdateMetrics

func UpdateMetrics(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)

Update request handler creates a new list of metrics

Types

type Metric

type Metric struct {
	Name string   `bson:"name" json:"name"`
	Tags []string `bson:"tags" json:"tags"`
}

Metric holds basic information about a metric profile and it's tags

Jump to

Keyboard shortcuts

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