public Alert buildAlert(double value, List<Object> args) {
    Reporting reporting = source.getReporting();
    Alert alert = new Alert(name, null, serviceName, componentName, null, reporting.state(value));
    alert.setText(reporting.formatMessage(value, args));
    return alert;
  }
Map the incoming value to {@link AlertState} and generate an alert with that state.
ambari-server/src/main/java/org/apache/ambari/server/state/alert/AlertDefinition.java