metricResult

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: 14 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetMetricResult

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

GetMetricResult returns the detailed message from a probe

func GetMultipleMetricResults

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

GetMultipleMetricResults returns the detailed message from a probe

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 Options

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

Options implements the option request on resource

Types

type HostXML

type HostXML struct {
	XMLName xml.Name          `xml:"host" json:"-"`
	Name    string            `xml:"name,attr"`
	Info    map[string]string `xml:"-" json:"info,omitempty"`
	Metrics []*MetricXML
}

HostXML struct used as xml block

type MetricXML

type MetricXML struct {
	XMLName xml.Name `xml:"metric" json:"-"`
	Name    string   `xml:"name,attr"`
	Service string   `xml:"service,attr,omitempty" json:"Service,omitempty"`

	Details []*StatusXML
}

MetricXML struct used as xml block

type StatusXML

type StatusXML struct {
	XMLName        xml.Name `xml:"status" json:"-"`
	Timestamp      string   `xml:"timestamp,attr"`
	Value          string   `xml:"value,attr"`
	Summary        string   `xml:"summary"`
	Message        string   `xml:"message"`
	ActualData     string   `xml:"-" json:"actual_data,omitempty"`
	RuleApplied    string   `xml:"-" json:"threshold_rule_applied,omitempty"`
	OriginalStatus string   `xml:"-" json:"original_status,omitempty"`
}

StatusXML struct used as xml block

Jump to

Keyboard shortcuts

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