Class AlertMessageGenerator

java.lang.Object
oracle.communication.brm.charging.monitor.utils.AlertMessageGenerator

public class AlertMessageGenerator extends Object
  • 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, EMGatewayLatency
      alertType - Fatal, Critical, Warn,
      alertSource -
      attributeTag - Tag for the alerts are measured. Example, Percentile, ThroughputRatio
      attributeBasis - Basis on which the target and actual attribute values are calculated against
      targetAttributeValue - 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)