Skip to content

Commit

Permalink
fixup! deps
Browse files Browse the repository at this point in the history
  • Loading branch information
mpenet committed Jan 28, 2025
1 parent 6902bf5 commit 7a80382
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/spootnik/reporter/alert.clj
Original file line number Diff line number Diff line change
Expand Up @@ -56,9 +56,9 @@
(defn- alerts-body
[alerts]
(json/write-value-as-string
{:alerts (map (fn [alert] (->alert alert)) alerts)}))
(map (fn [alert] (->alert alert)) alerts)))

(defrecord AlephClient [])
(defrecord AlephClient [server])

(s/def :spootnik.reporter.alert.client/server string?)
(s/def :spootnik.reporter.alert/client
Expand All @@ -76,15 +76,15 @@

(defn send!
"Sends `alert`, conforming to `:spootnik.reporter/alert`, via `client` to
alertmanager instance"
alertmanager instance conforming to `:spootnik.reporter.alert/client`"
[client alert]
(ex/assert-spec-valid :spootnik.reporter.alert/client client)
(ex/assert-spec-valid :spootnik.reporter/alert alert)
(-send! client alert))

(defn msend!
"Sends `alerts` in bulk, conforming to `:spootnik.reporter/alerts`, via `client`
to alertmanager instance"
to alertmanager instance conforming to `:spootnik.reporter.alert/client`"
[client alerts]
(ex/assert-spec-valid :spootnik.reporter.alert/client client)
(ex/assert-spec-valid :spootnik.reporter/alerts alerts)
Expand Down

0 comments on commit 7a80382

Please sign in to comment.