terraform

package
v0.72.2 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 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 DashboardWidgetColorOverrides added in v0.64.2

type DashboardWidgetColorOverrides struct {
	Color      string `json:"color,omitempty"`
	SeriesName string `json:"seriesName,omitempty"`
}

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 DashboardWidgetNRQLQuery

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

type DashboardWidgetNullValueOverrides added in v0.64.2

type DashboardWidgetNullValueOverrides struct {
	NullValue  string `json:"nullValue,omitempty"`
	SeriesName string `json:"seriesName,omitempty"`
}

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 DashboardWidgetUnitOverrides struct {
	Unit       string `json:"unit,omitempty"`
	SeriesName string `json:"seriesName,omitempty"`
}

type DashboardWidgetUnits added in v0.64.2

type DashboardWidgetUnits struct {
	Unit            string                         `json:"unit,omitempty"`
	SeriesOverrides []DashboardWidgetUnitOverrides `json:"seriesOverrides,omitempty"`
}

type DashboardWidgetYAxisLeft

type DashboardWidgetYAxisLeft struct {
	Max  float64 `json:"max,omitempty"`
	Min  float64 `json:"min,omitempty"`
	Zero bool    `json:"zero,omitempty"`
}

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) WriteBooleanAttribute added in v0.64.2

func (h *HCLGen) WriteBooleanAttribute(label string, value bool)

func (*HCLGen) WriteFloatAttribute added in v0.64.2

func (h *HCLGen) WriteFloatAttribute(label string, value float64)

func (*HCLGen) WriteIntArrayAttribute added in v0.67.0

func (h *HCLGen) WriteIntArrayAttribute(label string, values []int)

WriteIntArrayAttribute :function to convert an integer array into a string

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