Var y = NOW();
Var z = $datapoint.eventTime
//if (z < y)
var moreThanOneMinutes;
var alert;
var alertText;
IIf(y(NOW(), z, "minutes") < 1,
moreThanOneMinutes = true,
moreThanOneMinutes = false
);
IIf(alert, alertText = 'ALERT', alertText = null);
return {
textColor: 'white',
backgroundColor: IIf(alert, 'red', '#232f3e'),
separatorColor:'',
selectionColor: '',
selectionTextColor: '#d40f0f',
attributes: {
attribute1: {alertText:alertText},
// attribute2: ''
}
}