I have downloaded and modified the JIRA Action plugin to be able to automatically close JIRA issues as well.
My question is of more general nature so I decided to put my posting in this forum instead of making a comment on the JIRA plugin.
Essentially I am looking for a way to extract information about where a specific incident comes when an action plugin is called. This would include the server, agent, proces, etc.
The JavaDoc on the plugin API mentions an interface called Source with a number of implementations; I have not been able to retrieve a meaningful 'source' from an incident though (incident > violation > measure > source.)
Thus I am wondering if there is any documentation on how to do this; the only documentation I have found, Manage and Develop User Plugins, only has a rudimentory outline of an action plugin implementation. Alternatively a code snippet showing how to extract the wanted information.
Answer by Kristof R. ·
I took a look at your code.
Nothing is wrong with it. It seems that some of the OOTB incidents do not set a source, it can be seen in the Incident dashlet as well:
If I create an custom incident rule myself, the Source is filled in:
It seems that the plugin is logging the correct information now as well.
Can you please try to reproduce this as well? Create a simple incident with a trigger that is easy to breach (eg: PurePath response time > 10ms).
Please let me know how the results are.
This could be a great enhancement request to include source information for those OOTB incidents as well.
Websphere MQ Monitor Plugin 13 Answers
Support of the GEP 1 Answer
dynatrace - Stratus 1 Answer