# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse (v1.10.0)

1.10.0 (latest) 1.9.0 1.8.1 1.7.0 1.6.0 1.5.1 1.4.0 1.3.0 1.2.0 1.1.0 1.0.1 0.22.0 0.21.1 0.20.1 0.19.1 0.18.0 0.17.0 0.16.0 0.15.0 0.14.0 0.13.0 0.12.0 0.11.0 0.10.0 0.9.0 0.8.2 0.7.2 0.6.0 Reference documentation and code samples for the Contact Center AI Insights V1 API class Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse.

The response for querying metrics.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #location

    def location() -> ::String

**Returns**

- (::String) --- Required. The location of the data. "projects/{project}/locations/{location}"

### #location=

    def location=(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}"

### #macro_average_slice

    def macro_average_slice() -> ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice

**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)) --- The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.

### #macro_average_slice=

    def macro_average_slice=(value) -> ::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice

**Parameter**

- **value** ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)) --- The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.
**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)) --- The macro average slice contains aggregated averages across the selected dimension. i.e. if group_by agent is specified this field will contain the average across all agents. This field is only populated if the request specifies a Dimension.

### #slices

    def slices() -> ::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice>

**Returns**

- (::Array\<[::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)\>) --- A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.

### #slices=

    def slices=(value) -> ::Array<::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)\>) --- A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.
**Returns**

- (::Array\<[::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice)\>) --- A slice contains a total and (if the request specified a time granularity) a time series of metric values. Each slice contains a unique combination of the cardinality of dimensions from the request.

### #update_time

    def update_time() -> ::Google::Protobuf::Timestamp

**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Timestamp)) --- The metrics last update time.

### #update_time=

    def update_time=(value) -> ::Google::Protobuf::Timestamp

**Parameter**

- **value** ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Timestamp)) --- The metrics last update time.
**Returns**

- ([::Google::Protobuf::Timestamp](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Protobuf-Timestamp)) --- The metrics last update time.