Class: Twilio::REST::Monitor

Inherits:
MonitorBase show all
Defined in:
lib/twilio-ruby/rest/monitor.rb,
lib/twilio-ruby/rest/monitor/v1.rb,
lib/twilio-ruby/rest/monitor/v1/alert.rb,
lib/twilio-ruby/rest/monitor/v1/event.rb

Defined Under Namespace

Classes: V1

Instance Attribute Summary

Attributes inherited from Domain

#client

Instance Method Summary collapse

Methods inherited from MonitorBase

#initialize, #to_s, #v1

Methods inherited from Domain

#absolute_url, #initialize, #request

Constructor Details

This class inherits a constructor from Twilio::REST::MonitorBase

Instance Method Details

#alerts(sid = :unset) ⇒ Twilio::REST::Monitor::V1::AlertInstance, Twilio::REST::Monitor::V1::AlertList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Alert resource.

Returns:



9
10
11
12
# File 'lib/twilio-ruby/rest/monitor.rb', line 9

def alerts(sid=:unset)
  warn "alerts is deprecated. Use v1.alerts instead."
  self.v1.alerts(sid)
end

#events(sid = :unset) ⇒ Twilio::REST::Monitor::V1::EventInstance, Twilio::REST::Monitor::V1::EventList

Parameters:

  • sid (String) (defaults to: :unset)

    The unique string that we created to identify the Event resource.

Returns:



19
20
21
22
# File 'lib/twilio-ruby/rest/monitor.rb', line 19

def events(sid=:unset)
  warn "events is deprecated. Use v1.events instead."
  self.v1.events(sid)
end