Documentation
¶
Index ¶
- func HandleGetGroup(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetGroups(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetMetric(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetMetrics(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandleGetStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- func HandlePatchStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
- 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 NullValueType
- type Status
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleGetGroup ¶ added in v0.5.0
func HandleGetGroup(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetGroups ¶ added in v0.5.0
func HandleGetGroups(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetMetric ¶ added in v0.5.0
func HandleGetMetric(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetMetrics ¶ added in v0.5.0
func HandleGetMetrics(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandleGetStatus ¶ added in v0.5.0
func HandleGetStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func HandlePatchStatus ¶ added in v0.5.0
func HandlePatchStatus(rw http.ResponseWriter, r *http.Request, p httprouter.Params)
func NewHandler ¶
Types ¶
type Check ¶ added in v0.5.0
type ErrorResponse ¶ added in v0.5.0
type ErrorResponse struct {
Errors []Error `json:"errors"`
}
type Group ¶ added in v0.5.0
type Group struct {
ID string `json:"-"`
Path string `json:"path"`
Name string `json:"name"`
Checks []Check `json:"checks"`
Parent *Group `json:"-"`
ParentID string `json:"-"`
Groups []*Group `json:"-"`
GroupIDs []string `json:"-"`
}
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:"-"`
Type NullMetricType `json:"type"`
Contains NullValueType `json:"contains"`
Sample map[string]float64 `json:"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 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
Click to show internal directories.
Click to hide internal directories.