class Twilio::REST::Monitor
Public Class Methods
new(twilio)
click to toggle source
Calls superclass method
Twilio::REST::Domain::new
# File lib/twilio-ruby/rest/monitor.rb 14 def initialize(twilio) 15 super 16 17 @base_url = 'https://monitor.twilio.com' 18 @host = 'monitor.twilio.com' 19 @port = 443 20 21 # Versions 22 @v1 = nil 23 end
Public Instance Methods
alerts(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Alert
resource.
@return [Twilio::REST::Monitor::V1::AlertInstance] if sid was passed. @return [Twilio::REST::Monitor::V1::AlertList]
# File lib/twilio-ruby/rest/monitor.rb 36 def alerts(sid=:unset) 37 self.v1.alerts(sid) 38 end
events(sid=:unset)
click to toggle source
@param [String] sid The unique string that we created to identify the Event
resource.
@return [Twilio::REST::Monitor::V1::EventInstance] if sid was passed. @return [Twilio::REST::Monitor::V1::EventList]
# File lib/twilio-ruby/rest/monitor.rb 45 def events(sid=:unset) 46 self.v1.events(sid) 47 end
to_s()
click to toggle source
Provide a user friendly representation
# File lib/twilio-ruby/rest/monitor.rb 51 def to_s 52 '#<Twilio::REST::Monitor>' 53 end
v1()
click to toggle source
Version
v1 of monitor
# File lib/twilio-ruby/rest/monitor.rb 27 def v1 28 @v1 ||= V1.new self 29 end