hsdp.MetricsAutoscaler
Explore with Pulumi AI
Manages HSDP Metrics Autoscaler settings for Cloudfoundry applications hosted in an HSDP CF space.
NOTE: This resource is only available when the
region
anduaa_*
keys are set in the provider config
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:
- App
Name string - The CF app name to apply this autoscaler settings for.
- Metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- Threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- Threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- Threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- Threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- Enabled bool
- When set to
true
this threshold type is evaluated - Max
Instances double - Metrics
Autoscaler stringId - The resource instance ID
- Min
Instances double - Timeouts
Metrics
Autoscaler Timeouts
- App
Name string - The CF app name to apply this autoscaler settings for.
- Metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- Threshold
Cpu MetricsAutoscaler Threshold Cpu Args - CPU threshold block. Min/max values are
%
- Threshold
Http MetricsLatency Autoscaler Threshold Http Latency Args - HTTP latency threshold block. Min/max values are in
ms
- Threshold
Http MetricsRate Autoscaler Threshold Http Rate Args HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- Threshold
Memory MetricsAutoscaler Threshold Memory Args - Memory threshold block. Min/max values are
%
- Enabled bool
- When set to
true
this threshold type is evaluated - Max
Instances float64 - Metrics
Autoscaler stringId - The resource instance ID
- Min
Instances float64 - Timeouts
Metrics
Autoscaler Timeouts Args
- app
Name String - The CF app name to apply this autoscaler settings for.
- metrics
Instance StringId - The Metrics service instance UUID running in the space where the app is hosted.
- threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- enabled Boolean
- When set to
true
this threshold type is evaluated - max
Instances Double - metrics
Autoscaler StringId - The resource instance ID
- min
Instances Double - timeouts
Metrics
Autoscaler Timeouts
- app
Name string - The CF app name to apply this autoscaler settings for.
- metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- enabled boolean
- When set to
true
this threshold type is evaluated - max
Instances number - metrics
Autoscaler stringId - The resource instance ID
- min
Instances number - timeouts
Metrics
Autoscaler Timeouts
- app_
name str - The CF app name to apply this autoscaler settings for.
- metrics_
instance_ strid - The Metrics service instance UUID running in the space where the app is hosted.
- threshold_
cpu MetricsAutoscaler Threshold Cpu Args - CPU threshold block. Min/max values are
%
- threshold_
http_ Metricslatency Autoscaler Threshold Http Latency Args - HTTP latency threshold block. Min/max values are in
ms
- threshold_
http_ Metricsrate Autoscaler Threshold Http Rate Args HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold_
memory MetricsAutoscaler Threshold Memory Args - Memory threshold block. Min/max values are
%
- enabled bool
- When set to
true
this threshold type is evaluated - max_
instances float - metrics_
autoscaler_ strid - The resource instance ID
- min_
instances float - timeouts
Metrics
Autoscaler Timeouts Args
- app
Name String - The CF app name to apply this autoscaler settings for.
- metrics
Instance StringId - The Metrics service instance UUID running in the space where the app is hosted.
- threshold
Cpu Property Map - CPU threshold block. Min/max values are
%
- threshold
Http Property MapLatency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http Property MapRate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory Property Map - Memory threshold block. Min/max values are
%
- enabled Boolean
- When set to
true
this threshold type is evaluated - max
Instances Number - metrics
Autoscaler StringId - The resource instance ID
- min
Instances 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.
- App
Name string - The CF app name to apply this autoscaler settings for.
- Enabled bool
- When set to
true
this threshold type is evaluated - Max
Instances double - Metrics
Autoscaler stringId - The resource instance ID
- Metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- Min
Instances double - Threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- Threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- Threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- Threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- Timeouts
Metrics
Autoscaler Timeouts
- App
Name string - The CF app name to apply this autoscaler settings for.
- Enabled bool
- When set to
true
this threshold type is evaluated - Max
Instances float64 - Metrics
Autoscaler stringId - The resource instance ID
- Metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- Min
Instances float64 - Threshold
Cpu MetricsAutoscaler Threshold Cpu Args - CPU threshold block. Min/max values are
%
- Threshold
Http MetricsLatency Autoscaler Threshold Http Latency Args - HTTP latency threshold block. Min/max values are in
ms
- Threshold
Http MetricsRate Autoscaler Threshold Http Rate Args HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- Threshold
Memory MetricsAutoscaler Threshold Memory Args - Memory threshold block. Min/max values are
%
- Timeouts
Metrics
Autoscaler Timeouts Args
- app
Name String - The CF app name to apply this autoscaler settings for.
- enabled Boolean
- When set to
true
this threshold type is evaluated - max
Instances Double - metrics
Autoscaler StringId - The resource instance ID
- metrics
Instance StringId - The Metrics service instance UUID running in the space where the app is hosted.
- min
Instances Double - threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- timeouts
Metrics
Autoscaler Timeouts
- app
Name string - The CF app name to apply this autoscaler settings for.
- enabled boolean
- When set to
true
this threshold type is evaluated - max
Instances number - metrics
Autoscaler stringId - The resource instance ID
- metrics
Instance stringId - The Metrics service instance UUID running in the space where the app is hosted.
- min
Instances number - threshold
Cpu MetricsAutoscaler Threshold Cpu - CPU threshold block. Min/max values are
%
- threshold
Http MetricsLatency Autoscaler Threshold Http Latency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http MetricsRate Autoscaler Threshold Http Rate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory MetricsAutoscaler Threshold Memory - Memory threshold block. Min/max values are
%
- timeouts
Metrics
Autoscaler Timeouts
- 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_ strid - The resource instance ID
- metrics_
instance_ strid - The Metrics service instance UUID running in the space where the app is hosted.
- min_
instances float - threshold_
cpu MetricsAutoscaler Threshold Cpu Args - CPU threshold block. Min/max values are
%
- threshold_
http_ Metricslatency Autoscaler Threshold Http Latency Args - HTTP latency threshold block. Min/max values are in
ms
- threshold_
http_ Metricsrate Autoscaler Threshold Http Rate Args HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold_
memory MetricsAutoscaler Threshold Memory Args - Memory threshold block. Min/max values are
%
- timeouts
Metrics
Autoscaler Timeouts Args
- app
Name String - The CF app name to apply this autoscaler settings for.
- enabled Boolean
- When set to
true
this threshold type is evaluated - max
Instances Number - metrics
Autoscaler StringId - The resource instance ID
- metrics
Instance StringId - The Metrics service instance UUID running in the space where the app is hosted.
- min
Instances Number - threshold
Cpu Property Map - CPU threshold block. Min/max values are
%
- threshold
Http Property MapLatency - HTTP latency threshold block. Min/max values are in
ms
- threshold
Http Property MapRate HTTP rate threshold block. Min/max values are in
requests/minute
For each threshold block the following argments are supported:
- threshold
Memory Property Map - Memory threshold block. Min/max values are
%
- timeouts Property Map
Supporting Types
MetricsAutoscalerThresholdCpu, MetricsAutoscalerThresholdCpuArgs
MetricsAutoscalerThresholdHttpLatency, MetricsAutoscalerThresholdHttpLatencyArgs
MetricsAutoscalerThresholdHttpRate, MetricsAutoscalerThresholdHttpRateArgs
MetricsAutoscalerThresholdMemory, MetricsAutoscalerThresholdMemoryArgs
MetricsAutoscalerTimeouts, MetricsAutoscalerTimeoutsArgs
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.