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>
- (::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>) — A unique combination of dimensions that this slice represents.
#dimensions=
def dimensions=(value) -> ::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>
- value (::Array<::Google::Cloud::ContactCenterInsights::V1::Dimension>) — A unique combination of dimensions that this slice represents.
- (::Array<::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
- (::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
- value (::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.
- (::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
- (::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
- value (::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.
- (::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.