cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Erin
AppDynamics Team (Retired)

How do I change AppDynamics SaaS Controller alerts so they reflect my timezone?

By default, SaaS Controller alerts show the Controller's timezone, even if the recipient's timezone is different. This can add cognitive load for the recipient, as they read to determine when an event is happening.

This article discusses how to change SaaS Controller alert templates so that individual alert messages convert the SaaS Controller timezone to the recipient's timezone.

In this article...

 

How do I change the timezone for the SaaS Controller so I get alerts relevant to my timezone?

You can change the SaaS Controller timezone for alerts. 

By default, SaaS Controller alerts take the time stamp of the region where your Controller is deployed. However, the time zone can be edited within the email or HTTP template with a few lines of code. 

For example, to change the time from UTC to IST, which has a 5hr 30 min difference, here is a sample HTML email body:

#set ($date = ${action.triggerTime})

#set ($newDate = ${date.getHours()}+5)

$date.setHours(${newDate})

#set ($newDateMin = ${date.getMinutes()}+30)

$date.setMinutes(${newDateMin})

#set ($dateString =${date.toString()} )

#set ($replacedDateString=${dateString.replace('UTC','IST')})

Summary of events occurring during the ${policy.digestDurationInMins}+ minute(s) prior to ${replacedDateString}


#foreach($eventList in $clampedEventsByTypeMap.values()) 
#foreach($event in $eventList) 
New ${event.severity} Health Rule Violation

AppDynamics has detected a problem with application ${latestEvent.application.name} in tier ${latestEvent.tier.name} and node ${latestEvent.node.name}
#if (${latestEvent.healthRuleViolationEvent})
 ${latestEvent.healthRule.name} is violating.
#end
#end
#end

 

How do I set up a policy schedule for a SaaS Controller?

When setting up a policy schedule for a SaaS Controller, base health rule schedule times on the Controller’s time zone.

 

Additional Resources

Comments

when we pull the ondemand reports in appdynamics what would be the time zone of the report generated would it be PST or our local browser time ?

 

Regards

Sriram

Harish.Kumar
AppDynamics Team

Hello Sriram, 

 

Ondemand Reports will be generated as per browser timezone. 

 

Thanks,

Harish

Hello,

When I try the above HTML template, I am getting time zone in IST. Very Helpful for me.

But I am getting so much of space in the email Notification, where I set the variables in body.

Can anyone let me know, how to ignore the space in email notifications using Email Templates?

Regards,

Eswari

Shubhankar.Yash
Moderator
Moderator

Hello @Cheedella.Eswari , could you share a screenshot of your email? I will try to help you out.

Version history
Last update:
‎02-22-2023 11:06 AM
Updated by: