public String getServiceNameByServiceCheckAction(String serviceCheckAction) {
    for (Map.Entry<String, String> entry : serviceCheckActions.entrySet()) {
      if (entry.getValue().equals(serviceCheckAction)) {
        return entry.getKey().toUpperCase();
      }
    }
    return null;
  }
Get service name by service check action name
@param serviceCheckAction service check action name like ZOOKEEPER_QUORUM_SERVICE_CHECK
@return service name (capitalized) or null if not found
ambari-server/src/main/java/org/apache/ambari/server/metadata/ActionMetadata.java