Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ComparisonOperators = struct { GreaterThanOrEqual ComparisonOperator LessThanOrEqual ComparisonOperator }{ "GREATER_THAN_OR_EQUAL", "LESS_THAN_OR_EQUAL", }
View Source
var ObjectiveTypes = struct { Dql ObjectiveType ReferenceSlo ObjectiveType }{ "DQL", "REFERENCE_SLO", }
Functions ¶
This section is empty.
Types ¶
type ComparisonOperator ¶
type ComparisonOperator string
type Objective ¶
type Objective struct { ComparisonOperator ComparisonOperator `json:"comparisonOperator"` // Possible Values: `GREATER_THAN_OR_EQUAL`, `LESS_THAN_OR_EQUAL` Description *string `json:"description,omitempty"` DqlQuery *string `json:"dqlQuery,omitempty"` // DQL query Name string `json:"name"` // Objective name ObjectiveType ObjectiveType `json:"objectiveType"` // Possible Values: `DQL`, `REFERENCE_SLO` ReferenceSlo *string `json:"referenceSlo,omitempty"` // Please enter the metric key of your desired SLO. SLO metric keys have to start with 'func:slo.' Target *float64 `json:"target,omitempty"` Warning *float64 `json:"warning,omitempty"` }
func (*Objective) HandlePreconditions ¶
func (*Objective) MarshalHCL ¶
func (me *Objective) MarshalHCL(properties hcl.Properties) error
type ObjectiveType ¶
type ObjectiveType string
type Objectives ¶
type Objectives []*Objective
func (Objectives) MarshalHCL ¶
func (me Objectives) MarshalHCL(properties hcl.Properties) error
func (*Objectives) UnmarshalHCL ¶
func (me *Objectives) UnmarshalHCL(decoder hcl.Decoder) error
type Settings ¶
type Settings struct { Description *string `json:"description,omitempty"` // Description Name string `json:"name"` // Name Objectives Objectives `json:"objectives"` // Objectives Tags []string `json:"tags,omitempty"` // Define key/value pairs that further describe this guardian. Variables Variables `json:"variables,omitempty"` // Define variables for dynamically defining DQL queries }
func (*Settings) MarshalHCL ¶
func (me *Settings) MarshalHCL(properties hcl.Properties) error
type Variable ¶
func (*Variable) MarshalHCL ¶
func (me *Variable) MarshalHCL(properties hcl.Properties) error
type Variables ¶
type Variables []*Variable
func (Variables) MarshalHCL ¶
func (me Variables) MarshalHCL(properties hcl.Properties) error
Click to show internal directories.
Click to hide internal directories.