Package com.mypurecloud.sdk.v2.model
Class KnowledgeAsyncAggregationQuery
java.lang.Object
com.mypurecloud.sdk.v2.model.KnowledgeAsyncAggregationQuery
- All Implemented Interfaces:
Serializable
KnowledgeAsyncAggregationQuery
- 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 metricsstatic enumQuery type to use. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionalternateTimeDimension(KnowledgeAsyncAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) Dimension to use as the alternative timestamp for data in the aggregate.booleanfilter(KnowledgeAggregateQueryFilter filter) Behaves like a SQL WHERE clause.flattenMultivaluedDimensions(Boolean flattenMultivaluedDimensions) Flattens any multivalued dimensions used in response groups (e.g.getLimit()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.How many results you want in an ordered list.Behaves like a SQL SELECT clause.The number of results per pageQuery type to use.voidsetAlternateTimeDimension(KnowledgeAsyncAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) voidvoidsetFlattenMultivaluedDimensions(Boolean flattenMultivaluedDimensions) voidsetGranularity(String granularity) voidvoidsetInterval(String interval) voidvoidvoidsetPageSize(Integer pageSize) voidvoidsetSortMetric(KnowledgeAggregationSort sortMetric) voidsetTimeZone(String timeZone) voidsetViews(List<KnowledgeAggregationView> views) sortMetric(KnowledgeAggregationSort sortMetric) Required when requesting multiple metrics.Time zone context used to calculate response intervals (this allows resolving DST changes).toString()views(List<KnowledgeAggregationView> views) Custom derived metric views
-
Constructor Details
-
KnowledgeAsyncAggregationQuery
public KnowledgeAsyncAggregationQuery() -
KnowledgeAsyncAggregationQuery
-
-
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 KnowledgeAsyncAggregationQuery groupBy(List<KnowledgeAsyncAggregationQuery.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 KnowledgeAsyncAggregationQuery metrics(List<KnowledgeAsyncAggregationQuery.MetricsEnum> metrics) Behaves like a SQL SELECT clause. Only named metrics will be retrieved. -
getMetrics
-
setMetrics
-
flattenMultivaluedDimensions
public KnowledgeAsyncAggregationQuery 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 KnowledgeAsyncAggregationQuery alternateTimeDimension(KnowledgeAsyncAggregationQuery.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(KnowledgeAsyncAggregationQuery.AlternateTimeDimensionEnum alternateTimeDimension) -
queryType
public KnowledgeAsyncAggregationQuery queryType(KnowledgeAsyncAggregationQuery.QueryTypeEnum queryType) Query type to use. Use groupBy for all matching results, and topN/bottomN for N results ordered by the sortMetric. Default is groupBy. -
getQueryType
-
setQueryType
-
sortMetric
Required when requesting multiple metrics. Only applicable for topN/bottomN query type. -
getSortMetric
-
setSortMetric
-
limit
How many results you want in an ordered list. Only applicable for topN/bottomN query type. -
getLimit
-
setLimit
-
pageSize
The number of results per page -
getPageSize
-
setPageSize
-
equals
-
hashCode
public int hashCode() -
toString
-