# Google Cloud Monitoring v3 API - Class TimeSeriesRatio (3.16.0)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.16.0 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.15.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.15.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.14.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.14.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.13.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.13.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.12.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.12.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.11.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.11.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.10.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.10.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.9.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.9.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.8.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.8.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.7.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.7.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.6.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.5.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.4.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.3.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.2.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.2.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.1.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.1.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [3.0.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/3.0.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [2.6.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.6.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [2.5.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.5.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [2.4.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.4.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)
- [2.3.0](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/2.3.0/Google.Cloud.Monitoring.V3.TimeSeriesRatio)

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

Reference documentation and code samples for the Google Cloud Monitoring v3 API class TimeSeriesRatio.

A `TimeSeriesRatio` specifies two `TimeSeries` to use for computing the
`good_service / total_service` ratio. The specified `TimeSeries` must have
`ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
DELTA` or `MetricKind = CUMULATIVE`. The `TimeSeriesRatio` must specify
exactly two of good, bad, and total, and the relationship `good_service +
bad_service = total_service` will be assumed.

## Inheritance

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

## Implements

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

## Assembly

Google.Cloud.Monitoring.V3.dll

## Constructors

### TimeSeriesRatio()

    public TimeSeriesRatio()

### TimeSeriesRatio(TimeSeriesRatio)

    public TimeSeriesRatio(TimeSeriesRatio other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Monitoring.V3/latest/Google.Cloud.Monitoring.V3.TimeSeriesRatio` |

## Properties

### BadServiceFilter

    public string BadServiceFilter { get; set; }

A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` quantifying bad service, either demanded service
that was not provided or demanded service that was of inadequate quality.
Must have `ValueType = DOUBLE` or `ValueType = INT64` and must have
`MetricKind = DELTA` or `MetricKind = CUMULATIVE`.

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

### GoodServiceFilter

    public string GoodServiceFilter { get; set; }

A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` quantifying good service provided. Must have
`ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
DELTA` or `MetricKind = CUMULATIVE`.

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

### TotalServiceFilter

    public string TotalServiceFilter { get; set; }

A [monitoring filter](https://cloud.google.com/monitoring/api/v3/filters)
specifying a `TimeSeries` quantifying total demanded service. Must have
`ValueType = DOUBLE` or `ValueType = INT64` and must have `MetricKind =
DELTA` or `MetricKind = CUMULATIVE`.

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