System Profile - Business Hours

Business Hours define a set of time ranges, which can be used to restrict the scheduling of tasks for System Profiles. Business Hours can be configured through the Server REST API.

The JSON representation used by the REST API for the simple Business Hours definition “Monday to Friday 9am to 5pm” is:

{
  "inclusions": [
    {
      "timespan": {
        "start": "09:00",
        "end": "17:00"
      },
      "weekdays": [
        "MON", "TUE", "WED", "THU", "FRI"
      ]
    }
  ]
}

This Business Hours definition can then be used to restrict task execution or Incident creation to the defined time range, as explained in the following subsections.

Business Hours for Tasks and Monitors

Business Hours for Tasks and Monitors

When selecting a schedule for a Task or Monitor, a Business Hours definition from the same System Profile can be additionally selected to restrict Task execution to time ranges included in the Business Hours. For example, a Task scheduled to run every ten seconds and restricted to the Business Hours with the definition of “Monday to Friday 9am to 5pm” executes every ten seconds during the work day, but is not executed early in the morning, in the evening and on weekends.

Business Hours for alert suppression

Alert suppressions (also known as Incident Downtimes) can be based on a Business Hours definition. During all time ranges not included in the Business Hours, no Incident fires. Use the Server REST API to configure Alert suppressions based on Business Hours.

Note

Alert suppressions can only be based on Business Hours defined in the Self-Monitoring System Profile (id: dynaTrace Self-Monitoring) irrespective of the actual System Profiles affected by the suppression.