Time Dimension

A TimeDimension is an extension of a Dimension. It categorizes the computation by a particular time-slot. For example, a TimeDimension can be defined to compute a certain metric such as an average response time for each minute, or for every 2 hours or for every 2 weeks. A TimeDimension provides methods to define such a time-slot in terms of time units and time periods.

The following snippet is an example of a TIME dimension.

<time-dimension name="month" attribute-ref="timestamp"  unit="MONTH" frequency="1"/>
<time-dimension name="weeks" attribute-ref="timestamp" unit="WEEK"  frequency="1"/>
<time-dimension name="days" attribute-ref="timestamp" unit="DAY"  frequency="1"/>
<time-dimension name="hours" attribute-ref="timestamp" unit="HOUR"  frequency="1"/>
<time-dimension name="minutes" attribute-ref="timestamp"  unit="MINUTE" frequency="1"/>

There are some predefined units such as months, weeks, days, hours, and minutes. The frequency is the rate at which you want to compute the metrics. For example, if the frequency of the minutes dimension is set to 2, the aggregation is done every two minutes. The qtroffset is only applicable when the unit is a quarter and indicates the start of the quarter.