QueryMetricsRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)
The request for querying metrics.
Attributes |
|
---|---|
Name | Description |
location |
str
Required. The location of the data. "projects/{project}/locations/{location}". |
filter |
str
Required. Filter to select a subset of conversations to compute the metrics. Must specify a window of the conversation create time to compute the metrics. The returned metrics will be from the range [DATE(starting create time), DATE(ending create time)). |
time_granularity |
google.cloud.contact_center_insights_v1.types.QueryMetricsRequest.TimeGranularity
The time granularity of each data point in the time series. Defaults to NONE if this field is unspecified. |
dimensions |
MutableSequence[google.cloud.contact_center_insights_v1.types.Dimension]
The dimensions that determine the grouping key for the query. Defaults to no dimension if this field is unspecified. If a dimension is specified, its key must also be specified. Each dimension's key must be unique. If a time granularity is also specified, metric values in the dimension will be bucketed by this granularity. Up to one dimension is supported for now. |
measure_mask |
google.protobuf.field_mask_pb2.FieldMask
Measures to return. Defaults to all measures if this field is unspecified. A valid mask should traverse from the measure field from the response. For example, a path
from a measure mask to get the conversation count is
"conversation_measure.count".
|
Classes
TimeGranularity
TimeGranularity(value)
A time granularity divides the time line into discrete time periods. This is useful for defining buckets over which filtering and aggregation should be performed.