1.0.0-beta87 (latest) 1.0.0-beta86

    public sealed class AutoscalingMetricSpec : IMessage<AutoscalingMetricSpec>, IEquatable<AutoscalingMetricSpec>, IDeepCloneable<AutoscalingMetricSpec>, IBufferMessage, IMessage

Reference documentation and code samples for the Vertex AI v1beta1 API class AutoscalingMetricSpec.

The metric specification that defines the target resource utilization
(CPU utilization, accelerator's duty cycle, and so on) for calculating the
desired replica count.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> AutoscalingMetricSpec

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[AutoscalingMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AutoscalingMetricSpec), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[AutoscalingMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AutoscalingMetricSpec), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[AutoscalingMetricSpec](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AutoscalingMetricSpec), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.AIPlatform.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1)

## Assembly

Google.Cloud.AIPlatform.V1Beta1.dll

## Constructors

### AutoscalingMetricSpec()

    public AutoscalingMetricSpec()

### AutoscalingMetricSpec(AutoscalingMetricSpec)

    public AutoscalingMetricSpec(AutoscalingMetricSpec other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.AIPlatform.V1Beta1/latest/Google.Cloud.AIPlatform.V1Beta1.AutoscalingMetricSpec` |

## Properties

### MetricName

    public string MetricName { get; set; }

Required. The resource metric name.
Supported metrics:

- For Online Prediction:
- `aiplatform.googleapis.com/prediction/online/accelerator/duty_cycle`
- `aiplatform.googleapis.com/prediction/online/cpu/utilization`
- `aiplatform.googleapis.com/prediction/online/request_count`

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### MonitoredResourceLabels

    public MapField<string, string> MonitoredResourceLabels { get; }

Optional. The Cloud Monitoring monitored resource labels as key value pairs
used for metrics filtering. See Cloud Monitoring Labels
<https://cloud.google.com/monitoring/api/v3/metric-model#generic-label-info>

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.MapField-2.htmlhttps://learn.microsoft.com/dotnet/api/system.stringhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Target

    public int Target { get; set; }

The target resource utilization in percentage (1% - 100%) for the given
metric; once the real usage deviates from the target by a certain
percentage, the machine replicas change. The default value is 60
(representing 60%) if not provided.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |