

Several widgets have the ability to be compared within a past interval. The referenced interval is configured through the options
attribute in the way of amount
range
ago.
{
"compare": {
"range": "minutes" | "hours" | "days" | "weeks" | "months",
"amount": 2
}
}
For instance, if we have a widget configured to represent a metric for today (Monday) and we want to compare that metric with the Monday from past week, we have to configure the compare
option with range: week
and amount: 1
.
Also, we can use previous_period
as range
value, without the needed of complete the amount
value.