appautoscalingpolicy

package
v0.0.0-...-c2cc54e Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2023 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, required
	MetricName terra.StringValue `hcl:"metric_name,attr" validate:"required"`
	// Namespace: string, required
	Namespace terra.StringValue `hcl:"namespace,attr" validate:"required"`
	// Statistic: string, required
	Statistic terra.StringValue `hcl:"statistic,attr" validate:"required"`
	// Unit: string, optional
	Unit terra.StringValue `hcl:"unit,attr"`
	// Dimensions: min=0
	Dimensions []Dimensions `hcl:"dimensions,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) Namespace

func (CustomizedMetricSpecificationAttributes) Statistic

func (CustomizedMetricSpecificationAttributes) Unit

type CustomizedMetricSpecificationState

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

type Dimensions

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

type DimensionsAttributes

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

func (DimensionsAttributes) InternalRef

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

func (DimensionsAttributes) InternalTokens

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

func (DimensionsAttributes) InternalWithRef

func (DimensionsAttributes) Name

func (DimensionsAttributes) Value

type DimensionsState

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

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