Method: Sentry::CheckInEvent#initialize
- Defined in:
- lib/sentry/check_in_event.rb
#initialize(slug:, status:, duration: nil, monitor_config: nil, check_in_id: nil, **options) ⇒ CheckInEvent
Returns a new instance of CheckInEvent.
32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
# File 'lib/sentry/check_in_event.rb', line 32 def initialize( slug:, status:, duration: nil, monitor_config: nil, check_in_id: nil, ** ) super(**) self.monitor_slug = slug self.status = status self.duration = duration self.monitor_config = monitor_config self.check_in_id = check_in_id || SecureRandom.uuid.delete("-") end |