1. Packages
  2. Hsdp Provider
  3. API Docs
  4. MetricsAutoscaler
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

hsdp.MetricsAutoscaler

Explore with Pulumi AI

hsdp logo
hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software

    Manages HSDP Metrics Autoscaler settings for Cloudfoundry applications hosted in an HSDP CF space.

    NOTE: This resource is only available when the region and uaa_* keys are set in the provider config

    Metrics Service Broker

    Example Usage

    The following resource enables autoscaling of the HSDP CF hosted myapp, scaling up to 10 instances maximum. The app upscales at 90% CPU utilization and downscales again when CPU usage falls below 5%.

    import * as pulumi from "@pulumi/pulumi";
    import * as hsdp from "@pulumi/hsdp";
    
    const myappAutoscaler = new hsdp.MetricsAutoscaler("myappAutoscaler", {
        metricsInstanceId: cloudfoundry_service_instance.metrics.id,
        appName: cloudfoundry_app.myapp.name,
        enabled: true,
        minInstances: 1,
        maxInstances: 10,
        thresholdCpu: {
            enabled: true,
            min: 5,
            max: 90,
        },
        thresholdMemory: {
            enabled: false,
        },
        thresholdHttpLatency: {
            enabled: false,
        },
        thresholdHttpRate: {
            enabled: false,
        },
    });
    
    import pulumi
    import pulumi_hsdp as hsdp
    
    myapp_autoscaler = hsdp.MetricsAutoscaler("myappAutoscaler",
        metrics_instance_id=cloudfoundry_service_instance["metrics"]["id"],
        app_name=cloudfoundry_app["myapp"]["name"],
        enabled=True,
        min_instances=1,
        max_instances=10,
        threshold_cpu={
            "enabled": True,
            "min": 5,
            "max": 90,
        },
        threshold_memory={
            "enabled": False,
        },
        threshold_http_latency={
            "enabled": False,
        },
        threshold_http_rate={
            "enabled": False,
        })
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/hsdp/hsdp"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := hsdp.NewMetricsAutoscaler(ctx, "myappAutoscaler", &hsdp.MetricsAutoscalerArgs{
    			MetricsInstanceId: pulumi.Any(cloudfoundry_service_instance.Metrics.Id),
    			AppName:           pulumi.Any(cloudfoundry_app.Myapp.Name),
    			Enabled:           pulumi.Bool(true),
    			MinInstances:      pulumi.Float64(1),
    			MaxInstances:      pulumi.Float64(10),
    			ThresholdCpu: &hsdp.MetricsAutoscalerThresholdCpuArgs{
    				Enabled: pulumi.Bool(true),
    				Min:     pulumi.Float64(5),
    				Max:     pulumi.Float64(90),
    			},
    			ThresholdMemory: &hsdp.MetricsAutoscalerThresholdMemoryArgs{
    				Enabled: pulumi.Bool(false),
    			},
    			ThresholdHttpLatency: &hsdp.MetricsAutoscalerThresholdHttpLatencyArgs{
    				Enabled: pulumi.Bool(false),
    			},
    			ThresholdHttpRate: &hsdp.MetricsAutoscalerThresholdHttpRateArgs{
    				Enabled: pulumi.Bool(false),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Hsdp = Pulumi.Hsdp;
    
    return await Deployment.RunAsync(() => 
    {
        var myappAutoscaler = new Hsdp.MetricsAutoscaler("myappAutoscaler", new()
        {
            MetricsInstanceId = cloudfoundry_service_instance.Metrics.Id,
            AppName = cloudfoundry_app.Myapp.Name,
            Enabled = true,
            MinInstances = 1,
            MaxInstances = 10,
            ThresholdCpu = new Hsdp.Inputs.MetricsAutoscalerThresholdCpuArgs
            {
                Enabled = true,
                Min = 5,
                Max = 90,
            },
            ThresholdMemory = new Hsdp.Inputs.MetricsAutoscalerThresholdMemoryArgs
            {
                Enabled = false,
            },
            ThresholdHttpLatency = new Hsdp.Inputs.MetricsAutoscalerThresholdHttpLatencyArgs
            {
                Enabled = false,
            },
            ThresholdHttpRate = new Hsdp.Inputs.MetricsAutoscalerThresholdHttpRateArgs
            {
                Enabled = false,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.hsdp.MetricsAutoscaler;
    import com.pulumi.hsdp.MetricsAutoscalerArgs;
    import com.pulumi.hsdp.inputs.MetricsAutoscalerThresholdCpuArgs;
    import com.pulumi.hsdp.inputs.MetricsAutoscalerThresholdMemoryArgs;
    import com.pulumi.hsdp.inputs.MetricsAutoscalerThresholdHttpLatencyArgs;
    import com.pulumi.hsdp.inputs.MetricsAutoscalerThresholdHttpRateArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            var myappAutoscaler = new MetricsAutoscaler("myappAutoscaler", MetricsAutoscalerArgs.builder()
                .metricsInstanceId(cloudfoundry_service_instance.metrics().id())
                .appName(cloudfoundry_app.myapp().name())
                .enabled(true)
                .minInstances(1)
                .maxInstances(10)
                .thresholdCpu(MetricsAutoscalerThresholdCpuArgs.builder()
                    .enabled(true)
                    .min(5)
                    .max(90)
                    .build())
                .thresholdMemory(MetricsAutoscalerThresholdMemoryArgs.builder()
                    .enabled(false)
                    .build())
                .thresholdHttpLatency(MetricsAutoscalerThresholdHttpLatencyArgs.builder()
                    .enabled(false)
                    .build())
                .thresholdHttpRate(MetricsAutoscalerThresholdHttpRateArgs.builder()
                    .enabled(false)
                    .build())
                .build());
    
        }
    }
    
    resources:
      myappAutoscaler:
        type: hsdp:MetricsAutoscaler
        properties:
          metricsInstanceId: ${cloudfoundry_service_instance.metrics.id}
          appName: ${cloudfoundry_app.myapp.name}
          enabled: true
          minInstances: 1
          maxInstances: 10
          thresholdCpu:
            enabled: true
            min: 5
            max: 90
          thresholdMemory:
            enabled: false
          thresholdHttpLatency:
            enabled: false
          thresholdHttpRate:
            enabled: false
    

    Create MetricsAutoscaler Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new MetricsAutoscaler(name: string, args: MetricsAutoscalerArgs, opts?: CustomResourceOptions);
    @overload
    def MetricsAutoscaler(resource_name: str,
                          args: MetricsAutoscalerArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def MetricsAutoscaler(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          app_name: Optional[str] = None,
                          metrics_instance_id: Optional[str] = None,
                          threshold_cpu: Optional[MetricsAutoscalerThresholdCpuArgs] = None,
                          threshold_http_latency: Optional[MetricsAutoscalerThresholdHttpLatencyArgs] = None,
                          threshold_http_rate: Optional[MetricsAutoscalerThresholdHttpRateArgs] = None,
                          threshold_memory: Optional[MetricsAutoscalerThresholdMemoryArgs] = None,
                          enabled: Optional[bool] = None,
                          max_instances: Optional[float] = None,
                          metrics_autoscaler_id: Optional[str] = None,
                          min_instances: Optional[float] = None,
                          timeouts: Optional[MetricsAutoscalerTimeoutsArgs] = None)
    func NewMetricsAutoscaler(ctx *Context, name string, args MetricsAutoscalerArgs, opts ...ResourceOption) (*MetricsAutoscaler, error)
    public MetricsAutoscaler(string name, MetricsAutoscalerArgs args, CustomResourceOptions? opts = null)
    public MetricsAutoscaler(String name, MetricsAutoscalerArgs args)
    public MetricsAutoscaler(String name, MetricsAutoscalerArgs args, CustomResourceOptions options)
    
    type: hsdp:MetricsAutoscaler
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args MetricsAutoscalerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args MetricsAutoscalerArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args MetricsAutoscalerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args MetricsAutoscalerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args MetricsAutoscalerArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var metricsAutoscalerResource = new Hsdp.MetricsAutoscaler("metricsAutoscalerResource", new()
    {
        AppName = "string",
        MetricsInstanceId = "string",
        ThresholdCpu = new Hsdp.Inputs.MetricsAutoscalerThresholdCpuArgs
        {
            Enabled = false,
            Max = 0,
            Min = 0,
        },
        ThresholdHttpLatency = new Hsdp.Inputs.MetricsAutoscalerThresholdHttpLatencyArgs
        {
            Enabled = false,
            Max = 0,
            Min = 0,
        },
        ThresholdHttpRate = new Hsdp.Inputs.MetricsAutoscalerThresholdHttpRateArgs
        {
            Enabled = false,
            Max = 0,
            Min = 0,
        },
        ThresholdMemory = new Hsdp.Inputs.MetricsAutoscalerThresholdMemoryArgs
        {
            Enabled = false,
            Max = 0,
            Min = 0,
        },
        Enabled = false,
        MaxInstances = 0,
        MetricsAutoscalerId = "string",
        MinInstances = 0,
        Timeouts = new Hsdp.Inputs.MetricsAutoscalerTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := hsdp.NewMetricsAutoscaler(ctx, "metricsAutoscalerResource", &hsdp.MetricsAutoscalerArgs{
    	AppName:           pulumi.String("string"),
    	MetricsInstanceId: pulumi.String("string"),
    	ThresholdCpu: &hsdp.MetricsAutoscalerThresholdCpuArgs{
    		Enabled: pulumi.Bool(false),
    		Max:     pulumi.Float64(0),
    		Min:     pulumi.Float64(0),
    	},
    	ThresholdHttpLatency: &hsdp.MetricsAutoscalerThresholdHttpLatencyArgs{
    		Enabled: pulumi.Bool(false),
    		Max:     pulumi.Float64(0),
    		Min:     pulumi.Float64(0),
    	},
    	ThresholdHttpRate: &hsdp.MetricsAutoscalerThresholdHttpRateArgs{
    		Enabled: pulumi.Bool(false),
    		Max:     pulumi.Float64(0),
    		Min:     pulumi.Float64(0),
    	},
    	ThresholdMemory: &hsdp.MetricsAutoscalerThresholdMemoryArgs{
    		Enabled: pulumi.Bool(false),
    		Max:     pulumi.Float64(0),
    		Min:     pulumi.Float64(0),
    	},
    	Enabled:             pulumi.Bool(false),
    	MaxInstances:        pulumi.Float64(0),
    	MetricsAutoscalerId: pulumi.String("string"),
    	MinInstances:        pulumi.Float64(0),
    	Timeouts: &hsdp.MetricsAutoscalerTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    var metricsAutoscalerResource = new MetricsAutoscaler("metricsAutoscalerResource", MetricsAutoscalerArgs.builder()
        .appName("string")
        .metricsInstanceId("string")
        .thresholdCpu(MetricsAutoscalerThresholdCpuArgs.builder()
            .enabled(false)
            .max(0)
            .min(0)
            .build())
        .thresholdHttpLatency(MetricsAutoscalerThresholdHttpLatencyArgs.builder()
            .enabled(false)
            .max(0)
            .min(0)
            .build())
        .thresholdHttpRate(MetricsAutoscalerThresholdHttpRateArgs.builder()
            .enabled(false)
            .max(0)
            .min(0)
            .build())
        .thresholdMemory(MetricsAutoscalerThresholdMemoryArgs.builder()
            .enabled(false)
            .max(0)
            .min(0)
            .build())
        .enabled(false)
        .maxInstances(0)
        .metricsAutoscalerId("string")
        .minInstances(0)
        .timeouts(MetricsAutoscalerTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    metrics_autoscaler_resource = hsdp.MetricsAutoscaler("metricsAutoscalerResource",
        app_name="string",
        metrics_instance_id="string",
        threshold_cpu={
            "enabled": False,
            "max": 0,
            "min": 0,
        },
        threshold_http_latency={
            "enabled": False,
            "max": 0,
            "min": 0,
        },
        threshold_http_rate={
            "enabled": False,
            "max": 0,
            "min": 0,
        },
        threshold_memory={
            "enabled": False,
            "max": 0,
            "min": 0,
        },
        enabled=False,
        max_instances=0,
        metrics_autoscaler_id="string",
        min_instances=0,
        timeouts={
            "create": "string",
            "delete": "string",
            "update": "string",
        })
    
    const metricsAutoscalerResource = new hsdp.MetricsAutoscaler("metricsAutoscalerResource", {
        appName: "string",
        metricsInstanceId: "string",
        thresholdCpu: {
            enabled: false,
            max: 0,
            min: 0,
        },
        thresholdHttpLatency: {
            enabled: false,
            max: 0,
            min: 0,
        },
        thresholdHttpRate: {
            enabled: false,
            max: 0,
            min: 0,
        },
        thresholdMemory: {
            enabled: false,
            max: 0,
            min: 0,
        },
        enabled: false,
        maxInstances: 0,
        metricsAutoscalerId: "string",
        minInstances: 0,
        timeouts: {
            create: "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: hsdp:MetricsAutoscaler
    properties:
        appName: string
        enabled: false
        maxInstances: 0
        metricsAutoscalerId: string
        metricsInstanceId: string
        minInstances: 0
        thresholdCpu:
            enabled: false
            max: 0
            min: 0
        thresholdHttpLatency:
            enabled: false
            max: 0
            min: 0
        thresholdHttpRate:
            enabled: false
            max: 0
            min: 0
        thresholdMemory:
            enabled: false
            max: 0
            min: 0
        timeouts:
            create: string
            delete: string
            update: string
    

    MetricsAutoscaler Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The MetricsAutoscaler resource accepts the following input properties:

    AppName string
    The CF app name to apply this autoscaler settings for.
    MetricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    ThresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    ThresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    ThresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    ThresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    Enabled bool
    When set to true this threshold type is evaluated
    MaxInstances double
    MetricsAutoscalerId string
    The resource instance ID
    MinInstances double
    Timeouts MetricsAutoscalerTimeouts
    AppName string
    The CF app name to apply this autoscaler settings for.
    MetricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    ThresholdCpu MetricsAutoscalerThresholdCpuArgs
    CPU threshold block. Min/max values are %
    ThresholdHttpLatency MetricsAutoscalerThresholdHttpLatencyArgs
    HTTP latency threshold block. Min/max values are in ms
    ThresholdHttpRate MetricsAutoscalerThresholdHttpRateArgs

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    ThresholdMemory MetricsAutoscalerThresholdMemoryArgs
    Memory threshold block. Min/max values are %
    Enabled bool
    When set to true this threshold type is evaluated
    MaxInstances float64
    MetricsAutoscalerId string
    The resource instance ID
    MinInstances float64
    Timeouts MetricsAutoscalerTimeoutsArgs
    appName String
    The CF app name to apply this autoscaler settings for.
    metricsInstanceId String
    The Metrics service instance UUID running in the space where the app is hosted.
    thresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    thresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    enabled Boolean
    When set to true this threshold type is evaluated
    maxInstances Double
    metricsAutoscalerId String
    The resource instance ID
    minInstances Double
    timeouts MetricsAutoscalerTimeouts
    appName string
    The CF app name to apply this autoscaler settings for.
    metricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    thresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    thresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    enabled boolean
    When set to true this threshold type is evaluated
    maxInstances number
    metricsAutoscalerId string
    The resource instance ID
    minInstances number
    timeouts MetricsAutoscalerTimeouts
    app_name str
    The CF app name to apply this autoscaler settings for.
    metrics_instance_id str
    The Metrics service instance UUID running in the space where the app is hosted.
    threshold_cpu MetricsAutoscalerThresholdCpuArgs
    CPU threshold block. Min/max values are %
    threshold_http_latency MetricsAutoscalerThresholdHttpLatencyArgs
    HTTP latency threshold block. Min/max values are in ms
    threshold_http_rate MetricsAutoscalerThresholdHttpRateArgs

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    threshold_memory MetricsAutoscalerThresholdMemoryArgs
    Memory threshold block. Min/max values are %
    enabled bool
    When set to true this threshold type is evaluated
    max_instances float
    metrics_autoscaler_id str
    The resource instance ID
    min_instances float
    timeouts MetricsAutoscalerTimeoutsArgs
    appName String
    The CF app name to apply this autoscaler settings for.
    metricsInstanceId String
    The Metrics service instance UUID running in the space where the app is hosted.
    thresholdCpu Property Map
    CPU threshold block. Min/max values are %
    thresholdHttpLatency Property Map
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate Property Map

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory Property Map
    Memory threshold block. Min/max values are %
    enabled Boolean
    When set to true this threshold type is evaluated
    maxInstances Number
    metricsAutoscalerId String
    The resource instance ID
    minInstances Number
    timeouts Property Map

    Outputs

    All input properties are implicitly available as output properties. Additionally, the MetricsAutoscaler resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing MetricsAutoscaler Resource

    Get an existing MetricsAutoscaler resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: MetricsAutoscalerState, opts?: CustomResourceOptions): MetricsAutoscaler
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            app_name: Optional[str] = None,
            enabled: Optional[bool] = None,
            max_instances: Optional[float] = None,
            metrics_autoscaler_id: Optional[str] = None,
            metrics_instance_id: Optional[str] = None,
            min_instances: Optional[float] = None,
            threshold_cpu: Optional[MetricsAutoscalerThresholdCpuArgs] = None,
            threshold_http_latency: Optional[MetricsAutoscalerThresholdHttpLatencyArgs] = None,
            threshold_http_rate: Optional[MetricsAutoscalerThresholdHttpRateArgs] = None,
            threshold_memory: Optional[MetricsAutoscalerThresholdMemoryArgs] = None,
            timeouts: Optional[MetricsAutoscalerTimeoutsArgs] = None) -> MetricsAutoscaler
    func GetMetricsAutoscaler(ctx *Context, name string, id IDInput, state *MetricsAutoscalerState, opts ...ResourceOption) (*MetricsAutoscaler, error)
    public static MetricsAutoscaler Get(string name, Input<string> id, MetricsAutoscalerState? state, CustomResourceOptions? opts = null)
    public static MetricsAutoscaler get(String name, Output<String> id, MetricsAutoscalerState state, CustomResourceOptions options)
    resources:  _:    type: hsdp:MetricsAutoscaler    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AppName string
    The CF app name to apply this autoscaler settings for.
    Enabled bool
    When set to true this threshold type is evaluated
    MaxInstances double
    MetricsAutoscalerId string
    The resource instance ID
    MetricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    MinInstances double
    ThresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    ThresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    ThresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    ThresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    Timeouts MetricsAutoscalerTimeouts
    AppName string
    The CF app name to apply this autoscaler settings for.
    Enabled bool
    When set to true this threshold type is evaluated
    MaxInstances float64
    MetricsAutoscalerId string
    The resource instance ID
    MetricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    MinInstances float64
    ThresholdCpu MetricsAutoscalerThresholdCpuArgs
    CPU threshold block. Min/max values are %
    ThresholdHttpLatency MetricsAutoscalerThresholdHttpLatencyArgs
    HTTP latency threshold block. Min/max values are in ms
    ThresholdHttpRate MetricsAutoscalerThresholdHttpRateArgs

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    ThresholdMemory MetricsAutoscalerThresholdMemoryArgs
    Memory threshold block. Min/max values are %
    Timeouts MetricsAutoscalerTimeoutsArgs
    appName String
    The CF app name to apply this autoscaler settings for.
    enabled Boolean
    When set to true this threshold type is evaluated
    maxInstances Double
    metricsAutoscalerId String
    The resource instance ID
    metricsInstanceId String
    The Metrics service instance UUID running in the space where the app is hosted.
    minInstances Double
    thresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    thresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    timeouts MetricsAutoscalerTimeouts
    appName string
    The CF app name to apply this autoscaler settings for.
    enabled boolean
    When set to true this threshold type is evaluated
    maxInstances number
    metricsAutoscalerId string
    The resource instance ID
    metricsInstanceId string
    The Metrics service instance UUID running in the space where the app is hosted.
    minInstances number
    thresholdCpu MetricsAutoscalerThresholdCpu
    CPU threshold block. Min/max values are %
    thresholdHttpLatency MetricsAutoscalerThresholdHttpLatency
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate MetricsAutoscalerThresholdHttpRate

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory MetricsAutoscalerThresholdMemory
    Memory threshold block. Min/max values are %
    timeouts MetricsAutoscalerTimeouts
    app_name str
    The CF app name to apply this autoscaler settings for.
    enabled bool
    When set to true this threshold type is evaluated
    max_instances float
    metrics_autoscaler_id str
    The resource instance ID
    metrics_instance_id str
    The Metrics service instance UUID running in the space where the app is hosted.
    min_instances float
    threshold_cpu MetricsAutoscalerThresholdCpuArgs
    CPU threshold block. Min/max values are %
    threshold_http_latency MetricsAutoscalerThresholdHttpLatencyArgs
    HTTP latency threshold block. Min/max values are in ms
    threshold_http_rate MetricsAutoscalerThresholdHttpRateArgs

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    threshold_memory MetricsAutoscalerThresholdMemoryArgs
    Memory threshold block. Min/max values are %
    timeouts MetricsAutoscalerTimeoutsArgs
    appName String
    The CF app name to apply this autoscaler settings for.
    enabled Boolean
    When set to true this threshold type is evaluated
    maxInstances Number
    metricsAutoscalerId String
    The resource instance ID
    metricsInstanceId String
    The Metrics service instance UUID running in the space where the app is hosted.
    minInstances Number
    thresholdCpu Property Map
    CPU threshold block. Min/max values are %
    thresholdHttpLatency Property Map
    HTTP latency threshold block. Min/max values are in ms
    thresholdHttpRate Property Map

    HTTP rate threshold block. Min/max values are in requests/minute

    For each threshold block the following argments are supported:

    thresholdMemory Property Map
    Memory threshold block. Min/max values are %
    timeouts Property Map

    Supporting Types

    MetricsAutoscalerThresholdCpu, MetricsAutoscalerThresholdCpuArgs

    Enabled bool
    When set to true this threshold type is evaluated
    Max double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    Enabled bool
    When set to true this threshold type is evaluated
    Max float64
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min float64
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled boolean
    When set to true this threshold type is evaluated
    max number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled bool
    When set to true this threshold type is evaluated
    max float
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min float
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.

    MetricsAutoscalerThresholdHttpLatency, MetricsAutoscalerThresholdHttpLatencyArgs

    Enabled bool
    When set to true this threshold type is evaluated
    Max double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    Enabled bool
    When set to true this threshold type is evaluated
    Max float64
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min float64
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled boolean
    When set to true this threshold type is evaluated
    max number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled bool
    When set to true this threshold type is evaluated
    max float
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min float
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.

    MetricsAutoscalerThresholdHttpRate, MetricsAutoscalerThresholdHttpRateArgs

    Enabled bool
    When set to true this threshold type is evaluated
    Max double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    Enabled bool
    When set to true this threshold type is evaluated
    Max float64
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min float64
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled boolean
    When set to true this threshold type is evaluated
    max number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled bool
    When set to true this threshold type is evaluated
    max float
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min float
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.

    MetricsAutoscalerThresholdMemory, MetricsAutoscalerThresholdMemoryArgs

    Enabled bool
    When set to true this threshold type is evaluated
    Max double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    Enabled bool
    When set to true this threshold type is evaluated
    Max float64
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    Min float64
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Double
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Double
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled boolean
    When set to true this threshold type is evaluated
    max number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled bool
    When set to true this threshold type is evaluated
    max float
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min float
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.
    enabled Boolean
    When set to true this threshold type is evaluated
    max Number
    The maxmium value of the resource. When the resource hits this value, upscaling is triggered.
    min Number
    The minimum value of the resource. When the resource hits this value, downscaling is triggered.

    MetricsAutoscalerTimeouts, MetricsAutoscalerTimeoutsArgs

    Create string
    Delete string
    Update string
    Create string
    Delete string
    Update string
    create String
    delete String
    update String
    create string
    delete string
    update string
    create str
    delete str
    update str
    create String
    delete String
    update String

    Import

    Instance state is imported automatically

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    hsdp philips-software/terraform-provider-hsdp
    License
    Notes
    This Pulumi package is based on the hsdp Terraform Provider.
    hsdp logo
    hsdp 0.65.3 published on Tuesday, Apr 15, 2025 by philips-software