@Override
  public String toString() {
    StringBuilder buffer = new StringBuilder("HeartBeatResponse{");
    buffer.append("responseId=").append(responseId);
    buffer.append(", executionCommands=").append(executionCommands);
    buffer.append(", statusCommands=").append(statusCommands);
    buffer.append(", cancelCommands=").append(cancelCommands);
    buffer.append(", alertDefinitionCommands=").append(alertDefinitionCommands);
    buffer.append(", registrationCommand=").append(registrationCommand);
    buffer.append(", restartAgent=").append(restartAgent);
    buffer.append(", recoveryConfig=").append(recoveryConfig);
    buffer.append('}');
    return buffer.toString();
  }
Sets the alert definition commands that contain the alert definitions for
each cluster that the host is a member of.

@param commands
         the commands, or {@code null} for none.
ambari-server/src/main/java/org/apache/ambari/server/agent/HeartBeatResponse.java