Add new attribute to define threshold alarm evaluation interval

Also make sure that this interval is >= than the other metering intervals.
Otherwise alarming doesn't work correctly.
Shouldn't you take the max value of all intervals?