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.
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.
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)).
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".
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for the \u003ccode\u003eQueryMetricsRequest\u003c/code\u003e class in the \u003ccode\u003eGoogle.Cloud.ContactCenterInsights.V1\u003c/code\u003e namespace is version 2.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThis documentation provides a list of all available versions of the \u003ccode\u003eQueryMetricsRequest\u003c/code\u003e class, ranging from version 1.0.0 up to the latest, 2.19.0.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryMetricsRequest\u003c/code\u003e class is used for querying metrics in the Contact Center AI Insights v1 API, and it implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryMetricsRequest\u003c/code\u003e class has properties like \u003ccode\u003eDimensions\u003c/code\u003e, \u003ccode\u003eFilter\u003c/code\u003e, \u003ccode\u003eLocation\u003c/code\u003e, \u003ccode\u003eMeasureMask\u003c/code\u003e, and \u003ccode\u003eTimeGranularity\u003c/code\u003e to define how to query the metrics.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryMetricsRequest\u003c/code\u003e requires the specification of a filter and a location, with \u003ccode\u003eFilter\u003c/code\u003e defining the subset of conversations to use and the \u003ccode\u003eLocation\u003c/code\u003e specifying the data location.\u003c/p\u003e\n"]]],[],null,["# Contact Center AI Insights v1 API - Class QueryMetricsRequest (2.19.0)\n\nVersion latestkeyboard_arrow_down\n\n- [2.19.0 (latest)](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.18.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.18.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.17.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.17.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.16.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.16.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.15.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.15.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.14.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.14.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.13.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.13.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.12.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.12.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.11.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.11.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.10.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.10.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.9.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.9.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.8.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.8.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.7.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.7.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.6.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.6.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.5.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.5.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.4.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.3.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.2.1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.2.1/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.1.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [2.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/2.0.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.3.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.2.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.1.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/1.0.0/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest) \n\n public sealed class QueryMetricsRequest : IMessage\u003cQueryMetricsRequest\u003e, IEquatable\u003cQueryMetricsRequest\u003e, IDeepCloneable\u003cQueryMetricsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Contact Center AI Insights v1 API class QueryMetricsRequest.\n\nThe request for querying metrics. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e QueryMetricsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[QueryMetricsRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[QueryMetricsRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[QueryMetricsRequest](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest), [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) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.ContactCenterInsights.V1](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.ContactCenterInsights.V1.dll\n\nConstructors\n------------\n\n### QueryMetricsRequest()\n\n public QueryMetricsRequest()\n\n### QueryMetricsRequest(QueryMetricsRequest)\n\n public QueryMetricsRequest(QueryMetricsRequest other)\n\nProperties\n----------\n\n### Dimensions\n\n public RepeatedField\u003cDimension\u003e Dimensions { get; }\n\nThe dimensions that determine the grouping key for the query. Defaults to\nno dimension if this field is unspecified. If a dimension is specified,\nits key must also be specified. Each dimension's key must be unique.\n\nIf a time granularity is also specified, metric values in the dimension\nwill be bucketed by this granularity.\n\nUp to one dimension is supported for now.\n\n### Filter\n\n public string Filter { get; set; }\n\nRequired. Filter to select a subset of conversations to compute the\nmetrics. Must specify a window of the conversation create time to compute\nthe metrics. The returned metrics will be from the range \\[DATE(starting\ncreate time), DATE(ending create time)).\n\n### Location\n\n public string Location { get; set; }\n\nRequired. The location of the data.\n\"projects/{project}/locations/{location}\"\n\n### LocationAsLocationName\n\n public LocationName LocationAsLocationName { get; set; }\n\n[LocationName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.LocationName.html)-typed view over the [Location](/dotnet/docs/reference/Google.Cloud.ContactCenterInsights.V1/latest/Google.Cloud.ContactCenterInsights.V1.QueryMetricsRequest#Google_Cloud_ContactCenterInsights_V1_QueryMetricsRequest_Location) resource name property.\n\n### MeasureMask\n\n public FieldMask MeasureMask { get; set; }\n\nMeasures to return. Defaults to all measures if this field is unspecified.\nA valid mask should traverse from the `measure` field from the response.\nFor example, a path from a measure mask to get the conversation count is\n\"conversation_measure.count\".\n\n### TimeGranularity\n\n public QueryMetricsRequest.Types.TimeGranularity TimeGranularity { get; set; }\n\nThe time granularity of each data point in the time series.\nDefaults to NONE if this field is unspecified."]]