Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type FloatValueBuilder ¶
type FloatValueBuilder struct { RuleName string `json:"rule"` ServiceName string `json:"service"` ScalerID string `json:"scaler"` ProbeID string `json:"probe"` ProbeArgs json.RawMessage `json:"probeArgs"` RefreshRate time.Duration `json:"resfreshRate"` UpDefinition string `json:"up"` DownDefinition string `json:"down"` }
FloatValueBuilder contains all the information to build a rule
func (*FloatValueBuilder) Build ¶
func (builder *FloatValueBuilder) Build() (*rule.FloatValue, error)
Build validate inputed data and return a FloatValue rule It checks missing fields and coherence why the loaded configuration
type ScalerBuilder ¶
type ScalerBuilder struct { Type string `json:"type"` Name string `json:"name"` Args json.RawMessage `json:"args"` }
ScalerBuilder contains all the information needed to build a scaler
Click to show internal directories.
Click to hide internal directories.