Class Slice (1.23.0)

Slice(mapping=None, *, ignore_unknown_fields=False, **kwargs)

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]

Attributes

Name Description
dimensions MutableSequence[google.cloud.contact_center_insights_v1.types.Dimension]
A unique combination of dimensions that this slice represents.
total google.cloud.contact_center_insights_v1.types.QueryMetricsResponse.Slice.DataPoint
The total metric value. The interval of this data point is [starting create time, ending create time) from the request.
time_series google.cloud.contact_center_insights_v1.types.QueryMetricsResponse.Slice.TimeSeries
A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.

Classes

DataPoint

DataPoint(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A data point contains the metric values mapped to an interval.

.. _oneof: https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields

TimeSeries

TimeSeries(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A time series of metric values.