Controller (SaaS, On Premise)

cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Remediation Scripts

Creator

Advanced Remediation Scripts

Hello Community, 

 

First post.

I'm trying to create an advanced remdiation script that can automatically take heap dumps and restart a java instance. Due to some of our customers running custom jobs, they need to be able to decide WHEN this remedation is ran, so I configured it to send an e-mail. It works perfectly, and it doesn't allow two remediation scripts to run at the same time. 

I'm trying to take this to the next level, however. As well as the e-mail I would like to post information to one of our internal systems and provide the URL link for the remediation script. Looking over a few runs of this it looks like the only thing that changes is the triggerID. 

(changed the variables below for security purposes)

First e-mail sent the remediation link:
https://customer1.saas.appdynamics.com/#location=APP_ADJUDICATE_ACTION&application=123&triggerType=T...

Second e-mail sent for a new event had the remedation link of:
https://customer1.saas.appdynamics.com/#location=APP_ADJUDICATE_ACTION&application=123&triggerType=T...

I've searched through the documentation for available variables but I could not find the "triggerId" so  Ican create the proper http post payload:
https://docs.appdynamics.com/display/PRO45/Predefined+Templating+Variables

Regards,
Jason Fane

Advanced Remediation Scripts