Method: Sentry::Cron::MonitorCheckIns::ClassMethods#sentry_monitor_slug

Defined in:
lib/sentry/cron/monitor_check_ins.rb

#sentry_monitor_slug(name: self.name) ⇒ Object

[View source]

60
61
62
63
64
65
# File 'lib/sentry/cron/monitor_check_ins.rb', line 60

def sentry_monitor_slug(name: self.name)
  @sentry_monitor_slug ||= begin
    slug = name.gsub("::", "-").downcase
    slug[-MAX_SLUG_LENGTH..-1] || slug
  end
end