Documentation ¶
Index ¶
- func GenerateDashboardHCL(resourceLabel string, shiftWidth int, input []byte) (string, error)
- type DashboardWidgetColorOverrides
- type DashboardWidgetColors
- type DashboardWidgetFacet
- type DashboardWidgetLegend
- type DashboardWidgetNRQLQuery
- type DashboardWidgetNullValueOverrides
- type DashboardWidgetNullValues
- type DashboardWidgetPlatformOptions
- type DashboardWidgetRawConfiguration
- 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 ¶
This section is empty.
Functions ¶
Types ¶
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 DashboardWidgetLegend ¶
type DashboardWidgetLegend struct {
Enabled bool `json:"enabled,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"` Facet DashboardWidgetFacet `json:"facet,omitempty"` Legend DashboardWidgetLegend `json:"legend,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"` }
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.