From 22482c56e47dd878e2a6832db4288ea1742d7cd1 Mon Sep 17 00:00:00 2001 From: Bhinav Sura Date: Mon, 11 Sep 2017 12:43:27 -0700 Subject: [PATCH 1/2] Change className truncate length from 100 to 50. --- .../dva/argus/service/alert/notifier/GOCNotifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java index 76dcd84d4..e8650d2fb 100644 --- a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java +++ b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java @@ -134,7 +134,7 @@ public void sendMessage(Severity severity, String className, String elementName, try { GOCDataBuilder builder = new GOCDataBuilder(); - className = _truncateIfSizeGreaterThan(className, 100); + className = _truncateIfSizeGreaterThan(className, 50); elementName = _truncateIfSizeGreaterThan(elementName, 100); eventName = _truncateIfSizeGreaterThan(eventName, 50); From b3409282db96630cd7523a1a9eb78baeeb545510 Mon Sep 17 00:00:00 2001 From: Bhinav Sura Date: Mon, 11 Sep 2017 13:41:10 -0700 Subject: [PATCH 2/2] Change eventName truncate length from 50 to 100. --- .../dva/argus/service/alert/notifier/GOCNotifier.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java index e8650d2fb..572a01f93 100644 --- a/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java +++ b/ArgusCore/src/main/java/com/salesforce/dva/argus/service/alert/notifier/GOCNotifier.java @@ -136,7 +136,7 @@ public void sendMessage(Severity severity, String className, String elementName, className = _truncateIfSizeGreaterThan(className, 50); elementName = _truncateIfSizeGreaterThan(elementName, 100); - eventName = _truncateIfSizeGreaterThan(eventName, 50); + eventName = _truncateIfSizeGreaterThan(eventName, 100); builder.withClassName(className).withElementName(elementName).withEventName(eventName). withSeverity(severityLevel).withSRActionable(srActionable).withEventText(message);