On this page:
You can export your health configurations from one application to another using a special AppDynamics REST API. This capability allows you to re-use health rule configurations in different applications instead of re-configuring each application manually from the AppDynamics console.
If you can view a health rule, you can export it.
If you can create a health rule, you can import it.
Exports are HTTP GET operations.
produces the output in all_health_rules.
http://pm1.appdynamics.com/controller/healthrules/3?name=Business Transaction response time is much higher than normal
produces the output in one_health_rule.
Imports are HTTP POST operations.
After you have exported health rules you can import them to a different application passing the xml file created by the export operation as payload to the POST. You can modify the exported file before you import it. You might want to do this to add or remove one or more health rule configurations or to change their names.
Use UTF-8 URL encoding of the URI before posting; for example, do not replace a space (" ") with "%20" in the URI.
The default behavior is not to overwrite an existing health rule of the same name. If you want to overwrite an existing health rule of the same name, specify the overwrite=true parameter. since the default is false.
The syntax is the same for importing one health rule configuration or several. All the health rule configurations in the xml file are imported.
This example imports the health rules in the uploaded file, overwriting any health rules of the same name.
The next example imports the health rules without overwriting. In this case, any health rules in the destination controller that have the same names as health rules in the all_health_rules file are not overwritten.