   []
   {:databases (merge-count-maps (for [{is-full-sync? :is_full_sync} (db/select [Database :is_full_sync])]
                                   {:total    1
-                                   :analyzed (one-if is-full-sync?)}))})
+                                   :analyzed is-full-sync?}))})
 
 
 (defn- table-metrics

            [metabase.util :as u])
  (:import java.util.Date))

(defn- one-if
  "Return `1` if CONDITION is truthy, otherwise return `0`."
  ([k m]
   (one-if (get m k)))
  ([condition]
   (if condition 1 0)))

(defn- merge-count-maps [ms]
  (reduce (partial merge-with +) ms))

(def ^:private ^:const ^String metabase-usage-url "https://xuq0fbkk0j.execute-api.us-east-1.amazonaws.com/prod")


  []
  {:users (merge-count-maps (for [user (db/select [User :is_active :is_superuser :last_login :google_auth])]
                              {:total     1
                               :active    (:is_active    user)
                               :admin     (:is_superuser user)
                               :logged_in (:last_login   user)
                               :sso       (:google_auth  user)}))})

(defn- group-metrics
  "Get metrics based on groups:
