Documentation
¶
Index ¶
- func GetMetricResult(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func GetMultipleMetricResults(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
- func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- type HostXML
- type MetricXML
- type StatusXML
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GetMetricResult ¶
GetMetricResult returns the detailed message from a probe
func GetMultipleMetricResults ¶
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
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
Click to show internal directories.
Click to hide internal directories.