# Contact Center AI Insights V1 API - Class Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice (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::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.

For example, if the request specifies a single ISSUE dimension and it has a
cardinality of 2 (i.e. the data used to compute the metrics has 2 issues in
total), the response will have 2 slices:

- Slice 1 -\> dimensions=\[Issue 1\]
- Slice 2 -\> dimensions=\[Issue 2\]

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #dimensions

    def dimensions() -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>

**Returns**

- (::Array\<[::Google::Cloud::ContactCenterInsights::V1::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-Dimension)\>) --- A unique combination of dimensions that this slice represents.

### #dimensions=

    def dimensions=(value) -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>

**Parameter**

- **value** (::Array\<[::Google::Cloud::ContactCenterInsights::V1::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-Dimension)\>) --- A unique combination of dimensions that this slice represents.
**Returns**

- (::Array\<[::Google::Cloud::ContactCenterInsights::V1::Dimension](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-Dimension)\>) --- A unique combination of dimensions that this slice represents.

### #time_series

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

**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-TimeSeries)) --- A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

### #time_series=

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

**Parameter**

- **value** ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-TimeSeries)) --- A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.
**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::TimeSeries](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-TimeSeries)) --- A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

### #total

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

**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-DataPoint)) --- The total metric value. The interval of this data point is \[starting create time, ending create time) from the request.

### #total=

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

**Parameter**

- **value** ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-DataPoint)) --- The total metric value. The interval of this data point is \[starting create time, ending create time) from the request.
**Returns**

- ([::Google::Cloud::ContactCenterInsights::V1::QueryMetricsResponse::Slice::DataPoint](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-contact_center_insights-v1/latest/Google-Cloud-ContactCenterInsights-V1-QueryMetricsResponse-Slice-DataPoint)) --- The total metric value. The interval of this data point is \[starting create time, ending create time) from the request.