Time based thresholds

Time based thresholds

Hi,

 Can we set multiple thresholds based on time ?,for example in the morning time i want CPU utilization to be 90% , and during night time CPU utilization to be 95%.because of this i can reduce unwanted alarms.

can we do this using script monitoring?
can we do this using REST API feature by accessing opmanager database?

thanks in advance.

Regards,
Srikanth