# GroupPolicy

## Properties

| Name                      | Type                                                                                                                                    | Description                                                                                                                                                                                                                                                                                                                                                                                                          | Notes                           |
| ------------------------- | --------------------------------------------------------------------------------------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ------------------------------- |
| **metric**                | [**Metric**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/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\_action**     | [**GroupPolicyScaleInAction**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/grouppolicyscaleinaction)   |                                                                                                                                                                                                                                                                                                                                                                                                                      |                                 |
| **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\_action**    | [**GroupPolicyScaleOutAction**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/grouppolicyscaleoutaction) |                                                                                                                                                                                                                                                                                                                                                                                                                      |                                 |
| **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**                  | [**QueryUnit**](https://docs.ionos.com/sections-test/ruby-sdk/vm-autoscaling-ruby-sdk/models/queryunit)                                 |                                                                                                                                                                                                                                                                                                                                                                                                                      | \[default to 'TOTAL']           |

## Example

```ruby
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
)
```
