Sending the Alert Text to others - Shortening the description

34 views
Skip to first unread message

Scott Roth

unread,
Feb 15, 2016, 11:13:36 AM2/15/16
to InterSystems: Ensemble in Healthcare
I am trying to figure out a way to shorten the alert text when alerting from Ensemble. Besides trying to hardcode the alert text in a router, how has others done this. Yes the email alert is nice that we get from Ensemble, but those outside of the Interface Group might not understand it when we notify them that their interface is having issues.

So how have others done this?

Thanks
Scott Roth
Sr Applications Development Analyst
Information Technology Integration - Interfaces
The Ohio State University Wexner Medical Center
Scott...@osumc.edu


Graham, Ben

unread,
Feb 15, 2016, 11:40:28 AM2/15/16
to Ensemble-in...@googlegroups.com

We developed an application on Ensemble for monitoring the interfaces based on metrics, and a UI that allows users to maintain the alerts and alert text based on the name of the interface. The UI includes day of week and time of day parameters as well.

 

 

Benjamin Graham
Senior integration & development Specialist | http://www.nuvodia.com
P: 509.363.7721
Description: Description: Description: http://www.inlandimaging.com/Nuvodia_logo_emailSig.jpg

--
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare Community" group.
To post to this group, send email to Ensemble-in...@googlegroups.com
To unsubscribe from this group, send email to Ensemble-in-Healt...@googlegroups.com
For more options, visit this group at http://groups.google.com/group/Ensemble-in-Healthcare?hl=en
---
You received this message because you are subscribed to the Google Groups "InterSystems: Ensemble in Healthcare" group.
To unsubscribe from this group and stop receiving emails from it, send an email to Ensemble-in-Healt...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.






This electronic transmission and any documents accompanying this electronic transmission may contain information that is confidential and/or legally privileged. The information is intended only for the use of the individual or entity named above. If you are not the intended recipient, you are hereby notified that any disclosure, copying, distribution or the taking of any action in reliance on or regarding the contents of this electronically transmitted information is strictly prohibited. If you have received this e-mail in error, please notify the sender and delete this message immediately.

NORA HUTCHISON

unread,
Feb 15, 2016, 12:06:13 PM2/15/16
to Ensemble-in...@googlegroups.com
I have a DTL with a lookup table that translate the system name to something more user friendly. 

Thanks, 
Nora

Sent from my iPhone, please excuse typos 

Scott Roth

unread,
Feb 15, 2016, 12:46:57 PM2/15/16
to InterSystems: Ensemble in Healthcare
I have a lookup table, but however it is still including the details within the page I receive the following besides the Alert Text. All I want to do is send the Alert text and nothing else.

<ManagedAlert>
<AlertTime>2016-02-15 17:41:54.274</AlertTime>
<Production>osuwmc.TestClin</Production>
<SourceConfigName>CactusFTPToCPD</SourceConfigName>
<AlertText>The Interface Engine is having issues trying to connect to  or receiving data from your Interface. Please check your interfaces and contact the Integration - Interfaces when the issue has been resolved. - CactusFTPToCPD</AlertText><EscalationLevel>0</EscalationLevel>
<IsOpen>true</IsOpen>
<NextActionTime>2016-02-15 17:51:54.279</NextActionTime>
<LastActionTime>2016-02-15 17:41:54.274</LastActionTime>
<NextMonitorTime>2016-02-15 17:51:54.279</NextMonitorTime>
<_IsFrameworkActivity>false</_IsFrameworkActivity>
</ManagedAlert>

Don Rozwick

unread,
Mar 28, 2016, 2:25:21 PM3/28/16
to InterSystems: Ensemble in Healthcare
Scott,
   Try changing the email alert operation.  I would think you could just create the email message from the pAlertRequest.AlertText.  Here at Froedtert we changed the operation up in 2014
Class FCH.Operation.EMail.AlertOperation Extends EnsLib.EMail.AlertOperation
{

/// Create a notification email from a standard <class>Ens.AlertRequest</class> object.
Method CreateEmailFromAlertRequest(pAlertRequest As Ens.AlertRequest, Output pMailMessage As %Net.MailMessage) As %Status
{
Set tStatus = $$$OK
Try {
Set pMailMessage = ##class(%Net.MailMessage).%New()
Set pMailMessage.Charset = "UTF-8"

Set pMailMessage.Subject = ..SubjectPrefix _ $select(..SubjectPrefix '= "": " ", 1: "")

Do ..GetSystemInfo(,.tSystemName,.tInstanceName,.tNodeName)
Set pMailMessage.From = tSystemName_"@"_tNodeName_".com"
If ..IncludeNodeinSubject {
Set pMailMessage.Subject = pMailMessage.Subject _ $$$FormatText($$$Text("Ensemble alert from :'%1'","Ensemble"),pAlertRequest.SourceConfigName)
}
Else {
Set pMailMessage.Subject = pMailMessage.Subject _ $$$FormatText($$$Text("Ensemble alert from :'%1'","Ensemble"),pAlertRequest.SourceConfigName)
}

If (pAlertRequest.AlertDestination '= "") {
Set tStatus = ..Adapter.AddRecipients(pMailMessage, pAlertRequest.AlertDestination)
If $$$ISERR(tStatus) Quit
}
Set tNow = $$$timeUTC
Set tNowLocal = $$$timeUTCtoLocal(tNow)
Set tTimeMessage = $select(..IncludeUTCTimes: $$$FormatText($$$Text("Ensemble alert email triggered at %1 [%2 UTC]","Ensemble"),tNowLocal,tNow), 1 : $$$FormatText($$$Text("Ensemble alert email triggered at %1","Ensemble"),tNowLocal))
Set tStatus = pMailMessage.TextData.WriteLine(tTimeMessage)
If $$$ISERR(tStatus) Quit
Set tStatus = ..AddBasicData(pMailMessage,pAlertRequest.AlertText,pAlertRequest.AlertTime,pAlertRequest.SourceConfigName,$get($$$EnsRuntime("Name")),pAlertRequest.SessionId,tSystemName,tInstanceName)
If $$$ISERR(tStatus) Quit
}
Catch {
Set tStatus = $$$EnsSystemError
}
Quit tStatus
}

}
Reply all
Reply to author
Forward
0 new messages