I am writing a custom plugin to send alerts from dynaTrace to HP Service Manager, via an ESB service. Everything is working, but now I need to generate a unique Incident ID to pass to HPSM (I am currently using manually entered parameters for the plugin). I'm aware that several of the community plugins use Action Variables to include dynaTrace metrics in actions or tasks. How do I go about doing this, and which Action Variable would uniquely identify an incident? I am thinking of the one called KEY as a possibility.
What libraries etc. do I need, in order to be able to include one of these variables?
Answer by Eugene T. ·
Hi Derick,
You are correct. The com.dynatrace.diagnostics.pdk.Incident.getKey() method of the com.dynatrace.diagnostics.pdk.Incident interface returns unique key for the incident. Eclipse's Target Platform definitions for Plug-in Development make all necessary jars available for you. The Target Platform definitions need to be setup first in order to develop plugins. Please check dynaTrace plugin's development documentation if you'd like to get more details.
Let me know if you have any further questions.
Eugene.
JANUARY 15, 3:00 PM GMT / 10:00 AM ET