argo-web-api: github.com/ARGOeu/argo-web-api/app/metricResult Index | Files

package metricResult

import "github.com/ARGOeu/argo-web-api/app/metricResult"

Index

Package Files

controller.go model.go routing.go view.go

func GetMetricResult Uses

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

GetMetricResult returns the detailed message from a probe

func GetMultipleMetricResults Uses

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

GetMultipleMetricResults returns the detailed message from a probe

func HandleSubrouter Uses

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 Uses

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

Options implements the option request on resource

type HostXML Uses

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

HostXML struct used as xml block

type MetricXML Uses

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 Uses

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"`
}

StatusXML struct used as xml block

Package metricResult imports 13 packages (graph) and is imported by 3 packages. Updated 2019-11-15. Refresh now. Tools for package owners.