latest

package
v1.14.3 Latest Latest
Warning

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

Go to latest
Published: Mar 26, 2026 License: Apache-2.0, Apache-2.0 Imports: 17 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleSubrouter

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

HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter

func ListLatestResults

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

GetMetricResult returns the detailed message from a probe

func Options

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

Options implements the option request on resource

Types

type MetricData

type MetricData struct {
	Group     string `bson:"endpoint_group" json:"endpoint_group"`
	Service   string `bson:"service" json:"service"`
	Hostname  string `bson:"host" json:"endpoint"`
	Metric    string `bson:"metric" json:"metric"`
	Timestamp string `bson:"timestamp" json:"timestamp"`
	Status    string `bson:"status" json:"status"`
	Summary   string `bson:"summary" json:"summary,omitempty"`
	Message   string `bson:"message" json:"message,omitempty"`
}

MetricData is a struct representing a metric data record

type MetricList

type MetricList struct {
	MetricData []MetricData `bson:"metric_data" json:"metric_data"`
}

MetricList represents a list of metric data

Jump to

Keyboard shortcuts

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