frontend

package
v0.0.0-...-109431f Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2019 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CliApp

type CliApp struct {
	ConfigPath string
	DataDir    string
	App        *cli.App
}

CliApp stores a single instance of the cli and the inputs expected from the user

func NewApp

func NewApp() *CliApp

NewApp creates and returns a new cli application

func (*CliApp) ReadInput

func (app *CliApp) ReadInput() (*DataRequest, error)

ReadInput reads user input data from the cli

func (*CliApp) ValidateInput

func (app *CliApp) ValidateInput() error

ValidateInput checks that the path inputs exist

type DataRequest

type DataRequest struct {
	// Step allows you to set the step for ranged queries
	// +optional: default: "1m"
	Step string `yaml:"step,omitempty"`

	// +optional: default: [
	// "etcd_disk_wal_fsync_duration_seconds_bucket",
	// "etcd_disk_backend_commit_duration_seconds_bucket",
	// "etcd_network_peer_round_trip_time_seconds_bucket"]
	TimeSeries []string `yaml:"promMetrics,omitempty"`

	// TestIDs holds the UUID of the CI tests you want to pull data from
	TestIDs []string `yaml:"testIDs"`
}

DataRequest stores user data requests from CI prom

func NewDataRequest

func NewDataRequest() *DataRequest

NewDataRequest object and set default values

func (*DataRequest) Validate

func (req *DataRequest) Validate() error

Validate DataRequest Objects

Jump to

Keyboard shortcuts

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