Package com.mypurecloud.sdk.v2.model
Class TaskManagementAggregationQuery
java.lang.Object
com.mypurecloud.sdk.v2.model.TaskManagementAggregationQuery
- All Implemented Interfaces:
Serializable
TaskManagementAggregationQuery
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDimension to use as the alternative timestamp for data in the aggregate.static enumGets or Sets groupBystatic enumGets or Sets metrics -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateTimeDimension(TaskManagementAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) Dimension to use as the alternative timestamp for data in the aggregate.booleanBehaves like a SQL WHERE clause.flattenMultivaluedDimensions(Boolean flattenMultivaluedDimensions) Flattens any multivalued dimensions used in response groups (e.g.getViews()granularity(String granularity) Granularity aggregates metrics into subpartitions within the time interval specified.Behaves like a SQL GROUPBY.inthashCode()Behaves like one clause in a SQL WHERE.Behaves like a SQL SELECT clause.voidsetAlternateTimeDimension(TaskManagementAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) voidvoidsetFlattenMultivaluedDimensions(Boolean flattenMultivaluedDimensions) voidsetGranularity(String granularity) voidvoidsetInterval(String interval) voidvoidsetTimeZone(String timeZone) voidTime zone context used to calculate response intervals (this allows resolving DST changes).toString()views(List<TaskManagementAggregationView> views) Custom derived metric views
-
Constructor Details
-
TaskManagementAggregationQuery
public TaskManagementAggregationQuery() -
TaskManagementAggregationQuery
-
-
Method Details
-
interval
Behaves like one clause in a SQL WHERE. Specifies the date and time range of data being queried. Intervals are represented as an ISO-8601 string. For example: YYYY-MM-DDThh:mm:ss/YYYY-MM-DDThh:mm:ss -
getInterval
-
setInterval
-
granularity
Granularity aggregates metrics into subpartitions within the time interval specified. The default granularity is the same duration as the interval. Periods are represented as an ISO-8601 string. For example: P1D or P1DT12H -
getGranularity
-
setGranularity
-
timeZone
Time zone context used to calculate response intervals (this allows resolving DST changes). The interval offset is used even when timeZone is specified. Default is UTC. Time zones are represented as a string of the zone name as found in the IANA time zone database. For example: UTC, Etc/UTC, or Europe/London -
getTimeZone
-
setTimeZone
-
groupBy
public TaskManagementAggregationQuery groupBy(List<TaskManagementAggregationQuery.GroupByEnum> groupBy) Behaves like a SQL GROUPBY. Allows for multiple levels of grouping as a list of dimensions. Partitions resulting aggregate computations into distinct named subgroups rather than across the entire result set as if it were one group. -
getGroupBy
-
setGroupBy
-
filter
Behaves like a SQL WHERE clause. This is ANDed with the interval parameter. Expresses boolean logical predicates as well as dimensional filters -
getFilter
-
setFilter
-
metrics
public TaskManagementAggregationQuery metrics(List<TaskManagementAggregationQuery.MetricsEnum> metrics) Behaves like a SQL SELECT clause. Only named metrics will be retrieved. -
getMetrics
-
setMetrics
-
flattenMultivaluedDimensions
public TaskManagementAggregationQuery flattenMultivaluedDimensions(Boolean flattenMultivaluedDimensions) Flattens any multivalued dimensions used in response groups (e.g. ['a','b','c']->'a,b,c') -
getFlattenMultivaluedDimensions
-
setFlattenMultivaluedDimensions
-
views
Custom derived metric views -
getViews
-
setViews
-
alternateTimeDimension
public TaskManagementAggregationQuery alternateTimeDimension(TaskManagementAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) Dimension to use as the alternative timestamp for data in the aggregate. Choosing \"eventTime\" uses the actual time of the data event. -
getAlternateTimeDimension
-
setAlternateTimeDimension
public void setAlternateTimeDimension(TaskManagementAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) -
equals
-
hashCode
public int hashCode() -
toString
-