options

package
v0.6.0 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Overview

Options package holds the option settings for a single graph generation.

Index

Constants

View Source
const (
	AppenderAll          string = "_all_"
	GroupByVersion       string = "version"
	NamespaceAll         string = "all"
	NamespaceIstioSystem string = "istio-system"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	Appenders    []appender.Appender
	Duration     time.Duration
	IncludeIstio bool // include istio-system services. Ignored for istio-system ns. Default false.
	Metric       string
	Namespaces   []string
	QueryTime    int64 // unix time in seconds
	Workload     string
	Vendor       string
	VendorOptions
}

Options are all supported graph generation options.

func NewOptions

func NewOptions(r *http.Request) Options

type VendorOptions

type VendorOptions struct {
	GraphType string
	GroupBy   string
	Timestamp int64
}

VendorOptions are those that are supplied to the vendor-specific generators.

Jump to

Keyboard shortcuts

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