Documentation ¶
Index ¶
- func GenerateDashboardHCL(resourceLabel string, shiftWidth int, input []byte) (string, error)
- type DashboardWidgetFacet
- type DashboardWidgetLegend
- type DashboardWidgetNRQLQuery
- type DashboardWidgetRawConfiguration
- type DashboardWidgetYAxisLeft
- type HCLGen
- func (h *HCLGen) WriteBlock(name string, labels []string, f func())
- 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 DashboardWidgetFacet ¶
type DashboardWidgetFacet struct {
ShowOtherSeries bool `json:"showOtherSeries"`
}
type DashboardWidgetLegend ¶
type DashboardWidgetLegend struct {
Enabled bool `json:"enabled"`
}
type DashboardWidgetRawConfiguration ¶
type DashboardWidgetRawConfiguration struct { DataFormatters []string `json:"dataFormatters"` NRQLQueries []DashboardWidgetNRQLQuery `json:"nrqlQueries"` LinkedEntityGUIDs []string `json:"linkedEntityGuids"` Text string `json:"text"` Facet DashboardWidgetFacet `json:"facet"` Legend DashboardWidgetLegend `json:"legend"` YAxisLeft DashboardWidgetYAxisLeft `json:"yAxisLeft"` }
type DashboardWidgetYAxisLeft ¶
type DashboardWidgetYAxisLeft struct {
Zero bool `json:"zero"`
}
type HCLGen ¶
func (*HCLGen) WriteBlock ¶
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.