For the complete documentation index, see llms.txt. This page is also available as Markdown.

GroupPolicy

Properties

Name
Type
Description
Notes

metric

range

String

Specifies the time range for which the samples are to be aggregated. Must be >= 2 minutes.

[optional][default to '120s']

scale_in_threshold

Float

The lower threshold for the value of the 'metric'. Used with the `less than` (<) operator. When this value is exceeded, a scale-in action is triggered, specified by the 'scaleInAction' property. The value must have a higher minimum delta to the 'scaleOutThreshold', depending on the 'metric', to avoid competing for actions at the same time.

scale_out_threshold

Float

The upper threshold for the value of the 'metric'. Used with the 'greater than' (>) operator. A scale-out action is triggered when this value is exceeded, specified by the 'scaleOutAction' property. The value must have a lower minimum delta to the 'scaleInThreshold', depending on the metric, to avoid competing for actions simultaneously. If 'properties.policy.unit=TOTAL', a value >= 40 must be chosen.

unit

[default to 'TOTAL']

Example

require 'ionoscloud-vm-autoscaling'

instance = IonoscloudVmAutoscaling::GroupPolicy.new(
  metric: null,
  range: P1D,
  scale_in_action: null,
  scale_in_threshold: 33,
  scale_out_action: null,
  scale_out_threshold: 77,
  unit: null
)

Last updated

Was this helpful?