# SaaS Runtime v1beta1 API - Class ErrorBudget (1.0.0-beta05)

1.0.0-beta05 (latest) 1.0.0-beta04

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

Reference documentation and code samples for the SaaS Runtime v1beta1 API class ErrorBudget.

The configuration for error budget. If the number of failed units exceeds
max(allowed_count, allowed_ratio \* total_units), the rollout will be paused.

## Inheritance

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

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ErrorBudget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.ErrorBudget), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ErrorBudget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.ErrorBudget), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ErrorBudget](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.ErrorBudget), [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.SaasPlatform.SaasServiceMgmt.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1/latest/Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1)

## Assembly

Google.Cloud.SaasPlatform.SaasServiceMgmt.V1Beta1.dll

## Constructors

### ErrorBudget()

    public ErrorBudget()

### ErrorBudget(ErrorBudget)

    public ErrorBudget(ErrorBudget other)

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

## Properties

### AllowedCount

    public int AllowedCount { get; set; }

Optional. The maximum number of failed units allowed in a location without
pausing the rollout.

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

### AllowedPercentage

    public int AllowedPercentage { get; set; }

Optional. The maximum percentage of units allowed to fail (0, 100\] within a
location without pausing the rollout.

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

### HasAllowedCount

    public bool HasAllowedCount { get; }

Gets whether the "allowed_count" field is set

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

### HasAllowedPercentage

    public bool HasAllowedPercentage { get; }

Gets whether the "allowed_percentage" field is set

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