You can create your own events and use the TDWMEventControl Workload Management API to set the event to Active or Inactive. As part of this API, you can define a how long an event is active. The event automatically becomes inactive when the time expires. Otherwise, an explicit API call is required to change the condition of the event.
To create a user-defined event, edit the state matrix directly or add to Available Events on the Define and Map Unplanned Events step in the Setup Wizard on the States view.
To create a health condition, edit Unplanned Events, then select Available Events, and then select User Defined Event in the Create Event window.