public Set<AlertDefinition> getAlertDefinitions(String stackName, String stackVersion,
                                                  String serviceName) throws AmbariException {

    ServiceInfo svc = getService(stackName, stackVersion, serviceName);
    return getAlertDefinitions(svc);
  }
Gets the alert definitions for the specified stack and service.

@param stackName
         the stack name
@param stackVersion
         the stack version
@param serviceName
         the service name
@return the alert definitions for a stack or an empty list if none (never
        {@code null}).
@throws AmbariException
ambari-server/src/main/java/org/apache/ambari/server/api/services/AmbariMetaInfo.java