Not a customer? Click the 'Start a free trial' link to begin a 30-day SaaS trial of our product and to join our community.
Existing Cisco AppDynamics customers should click the 'Sign In' button to authenticate to access the community
02-01-2023 01:43 AM
Hello,
Please help if some has done this before,
I need custom variable to split the variable output for my applications (xyzabc.com [P], abcxyz.com [G] & xyz123.com [S])
Output should be:
Application=[P]
Application=[S]
Application=[G]
_______
Please refer the below payload which I am using :
[
{
"labels": {
"Message": "A health rule violation occurred for the application ${latestEvent.application.name}",
"Time_of_Occurrence": "${action.triggerTime}",
"source": "AppD",
"Application_Name": "${latestEvent.application.name}",
"Event_Name": "${latestEvent.displayName}",
"Event_Message" : "${latestEvent.eventMessage}",
},
"annotations":
{
"type": "image",
"src": "${latestEvent.severityImage.deepLink}",
"alt": "${latestEvent.severity}",
"type_link": "link",
"href": "${latestEvent.deepLink}",
"text": "View this transaction in AppDynamics",
"Event_Message" : "${latestEvent.eventMessage}"
}
}
]
Solved! Go to Solution.
02-02-2023 12:00 AM
Hi Ashish
It uses Apache Velocity as an intermediary translator through which variables get resolved. Anything that is supported in https://velocity.apache.org/
Examples below, you can use an if statement for what you require
Ciao
User | Count |
---|---|
1 | |
1 | |
1 | |
1 | |
1 |
Thank you! Your submission has been received!
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form