terraform

package
v0.61.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 12, 2022 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateDashboardHCL

func GenerateDashboardHCL(resourceLabel string, shiftWidth int, input []byte) (string, error)

Types

type DashboardWidgetFacet

type DashboardWidgetFacet struct {
	ShowOtherSeries bool `json:"showOtherSeries"`
}

type DashboardWidgetLegend

type DashboardWidgetLegend struct {
	Enabled bool `json:"enabled"`
}

type DashboardWidgetNRQLQuery

type DashboardWidgetNRQLQuery struct {
	AccountID int    `json:"accountId"`
	Query     string `json:"query"`
}

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"`
	Legend            DashboardWidgetLegend      `json:"legend"`
	YAxisLeft         DashboardWidgetYAxisLeft   `json:"yAxisLeft"`
}

type DashboardWidgetYAxisLeft

type DashboardWidgetYAxisLeft struct {
	Zero bool `json:"zero"`
}

type DataFormatter added in v0.44.3

type DataFormatter struct {
	Name      string      `json:"name"`
	Precision interface{} `json:"precision"`
	Type      string      `json:"type"`
}

type HCLGen

type HCLGen struct {
	strings.Builder
	// contains filtered or unexported fields
}

func NewHCLGen

func NewHCLGen(shiftWidth int) *HCLGen

func (*HCLGen) WriteBlock

func (h *HCLGen) WriteBlock(name string, labels []string, f func())

func (*HCLGen) WriteIntAttribute

func (h *HCLGen) WriteIntAttribute(label string, value int)

func (*HCLGen) WriteIntAttributeIfNotZero

func (h *HCLGen) WriteIntAttributeIfNotZero(label string, value int)

func (*HCLGen) WriteMultilineStringAttribute

func (h *HCLGen) WriteMultilineStringAttribute(label string, value string)

func (*HCLGen) WriteMultilineStringAttributeIfNotEmpty

func (h *HCLGen) WriteMultilineStringAttributeIfNotEmpty(label string, value string)

func (*HCLGen) WriteStringAttribute

func (h *HCLGen) WriteStringAttribute(label string, value string)

func (*HCLGen) WriteStringAttributeIfNotEmpty

func (h *HCLGen) WriteStringAttributeIfNotEmpty(label string, value string)

func (*HCLGen) WriteStringSliceAttribute

func (h *HCLGen) WriteStringSliceAttribute(label string, value []string)

func (*HCLGen) WriteStringSliceAttributeIfNotEmpty

func (h *HCLGen) WriteStringSliceAttributeIfNotEmpty(label string, value []string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL