Interface ComputeAutoscalerAutoscalingPolicyMetric

  • All Superinterfaces:
    software.amazon.jsii.JsiiSerializable
    All Known Implementing Classes:
    ComputeAutoscalerAutoscalingPolicyMetric.Jsii$Proxy

    @Generated(value="jsii-pacmak/1.102.0 (build e354887)",
               date="2024-08-31T03:59:18.292Z")
    @Stability(Stable)
    public interface ComputeAutoscalerAutoscalingPolicyMetric
    extends software.amazon.jsii.JsiiSerializable
    • Method Detail

      • getName

        @Stability(Stable)
        @NotNull
        String getName()
        The identifier (type) of the Stackdriver Monitoring metric. The metric cannot have negative values.

        The metric must have a value type of INT64 or DOUBLE. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#name ComputeAutoscaler#name}

      • getTarget

        @Stability(Stable)
        @Nullable
        default Number getTarget()
        The target value of the metric that autoscaler should maintain.

        This must be a positive value. A utilization metric scales number of virtual machines handling requests to increase or decrease proportionally to the metric. For example, a good metric to use as a utilizationTarget is www.googleapis.com/compute/instance/network/received_bytes_count. The autoscaler will work to keep this value constant for each of the instances. Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#target ComputeAutoscaler#target}

      • getType

        @Stability(Stable)
        @Nullable
        default String getType()
        Defines how target utilization value is expressed for a Stackdriver Monitoring metric. Possible values: ["GAUGE", "DELTA_PER_SECOND", "DELTA_PER_MINUTE"].

        Docs at Terraform Registry: {@link https://registry.terraform.io/providers/hashicorp/google/5.43.1/docs/resources/compute_autoscaler#type ComputeAutoscaler#type}