v2

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Dec 20, 2016 License: AGPL-3.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandleGetMetric

func HandleGetMetric(rw http.ResponseWriter, r *http.Request, p httprouter.Params)

func HandleGetMetrics

func HandleGetMetrics(rw http.ResponseWriter, r *http.Request, p httprouter.Params)

func HandleGetStatus

func HandleGetStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)

func HandlePatchStatus

func HandlePatchStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)

func NewHandler

func NewHandler() http.Handler

Types

type Metric

type Metric struct {
	Name string `json:"-"`

	Type     NullMetricType `json:"type"`
	Contains NullValueType  `json:"contains"`
}

func NewMetric

func NewMetric(m stats.Metric) Metric

func (Metric) GetID

func (m Metric) GetID() string

func (*Metric) SetID

func (m *Metric) SetID(id string) error

type NullMetricType

type NullMetricType struct {
	Type  stats.MetricType
	Valid bool
}

func (NullMetricType) MarshalJSON

func (t NullMetricType) MarshalJSON() ([]byte, error)

func (*NullMetricType) UnmarshalJSON

func (t *NullMetricType) UnmarshalJSON(data []byte) error

type NullValueType

type NullValueType struct {
	Type  stats.ValueType
	Valid bool
}

func (NullValueType) MarshalJSON

func (t NullValueType) MarshalJSON() ([]byte, error)

func (*NullValueType) UnmarshalJSON

func (t *NullValueType) UnmarshalJSON(data []byte) error

type Status

type Status struct {
	Running null.Bool `json:"running"`
	VUs     null.Int  `json:"vus"`
	VUsMax  null.Int  `json:"vus-max"`

	// Readonly.
	Tainted bool `json:"tainted"`
}

func NewStatus

func NewStatus(engine *lib.Engine) Status

func (Status) GetID

func (s Status) GetID() string

func (Status) GetName

func (s Status) GetName() string

func (Status) SetID

func (s Status) SetID(id string) error

Jump to

Keyboard shortcuts

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