Documentation ¶
Index ¶
- func NewHandler() http.Handler
- type Check
- type Error
- type ErrorResponse
- type Group
- func (g Group) GetID() string
- func (g Group) GetReferencedIDs() []jsonapi.ReferenceID
- func (g Group) GetReferences() []jsonapi.Reference
- func (g *Group) SetID(v string) error
- func (g *Group) SetToManyReferenceIDs(name string, ids []string) error
- func (g *Group) SetToOneReferenceID(name, id string) error
- type Metric
- type NullMetricType
- type NullSetupData
- type NullValueType
- type SetupData
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHandler ¶
Types ¶
type Check ¶ added in v0.5.0
type Error ¶ added in v0.5.0
type Error struct { Status string `json:"status,omitempty"` Title string `json:"title,omitempty"` Detail string `json:"detail,omitempty"` }
Error is an api error
type ErrorResponse ¶ added in v0.5.0
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
ErrorResponse is a struct wrapper around multiple errors
type Group ¶ added in v0.5.0
type Group struct { ID string `json:"-" yaml:"id"` Path string `json:"path" yaml:"path"` Name string `json:"name" yaml:"name"` Checks []Check `json:"checks" yaml:"checks"` Parent *Group `json:"-" yaml:"-"` ParentID string `json:"-" yaml:"parent-id"` Groups []*Group `json:"-" yaml:"-"` GroupIDs []string `json:"-" yaml:"group-ids"` }
func FlattenGroup ¶ added in v0.5.0
func (Group) GetReferencedIDs ¶ added in v0.5.0
func (g Group) GetReferencedIDs() []jsonapi.ReferenceID
func (Group) GetReferences ¶ added in v0.5.0
func (*Group) SetToManyReferenceIDs ¶ added in v0.5.0
func (*Group) SetToOneReferenceID ¶ added in v0.5.0
type Metric ¶ added in v0.5.0
type Metric struct { Name string `json:"-" yaml:"name"` Type NullMetricType `json:"type" yaml:"type"` Contains NullValueType `json:"contains" yaml:"contains"` Tainted null.Bool `json:"tainted" yaml:"tainted"` Sample map[string]float64 `json:"sample" yaml:"sample"` }
type NullMetricType ¶ added in v0.5.0
type NullMetricType struct { Type stats.MetricType Valid bool }
func (NullMetricType) MarshalJSON ¶ added in v0.5.0
func (t NullMetricType) MarshalJSON() ([]byte, error)
func (*NullMetricType) UnmarshalJSON ¶ added in v0.5.0
func (t *NullMetricType) UnmarshalJSON(data []byte) error
type NullSetupData ¶ added in v0.23.0
type NullSetupData struct { SetupData Data interface{} `json:"data,omitempty" yaml:"data"` }
NullSetupData is wrapper around null to satisfy jsonapi
type NullValueType ¶ added in v0.5.0
func (NullValueType) MarshalJSON ¶ added in v0.5.0
func (t NullValueType) MarshalJSON() ([]byte, error)
func (*NullValueType) UnmarshalJSON ¶ added in v0.5.0
func (t *NullValueType) UnmarshalJSON(data []byte) error
type SetupData ¶ added in v0.21.0
type SetupData struct {
Data interface{} `json:"data" yaml:"data"`
}
SetupData is just a simple wrapper to satisfy jsonapi
type Status ¶ added in v0.5.0
type Status struct { Status lib.ExecutionStatus `json:"status" yaml:"status"` Paused null.Bool `json:"paused" yaml:"paused"` VUs null.Int `json:"vus" yaml:"vus"` VUsMax null.Int `json:"vus-max" yaml:"vus-max"` Stopped bool `json:"stopped" yaml:"stopped"` Running bool `json:"running" yaml:"running"` Tainted bool `json:"tainted" yaml:"tainted"` }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.