This page provides instructions on creating health rules in AppDynamics.
You can use the default health rules provided by AppDynamic, modify them to map to your requirements, or define a custom health rule.
You configure health rule details in the Overview panel.
The Always option is pre-selected in the When is the rule enabled? drop-down list. If the health rule is enabled only at certain times, select other predefined schedules from the When is the rule enabled? drop-down list.
To define a custom health rule schedule or modify the predefined time intervals, click Manage Health Rule Schedules. See Create and Manage Health Rule Schedules.
Click the drop-down list Use data from last <> min(s) and select a number between 1 and 120 minutes. The value you specify is the latest time interval during which data is collected to determine if there is a health rule violation. This value applies to both critical and warning criteria. See Health Rule Evaluation Time Frame.
If you have defined a persistence threshold for the health rule condition, ensure that you define an evaluation time frame of 30 mins or less.
In the Wait Time after Violation field, enter the number of minutes to wait before re-evaluating the rule for the same affected entity in which the violation occurred. See Health Rule Wait Time After Violation.
After you configure the Health Rule details in the Overview panel, proceed with the following steps.
Save your configuration.
Select a predefined schedule in the Manage Health Rule Schedules window and click the Edit icon to see the details of the predefined schedule.
Schedules created in version 4.5.15 or earlier are set to 'Custom' type by default and the time zone is automatically set to the controller time zone.
Select how often you want to evaluate the health rules:
If you select a specific date of the month to execute the schedule:
For example, you might want to evaluate the health rules on the 1st of every month from 6.00 AM to the 5th until 6.00 PM.
If you select a specific day of the month to execute the schedule:
For example, you might want to evaluate the health rules on the first Monday of every month from 6.00 AM to 6.00 PM.
For example, the following custom schedule specifies:
a start time value of 0 0 13 ? * 2-6 and
end time of 0 0 15 ? * 2-6
directing the health rule to be evaluated from 1 pm to 3 pm, Monday through Friday:
To delete a health rule evaluation schedule, select the schedule in the Manage Health Rule Schedules window and click Delete – the bin icon at the top. Click OK to confirm the deletion.