appautoscalingpolicy

package
v0.0.0-...-964ba77 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CustomizedMetricSpecification

type CustomizedMetricSpecification struct {
	// MetricName: string, optional
	MetricName terra.StringValue `hcl:"metric_name,attr"`
	// Namespace: string, optional
	Namespace terra.StringValue `hcl:"namespace,attr"`
	// Statistic: string, optional
	Statistic terra.StringValue `hcl:"statistic,attr"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// CustomizedMetricSpecificationDimensions: min=0
	Dimensions []CustomizedMetricSpecificationDimensions `hcl:"dimensions,block" validate:"min=0"`
	// Metrics: min=0
	Metrics []Metrics `hcl:"metrics,block" validate:"min=0"`
}

type CustomizedMetricSpecificationAttributes

type CustomizedMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (CustomizedMetricSpecificationAttributes) Dimensions

func (CustomizedMetricSpecificationAttributes) InternalRef

func (CustomizedMetricSpecificationAttributes) InternalTokens

func (CustomizedMetricSpecificationAttributes) InternalWithRef

func (CustomizedMetricSpecificationAttributes) MetricName

func (CustomizedMetricSpecificationAttributes) Metrics

func (CustomizedMetricSpecificationAttributes) Namespace

func (CustomizedMetricSpecificationAttributes) Statistic

func (CustomizedMetricSpecificationAttributes) Unit

type CustomizedMetricSpecificationDimensions

type CustomizedMetricSpecificationDimensions struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type CustomizedMetricSpecificationDimensionsAttributes

type CustomizedMetricSpecificationDimensionsAttributes struct {
	// contains filtered or unexported fields
}

func (CustomizedMetricSpecificationDimensionsAttributes) InternalRef

func (CustomizedMetricSpecificationDimensionsAttributes) InternalTokens

func (CustomizedMetricSpecificationDimensionsAttributes) InternalWithRef

func (CustomizedMetricSpecificationDimensionsAttributes) Name

func (CustomizedMetricSpecificationDimensionsAttributes) Value

type CustomizedMetricSpecificationDimensionsState

type CustomizedMetricSpecificationDimensionsState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type CustomizedMetricSpecificationState

type CustomizedMetricSpecificationState struct {
	MetricName string                                         `json:"metric_name"`
	Namespace  string                                         `json:"namespace"`
	Statistic  string                                         `json:"statistic"`
	Unit       string                                         `json:"unit"`
	Dimensions []CustomizedMetricSpecificationDimensionsState `json:"dimensions"`
	Metrics    []MetricsState                                 `json:"metrics"`
}

type Metric

type Metric struct {
	// MetricName: string, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// MetricDimensions: min=0
	Dimensions []MetricDimensions `hcl:"dimensions,block" validate:"min=0"`
}

type MetricAttributes

type MetricAttributes struct {
	// contains filtered or unexported fields
}

func (MetricAttributes) Dimensions

func (MetricAttributes) InternalRef

func (m MetricAttributes) InternalRef() (terra.Reference, error)

func (MetricAttributes) InternalTokens

func (m MetricAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricAttributes) InternalWithRef

func (m MetricAttributes) InternalWithRef(ref terra.Reference) MetricAttributes

func (MetricAttributes) MetricName

func (m MetricAttributes) MetricName() terra.StringValue

func (MetricAttributes) Namespace

func (m MetricAttributes) Namespace() terra.StringValue

type MetricDimensions

type MetricDimensions struct {
	// Name: string, required
	Name terra.StringValue `hcl:"name,attr" validate:"required"`
	// Value: string, required
	Value terra.StringValue `hcl:"value,attr" validate:"required"`
}

type MetricDimensionsAttributes

type MetricDimensionsAttributes struct {
	// contains filtered or unexported fields
}

func (MetricDimensionsAttributes) InternalRef

func (d MetricDimensionsAttributes) InternalRef() (terra.Reference, error)

func (MetricDimensionsAttributes) InternalTokens

func (d MetricDimensionsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricDimensionsAttributes) InternalWithRef

func (MetricDimensionsAttributes) Name

func (MetricDimensionsAttributes) Value

type MetricDimensionsState

type MetricDimensionsState struct {
	Name  string `json:"name"`
	Value string `json:"value"`
}

type MetricStat

type MetricStat struct {
	// Stat: string, required
	Stat terra.StringValue `hcl:"stat,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// Metric: required
	Metric *Metric `hcl:"metric,block" validate:"required"`
}

type MetricStatAttributes

type MetricStatAttributes struct {
	// contains filtered or unexported fields
}

func (MetricStatAttributes) InternalRef

func (ms MetricStatAttributes) InternalRef() (terra.Reference, error)

func (MetricStatAttributes) InternalTokens

func (ms MetricStatAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricStatAttributes) InternalWithRef

func (ms MetricStatAttributes) InternalWithRef(ref terra.Reference) MetricStatAttributes

