Documentation
¶
Index ¶
- Variables
- func UnmarshalYAML(input io.Reader) (builder.Builder, error)
- type AlertCondition
- type AlertThreshold
- type AlertValue
- type DashboardGraph
- type DashboardModel
- type DashboardPanel
- type DashboardRow
- type DashboardSingleStat
- type DashboardTable
- type DashboardText
- type DashboardVariable
- type GraphAlert
- type GraphAxes
- type GraphAxis
- type PrometheusTarget
- type StackdriverAlignment
- type StackdriverFilters
- type StackdriverTarget
- type Target
- type VariableConst
- type VariableCustom
- type VariableInterval
- type VariableQuery
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrInvalidAlertValueFunc = fmt.Errorf("invalid alert value function")
View Source
var ErrInvalidColoringTarget = fmt.Errorf("invalid coloring target")
View Source
var ErrInvalidLegendAttribute = fmt.Errorf("invalid legend attribute")
View Source
var ErrInvalidSingleStatValueType = fmt.Errorf("invalid single stat value type")
View Source
var ErrInvalidSparkLineMode = fmt.Errorf("invalid sparkline mode")
View Source
var ErrInvalidStackdriverAggregation = fmt.Errorf("invalid stackdriver aggregation type")
View Source
var ErrInvalidStackdriverAlignment = fmt.Errorf("invalid stackdriver alignment method")
View Source
var ErrInvalidStackdriverType = fmt.Errorf("invalid stackdriver target type")
View Source
var ErrInvalidTimezone = fmt.Errorf("invalid timezone")
View Source
var ErrNoAlertThresholdDefined = fmt.Errorf("no threshold defined")
View Source
var ErrPanelNotConfigured = fmt.Errorf("panel not configured")
View Source
var ErrTargetNotConfigured = fmt.Errorf("target not configured")
View Source
var ErrVariableNotConfigured = fmt.Errorf("variable not configured")
Functions ¶
Types ¶
type AlertCondition ¶
type AlertCondition struct { Operand string Value AlertValue Threshold AlertThreshold }
type AlertThreshold ¶
type AlertValue ¶
type DashboardGraph ¶
type DashboardModel ¶
type DashboardModel struct { Title string Editable bool Tags []string AutoRefresh string `yaml:"auto_refresh"` Time [2]string Timezone string TagsAnnotation []dashboard.TagAnnotation `yaml:"tags_annotations"` Variables []DashboardVariable Rows []DashboardRow }
type DashboardPanel ¶
type DashboardPanel struct { Graph *DashboardGraph `yaml:",omitempty"` Table *DashboardTable `yaml:",omitempty"` SingleStat *DashboardSingleStat `yaml:"single_stat,omitempty"` Text *DashboardText `yaml:",omitempty"` }
type DashboardRow ¶
type DashboardRow struct { Name string Panels []DashboardPanel }
type DashboardSingleStat ¶
type DashboardSingleStat struct { Title string Span float32 `yaml:",omitempty"` Height string `yaml:",omitempty"` Datasource string `yaml:",omitempty"` Unit string ValueType string `yaml:"value_type"` SparkLine string `yaml:"sparkline"` Targets []Target Thresholds [2]string Colors [3]string Color []string `yaml:",omitempty"` }
type DashboardTable ¶
type DashboardText ¶
type DashboardVariable ¶
type DashboardVariable struct { Interval *VariableInterval `yaml:",omitempty"` Custom *VariableCustom `yaml:",omitempty"` Query *VariableQuery `yaml:",omitempty"` Const *VariableConst `yaml:",omitempty"` }
type GraphAlert ¶
type PrometheusTarget ¶
type StackdriverAlignment ¶
type StackdriverFilters ¶
type StackdriverTarget ¶
type StackdriverTarget struct { Type string Metric string Filters StackdriverFilters `yaml:",omitempty"` Aggregation string `yaml:",omitempty"` Alignment *StackdriverAlignment `yaml:",omitempty"` Legend string `yaml:",omitempty"` Ref string `yaml:",omitempty"` Hidden bool `yaml:",omitempty"` }
type Target ¶
type Target struct { Prometheus *PrometheusTarget `yaml:",omitempty"` Stackdriver *StackdriverTarget `yaml:",omitempty"` }
type VariableConst ¶
type VariableCustom ¶
type VariableInterval ¶
Click to show internal directories.
Click to hide internal directories.