terraform

package
v0.97.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ThresholdSeverityValues = map[string]string{
		"CRITICAL": "critical",
		"WARNING":  "warning",
	}
)

Functions

func GenerateDashboardHCL

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

Types

type DashboardWidgetBillBoardThreshold added in v0.97.2

type DashboardWidgetBillBoardThreshold struct {
	AlertSeverity string  `json:"alertSeverity,omitempty"`
	Value         float64 `json:"value,omitempty"`
}

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 DashboardWidgetInitialSorting added in v0.97.2

type DashboardWidgetInitialSorting struct {
	Direction string `json:"direction"`
	Name      string `json:"name"`
}

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 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"`
	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 DashboardWidgetThreshold struct {
	From     float64 `json:"from,omitempty"`
	Name     string  `json:"name,omitempty"`
	Severity string  `json:"severity,omitempty"`
	To       float64 `json:"to,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"`
	Format    string      `json:"format"`
}

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