argo-web-api: Index | Files

package latest

import ""


Package Files

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

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 ListLatestResults Uses

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

GetMetricResult returns the detailed message from a probe

func Options Uses

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

Options implements the option request on resource

type MetricData Uses

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 Uses

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

MetricList represents a list of metric data

Package latest imports 14 packages (graph) and is imported by 2 packages. Updated 2020-07-14. Refresh now. Tools for package owners.