Documentation ¶
Index ¶
- Variables
- func GenerateDashboardHCL(resourceLabel string, shiftWidth int, input []byte) (string, error)
- type DashboardWidgetBillBoardThreshold
- type DashboardWidgetColorOverrides
- type DashboardWidgetColors
- type DashboardWidgetFacet
- type DashboardWidgetInitialSorting
- type DashboardWidgetLegend
- type DashboardWidgetLineThreshold
- type DashboardWidgetNRQLQuery
- type DashboardWidgetNullValueOverrides
- type DashboardWidgetNullValues
- type DashboardWidgetPlatformOptions
- type DashboardWidgetRawConfiguration
- type DashboardWidgetRefreshRate
- type DashboardWidgetThreshold
- type DashboardWidgetUnitOverrides
- type DashboardWidgetUnits
- type DashboardWidgetYAxisLeft
- type DataFormatter
- type HCLGen
- func (h *HCLGen) WriteBlock(name string, labels []string, f func())
- func (h *HCLGen) WriteBooleanAttribute(label string, value bool)
- func (h *HCLGen) WriteFloatAttribute(label string, value float64)
- func (h *HCLGen) WriteIntArrayAttribute(label string, values []int)
- func (h *HCLGen) WriteIntAttribute(label string, value int)
- func (h *HCLGen) WriteIntAttributeIfNotZero(label string, value int)
- func (h *HCLGen) WriteMultilineStringAttribute(label string, value string)
- func (h *HCLGen) WriteMultilineStringAttributeIfNotEmpty(label string, value string)
- func (h *HCLGen) WriteStringAttribute(label string, value string)
- func (h *HCLGen) WriteStringAttributeIfNotEmpty(label string, value string)
- func (h *HCLGen) WriteStringSliceAttribute(label string, value []string)
- func (h *HCLGen) WriteStringSliceAttributeIfNotEmpty(label string, value []string)
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ThresholdSeverityValues = map[string]string{
"CRITICAL": "critical",
"WARNING": "warning",
}
)
Functions ¶
Types ¶
type DashboardWidgetBillBoardThreshold ¶ added in v0.97.2
type DashboardWidgetColorOverrides ¶ added in v0.64.2
type DashboardWidgetColors ¶ added in v0.64.2
type DashboardWidgetColors struct { Color string `json:"color,omitempty"` SeriesOverrides []DashboardWidgetColorOverrides `json:"seriesOverrides,omitempty"` }
type DashboardWidgetFacet ¶
type DashboardWidgetFacet struct {
ShowOtherSeries bool `json:"showOtherSeries"`
}
type DashboardWidgetInitialSorting ¶ added in v0.97.2
type DashboardWidgetLegend ¶
type DashboardWidgetLegend struct {
Enabled bool `json:"enabled,omitempty"`
}
type DashboardWidgetLineThreshold ¶ added in v0.97.2
type DashboardWidgetLineThreshold struct { IsLabelVisible bool `json:"isLabelVisible,omitempty"` Threshold []DashboardWidgetThreshold `json:"thresholds,omitempty"` }
type DashboardWidgetNullValueOverrides ¶ added in v0.64.2
type DashboardWidgetNullValues ¶ added in v0.64.2
type DashboardWidgetNullValues struct { NullValue string `json:"nullValue,omitempty"` SeriesOverrides []DashboardWidgetNullValueOverrides `json:"seriesOverrides,omitempty"` }
type DashboardWidgetPlatformOptions ¶ added in v0.64.2
type DashboardWidgetPlatformOptions struct {
IgnoreTimeRange bool `json:"ignoreTimeRange,omitempty"`
}
type DashboardWidgetRawConfiguration ¶
type DashboardWidgetRawConfiguration struct { DataFormatters []DataFormatter `json:"dataFormatters"` NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries"` LinkedEntityGUIDs []string `json:"linkedEntityGuids"` Text string `json:"text"` Limit float64 `json:"limit,omitempty"` Facet DashboardWidgetFacet `json:"facet,omitempty"` Legend DashboardWidgetLegend `json:"legend,omitempty"` Threshold json.RawMessage `json:"thresholds,omitempty"` YAxisLeft DashboardWidgetYAxisLeft `json:"yAxisLeft,omitempty"` NullValues DashboardWidgetNullValues `json:"nullValues,omitempty"` Units DashboardWidgetUnits `json:"units,omitempty"` Colors DashboardWidgetColors `json:"colors,omitempty"` PlatformOptions DashboardWidgetPlatformOptions `json:"platformOptions,omitempty"` RefreshRate DashboardWidgetRefreshRate `json:"refreshRate,omitempty"` InitialSorting DashboardWidgetInitialSorting `json:"initialSorting,omitempty"` }
type DashboardWidgetRefreshRate ¶ added in v0.97.2
type DashboardWidgetRefreshRate struct {
Frequency interface{} `json:"frequency,omitempty"`
}
type DashboardWidgetThreshold ¶ added in v0.97.2
type DashboardWidgetUnitOverrides ¶ added in v0.64.2
type DashboardWidgetUnits ¶ added in v0.64.2
type DashboardWidgetUnits struct { Unit string `json:"unit,omitempty"` SeriesOverrides []DashboardWidgetUnitOverrides `json:"seriesOverrides,omitempty"` }
type DataFormatter ¶ added in v0.44.3
type HCLGen ¶
func (*HCLGen) WriteBlock ¶
func (*HCLGen) WriteBooleanAttribute ¶ added in v0.64.2
func (*HCLGen) WriteFloatAttribute ¶ added in v0.64.2
func (*HCLGen) WriteIntArrayAttribute ¶ added in v0.67.0
WriteIntArrayAttribute :function to convert an integer array into a string
func (*HCLGen) WriteIntAttribute ¶
func (*HCLGen) WriteIntAttributeIfNotZero ¶
func (*HCLGen) WriteMultilineStringAttribute ¶
func (*HCLGen) WriteMultilineStringAttributeIfNotEmpty ¶
func (*HCLGen) WriteStringAttribute ¶
func (*HCLGen) WriteStringAttributeIfNotEmpty ¶
func (*HCLGen) WriteStringSliceAttribute ¶
func (*HCLGen) WriteStringSliceAttributeIfNotEmpty ¶
Click to show internal directories.
Click to hide internal directories.