2.21.0 (latest) 2.20.0 2.19.0 2.18.0 2.17.0 2.16.0 2.15.0 2.14.0 2.13.0 2.12.0 2.11.0 2.10.0 2.9.0 2.8.0 2.7.0 2.6.0 2.5.0 2.4.0 2.3.0 2.2.1 2.1.0 2.0.0 1.3.0 1.2.0 1.1.0 1.0.0

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

Reference documentation and code samples for the Contact Center AI Insights v1 API class QueryMetricsRequest.

The request for querying metrics.

## Inheritance

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

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[QueryMetricsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryMetricsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[QueryMetricsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## 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.ContactCenterInsights.V1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.md.txt)

## Assembly

Google.Cloud.ContactCenterInsights.V1.dll

## Constructors

### QueryMetricsRequest()

    public QueryMetricsRequest()

### QueryMetricsRequest(QueryMetricsRequest)

    public QueryMetricsRequest(QueryMetricsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `QueryMetricsRequest` |

## Properties

### Dimensions

    public RepeatedField<Dimension> Dimensions { get; }

The dimensions that determine the grouping key for the query. Defaults to
no dimension if this field is unspecified. If a dimension is specified,
its key must also be specified. Each dimension's key must be unique.

If a time granularity is also specified, metric values in the dimension
will be bucketed by this granularity.

Up to one dimension is supported for now.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `RepeatedFieldDimension` |   |

### Filter

    public string Filter { get; set; }

Required. Filter to select a subset of conversations to compute the
metrics. Must specify a window of the conversation create time to compute
the metrics. The returned metrics will be from the range \[DATE(starting
create time), DATE(ending create time)).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### Location

    public string Location { get; set; }

Required. The location of the data.
"projects/{project}/locations/{location}"

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### LocationAsLocationName

    public LocationName LocationAsLocationName { get; set; }

[LocationName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.md.txt)-typed view over the [Location](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest.md.txt#Google_Cloud_ContactCenterInsights_V1_QueryMetricsRequest_Location) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `LocationName` |   |

### MeasureMask

    public FieldMask MeasureMask { get; set; }

Measures to return. Defaults to all measures if this field is unspecified.
A valid mask should traverse from the `measure` field from the response.
For example, a path from a measure mask to get the conversation count is
"conversation_measure.count".

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `FieldMask` |   |

### TimeGranularity

    public QueryMetricsRequest.Types.TimeGranularity TimeGranularity { get; set; }

The time granularity of each data point in the time series.
Defaults to NONE if this field is unspecified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `QueryMetricsRequestTypesTimeGranularity` |   |