Documentation
¶
Index ¶
- func Create(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Delete(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
- func List(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func ListOne(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Options(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- func Update(r *http.Request, cfg config.Config) (int, http.Header, []byte, error)
- type DefaultStates
- type Links
- type Operation
- type OpsProfile
- type SelfReference
- type Statement
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandleSubrouter ¶
func HandleSubrouter(s *mux.Router, confhandler *respond.ConfHandler)
HandleSubrouter uses the subrouter for a specific calls and creates a tree of sorts handling each route with a different subrouter
func List ¶
List the existing metric profiles for the tenant making the request Also there is an optional url param "name" to filter results by
Types ¶
type DefaultStates ¶
type DefaultStates struct {
Down string `bson:"down" json:"down"`
Missing string `bson:"missing" json:"missing"`
Unknown string `bson:"unknown" json:"unknown"`
}
DefaultStates struct to represent defaults states
type Operation ¶
type Operation struct {
Name string `bson:"name" json:"name"`
TruthTable []Statement `bson:"truth_table" json:"truth_table"`
}
Operation struct to represent an operation
type OpsProfile ¶
type OpsProfile struct {
ID string `bson:"id" json:"id"`
DateInt int `bson:"date_integer" json:"-"`
Date string `bson:"date" json:"date"`
Name string `bson:"name" json:"name"`
AvailStates []string `bson:"available_states" json:"available_states"`
Defaults DefaultStates `bson:"defaults" json:"defaults"`
Operations []Operation `bson:"operations" json:"operations"`
}
OpsProfile to retrieve and insert operationsProfiles in mongo
type SelfReference ¶
SelfReference to hold links and id
Click to show internal directories.
Click to hide internal directories.