Class AlertMessageGenerator
java.lang.Object
oracle.communication.brm.charging.monitor.utils.AlertMessageGenerator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgenerateAlertMessageInJson(String alertName, MonitorConstants.AlertTypes alertType, String alertSource, MonitorConstants.AlertTagAttributes attributeTag, Object attributeBasis, Object targetAttributeValue, Object actualAttributeValue) static StringgenerateAlertMessageInJson(MonitorConstants.AlertTagNames alertName, MonitorConstants.AlertTypes alertType, String alertSource, MonitorConstants.AlertTagAttributes attributeTag, Object attributeBasis, Object targetAttributeValue, Object actualAttributeValue) Generic method to generate alerts in JSON format
-
Constructor Details
-
AlertMessageGenerator
public AlertMessageGenerator()
-
-
Method Details
-
generateAlertMessageInJson
public static String generateAlertMessageInJson(MonitorConstants.AlertTagNames alertName, MonitorConstants.AlertTypes alertType, String alertSource, MonitorConstants.AlertTagAttributes attributeTag, Object attributeBasis, Object targetAttributeValue, Object actualAttributeValue) Generic method to generate alerts in JSON format- Parameters:
alertName- Name of the alert. Excamples are DiameterGatewayLatency, EMGatewayLatencyalertType- Fatal, Critical, Warn,alertSource-attributeTag- Tag for the alerts are measured. Example, Percentile, ThroughputRatioattributeBasis- Basis on which the target and actual attribute values are calculated againsttargetAttributeValue- Target value against which the calculated value is measured.actualAttributeValue- Actual value for this parameter during runtime.- Returns:
-
generateAlertMessageInJson
public static String generateAlertMessageInJson(String alertName, MonitorConstants.AlertTypes alertType, String alertSource, MonitorConstants.AlertTagAttributes attributeTag, Object attributeBasis, Object targetAttributeValue, Object actualAttributeValue)
-