func (MetricStatAttributes) Metric

func (MetricStatAttributes) Stat

func (MetricStatAttributes) Unit

type MetricStatState

type MetricStatState struct {
	Stat   string        `json:"stat"`
	Unit   string        `json:"unit"`
	Metric []MetricState `json:"metric"`
}

type MetricState

type MetricState struct {
	MetricName string                  `json:"metric_name"`
	Namespace  string                  `json:"namespace"`
	Dimensions []MetricDimensionsState `json:"dimensions"`
}

type Metrics

type Metrics struct {
	// Expression: string, optional
	Expression terra.StringValue `hcl:"expression,attr"`
	// Id: string, required
	Id terra.StringValue `hcl:"id,attr" validate:"required"`
	// Label: string, optional
	Label terra.StringValue `hcl:"label,attr"`
	// ReturnData: bool, optional
	ReturnData terra.BoolValue `hcl:"return_data,attr"`
	// MetricStat: optional
	MetricStat *MetricStat `hcl:"metric_stat,block"`
}

type MetricsAttributes

type MetricsAttributes struct {
	// contains filtered or unexported fields
}

func (MetricsAttributes) Expression

func (m MetricsAttributes) Expression() terra.StringValue

func (MetricsAttributes) Id

func (MetricsAttributes) InternalRef

func (m MetricsAttributes) InternalRef() (terra.Reference, error)

func (MetricsAttributes) InternalTokens

func (m MetricsAttributes) InternalTokens() (hclwrite.Tokens, error)

func (MetricsAttributes) InternalWithRef

func (m MetricsAttributes) InternalWithRef(ref terra.Reference) MetricsAttributes

func (MetricsAttributes) Label

func (MetricsAttributes) MetricStat

func (MetricsAttributes) ReturnData

func (m MetricsAttributes) ReturnData() terra.BoolValue

type MetricsState

type MetricsState struct {
	Expression string            `json:"expression"`
	Id         string            `json:"id"`
	Label      string            `json:"label"`
	ReturnData bool              `json:"return_data"`
	MetricStat []MetricStatState `json:"metric_stat"`
}

type PredefinedMetricSpecification

type PredefinedMetricSpecification struct {
	// PredefinedMetricType: string, required
	PredefinedMetricType terra.StringValue `hcl:"predefined_metric_type,attr" validate:"required"`
	// ResourceLabel: string, optional
	ResourceLabel terra.StringValue `hcl:"resource_label,attr"`
}

type PredefinedMetricSpecificationAttributes

type PredefinedMetricSpecificationAttributes struct {
	// contains filtered or unexported fields
}

func (PredefinedMetricSpecificationAttributes) InternalRef

func (PredefinedMetricSpecificationAttributes) InternalTokens

func (PredefinedMetricSpecificationAttributes) InternalWithRef

func (PredefinedMetricSpecificationAttributes) PredefinedMetricType

func (pms PredefinedMetricSpecificationAttributes) PredefinedMetricType() terra.StringValue

func (PredefinedMetricSpecificationAttributes) ResourceLabel

type PredefinedMetricSpecificationState

type PredefinedMetricSpecificationState struct {
	PredefinedMetricType string `json:"predefined_metric_type"`
	ResourceLabel        string `json:"resource_label"`
}

type StepAdjustment

type StepAdjustment struct {
	// MetricIntervalLowerBound: string, optional
	MetricIntervalLowerBound terra.StringValue `hcl:"metric_interval_lower_bound,attr"`
	// MetricIntervalUpperBound: string, optional
	MetricIntervalUpperBound terra.StringValue `hcl:"metric_interval_upper_bound,attr"`
	// ScalingAdjustment: number, required
	ScalingAdjustment terra.NumberValue `hcl:"scaling_adjustment,attr" validate:"required"`
}

type StepAdjustmentAttributes

type StepAdjustmentAttributes struct {
	// contains filtered or unexported fields
}

func (StepAdjustmentAttributes) InternalRef

func (sa StepAdjustmentAttributes) InternalRef() (terra.Reference, error)

func (StepAdjustmentAttributes) InternalTokens

func (sa StepAdjustmentAttributes) InternalTokens() (hclwrite.Tokens, error)

func (StepAdjustmentAttributes) InternalWithRef

func (StepAdjustmentAttributes) MetricIntervalLowerBound

func (sa StepAdjustmentAttributes) MetricIntervalLowerBound() terra.StringValue

func (StepAdjustmentAttributes) MetricIntervalUpperBound

func (sa StepAdjustmentAttributes) MetricIntervalUpperBound() terra.StringValue

func (StepAdjustmentAttributes) ScalingAdjustment

func (sa StepAdjustmentAttributes) ScalingAdjustment() terra.NumberValue

type StepAdjustmentState

