Reference documentation and code samples for the Google Cloud Contact Center Insights V1 Client class 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]
Generated from protobuf message google.cloud.contactcenterinsights.v1.QueryMetricsResponse.Slice
Namespace
Google \ Cloud \ ContactCenterInsights \ V1 \ QueryMetricsResponseMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ dimensions |
array<Google\Cloud\ContactCenterInsights\V1\Dimension>
A unique combination of dimensions that this slice represents. |
↳ total |
Slice\DataPoint
The total metric value. The interval of this data point is [starting create time, ending create time) from the request. |
↳ time_series |
Slice\TimeSeries
A time series of metric values. This is only populated if the request specifies a time granularity other than NONE. |
getDimensions
A unique combination of dimensions that this slice represents.
Returns | |
---|---|
Type | Description |
Google\Protobuf\Internal\RepeatedField |
setDimensions
A unique combination of dimensions that this slice represents.
Parameter | |
---|---|
Name | Description |
var |
array<Google\Cloud\ContactCenterInsights\V1\Dimension>
|
Returns | |
---|---|
Type | Description |
$this |
getTotal
The total metric value. The interval of this data point is [starting create time, ending create time) from the request.
Returns | |
---|---|
Type | Description |
Slice\DataPoint|null |
hasTotal
clearTotal
setTotal
The total metric value. The interval of this data point is [starting create time, ending create time) from the request.
Parameter | |
---|---|
Name | Description |
var |
Slice\DataPoint
|
Returns | |
---|---|
Type | Description |
$this |
getTimeSeries
A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.
Returns | |
---|---|
Type | Description |
Slice\TimeSeries|null |
hasTimeSeries
clearTimeSeries
setTimeSeries
A time series of metric values. This is only populated if the request specifies a time granularity other than NONE.
Parameter | |
---|---|
Name | Description |
var |
Slice\TimeSeries
|
Returns | |
---|---|
Type | Description |
$this |