Sha256: 529651c6fd6a231c382445cfcaa2eead14747d4903ac8f542d38316ac776bfe8
Contents?: true
Size: 597 Bytes
Versions: 4
Compression:
Stored size: 597 Bytes
Contents
# frozen_string_literal: true class Circuitbox class Notifier class ActiveSupport def notify(circuit_name, event) ::ActiveSupport::Notifications.instrument("circuit_#{event}", circuit: circuit_name) end def notify_warning(circuit_name, message) ::ActiveSupport::Notifications.instrument('circuit_warning', circuit: circuit_name, message: message) end def metric_gauge(circuit_name, gauge, value) ::ActiveSupport::Notifications.instrument('circuit_gauge', circuit: circuit_name, gauge: gauge, value: value) end end end end
Version data entries
4 entries across 4 versions & 1 rubygems