type StepAdjustmentState struct {
	MetricIntervalLowerBound string  `json:"metric_interval_lower_bound"`
	MetricIntervalUpperBound string  `json:"metric_interval_upper_bound"`
	ScalingAdjustment        float64 `json:"scaling_adjustment"`
}

type StepScalingPolicyConfiguration

type StepScalingPolicyConfiguration struct {
	// AdjustmentType: string, optional
	AdjustmentType terra.StringValue `hcl:"adjustment_type,attr"`
	// Cooldown: number, optional
	Cooldown terra.NumberValue `hcl:"cooldown,attr"`
	// MetricAggregationType: string, optional
	MetricAggregationType terra.StringValue `hcl:"metric_aggregation_type,attr"`
	// MinAdjustmentMagnitude: number, optional
	MinAdjustmentMagnitude terra.NumberValue `hcl:"min_adjustment_magnitude,attr"`
	// StepAdjustment: min=0
	StepAdjustment []StepAdjustment `hcl:"step_adjustment,block" validate:"min=0"`
}

type StepScalingPolicyConfigurationAttributes

type StepScalingPolicyConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (StepScalingPolicyConfigurationAttributes) AdjustmentType

func (StepScalingPolicyConfigurationAttributes) Cooldown

func (StepScalingPolicyConfigurationAttributes) InternalRef

func (StepScalingPolicyConfigurationAttributes) InternalTokens

func (StepScalingPolicyConfigurationAttributes) InternalWithRef

func (StepScalingPolicyConfigurationAttributes) MetricAggregationType

func (sspc StepScalingPolicyConfigurationAttributes) MetricAggregationType() terra.StringValue

func (StepScalingPolicyConfigurationAttributes) MinAdjustmentMagnitude

func (sspc StepScalingPolicyConfigurationAttributes) MinAdjustmentMagnitude() terra.NumberValue

func (StepScalingPolicyConfigurationAttributes) StepAdjustment

type StepScalingPolicyConfigurationState

type StepScalingPolicyConfigurationState struct {
	AdjustmentType         string                `json:"adjustment_type"`
	Cooldown               float64               `json:"cooldown"`
	MetricAggregationType  string                `json:"metric_aggregation_type"`
	MinAdjustmentMagnitude float64               `json:"min_adjustment_magnitude"`
	StepAdjustment         []StepAdjustmentState `json:"step_adjustment"`
}

type TargetTrackingScalingPolicyConfiguration

type TargetTrackingScalingPolicyConfiguration struct {
	// DisableScaleIn: bool, optional
	DisableScaleIn terra.BoolValue `hcl:"disable_scale_in,attr"`
	// ScaleInCooldown: number, optional
	ScaleInCooldown terra.NumberValue `hcl:"scale_in_cooldown,attr"`
	// ScaleOutCooldown: number, optional
	ScaleOutCooldown terra.NumberValue `hcl:"scale_out_cooldown,attr"`
	// TargetValue: number, required
	TargetValue terra.NumberValue `hcl:"target_value,attr" validate:"required"`
	// CustomizedMetricSpecification: optional
	CustomizedMetricSpecification *CustomizedMetricSpecification `hcl:"customized_metric_specification,block"`
	// PredefinedMetricSpecification: optional
	PredefinedMetricSpecification *PredefinedMetricSpecification `hcl:"predefined_metric_specification,block"`
}

type TargetTrackingScalingPolicyConfigurationAttributes

type TargetTrackingScalingPolicyConfigurationAttributes struct {
	// contains filtered or unexported fields
}

func (TargetTrackingScalingPolicyConfigurationAttributes) CustomizedMetricSpecification

func (TargetTrackingScalingPolicyConfigurationAttributes) DisableScaleIn

func (TargetTrackingScalingPolicyConfigurationAttributes) InternalRef

func (TargetTrackingScalingPolicyConfigurationAttributes) InternalTokens

func (TargetTrackingScalingPolicyConfigurationAttributes) InternalWithRef

func (TargetTrackingScalingPolicyConfigurationAttributes) PredefinedMetricSpecification

func (TargetTrackingScalingPolicyConfigurationAttributes) ScaleInCooldown

func (TargetTrackingScalingPolicyConfigurationAttributes) ScaleOutCooldown

func (TargetTrackingScalingPolicyConfigurationAttributes) TargetValue

type TargetTrackingScalingPolicyConfigurationState

type TargetTrackingScalingPolicyConfigurationState struct {
	DisableScaleIn                bool                                 `json:"disable_scale_in"`
	ScaleInCooldown               float64                              `json:"scale_in_cooldown"`
	ScaleOutCooldown              float64                              `json:"scale_out_cooldown"`
	TargetValue                   float64                              `json:"target_value"`
	CustomizedMetricSpecification []CustomizedMetricSpecificationState `json:"customized_metric_specification"`
	PredefinedMetricSpecification []PredefinedMetricSpecificationState `json:"predefined_metric_specification"`
}

Jump to

Keyboard shortcuts

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