public static void verifyExecuteAuthorization(String serviceName, Long clusterResourceId) throws AuthorizationException {
    verifyAuthorization(serviceName, clusterResourceId, AUTHORIZATIONS_EXECUTE_CLUSTER_ALERTS, AUTHORIZATIONS_EXECUTE_SERVICE_ALERTS, "execute");
  }
Tests if the authenticated user is authorized to execute service- or cluster-level alert data.
An authorization failure results in a thrown {@link AuthorizationException}.

@param serviceName       the name of the relevant service - null or empty indicates a cluster-level alert
@param clusterResourceId the resource id of the relevant cluster
@throws AuthorizationException if the authenticated user is not authorized
ambari-server/src/main/java/org/apache/ambari/server/controller/internal/AlertResourceProviderUtils.java