Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest.
(::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>) — 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.
value (::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>) — 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.
Returns
(::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>) — 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.
#filter
deffilter()->::String
Returns
(::String) — 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)).
#filter=
deffilter=(value)->::String
Parameter
value (::String) — 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)).
Returns
(::String) — 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)).
#location
deflocation()->::String
Returns
(::String) — Required. The location of the data.
"projects/{project}/locations/{location}"
#location=
deflocation=(value)->::String
Parameter
value (::String) — Required. The location of the data.
"projects/{project}/locations/{location}"
Returns
(::String) — Required. The location of the data.
"projects/{project}/locations/{location}"
#measure_mask
defmeasure_mask()->::Google::Protobuf::FieldMask
Returns
(::Google::Protobuf::FieldMask) — 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".
value (::Google::Protobuf::FieldMask) — 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".
Returns
(::Google::Protobuf::FieldMask) — 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"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-28 UTC."],[],[],null,["# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest (v1.6.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.0 (latest)](/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.5.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.5.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.4.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.4.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.3.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.3.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.2.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.2.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.1.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.1.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [1.0.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/1.0.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.22.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.22.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.21.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.21.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.20.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.20.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.19.1](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.19.1/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.18.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.18.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.17.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.17.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.16.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.16.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.15.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.15.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.14.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.14.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.13.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.13.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.12.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.12.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.11.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.11.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.10.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.10.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.9.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.9.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.8.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.8.2/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.7.2](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.7.2/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest)\n- [0.6.0](/ruby/docs/reference/google-cloud-contact_center_insights-v1/0.6.0/Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest) \nReference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest.\n\nThe request for querying metrics. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #dimensions\n\n def dimensions() -\u003e ::Array\u003c::Google::Cloud::ContactCenterInsights::V1::Dimension\u003e\n\n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::ContactCenterInsights::V1::Dimension](./Google-Cloud-ContactCenterInsights-V1-Dimension)\\\u003e) --- 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.\n\n\n If a time granularity is also specified, metric values in the dimension\n will be bucketed by this granularity.\n\n Up to one dimension is supported for now.\n\n### #dimensions=\n\n def dimensions=(value) -\u003e ::Array\u003c::Google::Cloud::ContactCenterInsights::V1::Dimension\u003e\n\n**Parameter**\n\n- **value** (::Array\\\u003c[::Google::Cloud::ContactCenterInsights::V1::Dimension](./Google-Cloud-ContactCenterInsights-V1-Dimension)\\\u003e) --- 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.\n\n\n If a time granularity is also specified, metric values in the dimension\n will be bucketed by this granularity.\n\nUp to one dimension is supported for now. \n**Returns**\n\n- (::Array\\\u003c[::Google::Cloud::ContactCenterInsights::V1::Dimension](./Google-Cloud-ContactCenterInsights-V1-Dimension)\\\u003e) --- 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.\n\n\n If a time granularity is also specified, metric values in the dimension\n will be bucketed by this granularity.\n\n Up to one dimension is supported for now.\n\n### #filter\n\n def filter() -\u003e ::String\n\n**Returns**\n\n- (::String) --- 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)).\n\n### #filter=\n\n def filter=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- 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)). \n**Returns**\n\n- (::String) --- 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)).\n\n### #location\n\n def location() -\u003e ::String\n\n**Returns**\n\n- (::String) --- Required. The location of the data. \"projects/{project}/locations/{location}\"\n\n### #location=\n\n def location=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- Required. The location of the data. \"projects/{project}/locations/{location}\" \n**Returns**\n\n- (::String) --- Required. The location of the data. \"projects/{project}/locations/{location}\"\n\n### #measure_mask\n\n def measure_mask() -\u003e ::Google::Protobuf::FieldMask\n\n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- 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\".\n\n### #measure_mask=\n\n def measure_mask=(value) -\u003e ::Google::Protobuf::FieldMask\n\n**Parameter**\n\n- **value** ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- 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\". \n**Returns**\n\n- ([::Google::Protobuf::FieldMask](./Google-Protobuf-FieldMask)) --- 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\".\n\n### #time_granularity\n\n def time_granularity() -\u003e ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity\n\n**Returns**\n\n- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity](./Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)) --- The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified.\n\n### #time_granularity=\n\n def time_granularity=(value) -\u003e ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity\n\n**Parameter**\n\n- **value** ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity](./Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)) --- The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified. \n**Returns**\n\n- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsRequest::TimeGranularity](./Google-Cloud-ContactCenterInsights-V1-QueryMetricsRequest-TimeGranularity)) --- The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified."]]