statusMetrics

package
v1.14.1 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2025 License: Apache-2.0, Apache-2.0 Imports: 15 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 contains the different paths to follow during subrouting

func ListMetricTimelines

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

ListMetricTimelines returns a list of metric timelines

func Options

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

Options implements the option request on resource

Types

type DataOutput

type DataOutput struct {
	Timestamp      string            `bson:"timestamp"`
	EndpointGroup  string            `bson:"endpoint_group"`
	Service        string            `bson:"service"`
	Hostname       string            `bson:"host"`
	Metric         string            `bson:"metric"`
	Status         string            `bson:"status"`
	DateInt        int               `bson:"date_int"`
	PrevTimestamp  string            `bson:"previous_timestamp"`
	PrevStatus     string            `bson:"previous_state"`
	ActualData     string            `bson:"actual_data"`
	RuleApplied    string            `bson:"threshold_rule_applied"`
	OriginalStatus string            `bson:"original_status"`
	Info           map[string]string `bson:"info"`
}

DataOutput struct holds the queried data from datastore

type InputParams

type InputParams struct {
	// contains filtered or unexported fields
}

InputParams struct holds as input all the url params of the request

Jump to

Keyboard shortcuts

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