Class: Morpheus::MonitoringInterface
- Inherits:
-
APIClient
- Object
- APIClient
- Morpheus::MonitoringInterface
- Defined in:
- lib/morpheus/api/monitoring_interface.rb
Instance Method Summary collapse
- #apps ⇒ Object
- #checks ⇒ Object
- #contacts ⇒ Object
- #groups ⇒ Object
- #incidents ⇒ Object
-
#initialize(access_token, refresh_token, expires_at = nil, base_url = nil) ⇒ MonitoringInterface
constructor
A new instance of MonitoringInterface.
Constructor Details
#initialize(access_token, refresh_token, expires_at = nil, base_url = nil) ⇒ MonitoringInterface
Returns a new instance of MonitoringInterface.
9 10 11 12 13 14 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 9 def initialize(access_token, refresh_token,expires_at = nil, base_url=nil) @access_token = access_token @refresh_token = refresh_token @base_url = base_url @expires_at = expires_at end |
Instance Method Details
#apps ⇒ Object
32 33 34 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 32 def apps Morpheus::MonitoringAppsInterface.new(@access_token, @refresh_token, @expires_at, @base_url) end |
#checks ⇒ Object
16 17 18 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 16 def checks Morpheus::ChecksInterface.new(@access_token, @refresh_token, @expires_at, @base_url) end |
#contacts ⇒ Object
24 25 26 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 24 def contacts Morpheus::MonitoringContactsInterface.new(@access_token, @refresh_token, @expires_at, @base_url) end |
#groups ⇒ Object
28 29 30 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 28 def groups Morpheus::MonitoringGroupsInterface.new(@access_token, @refresh_token, @expires_at, @base_url) end |
#incidents ⇒ Object
20 21 22 |
# File 'lib/morpheus/api/monitoring_interface.rb', line 20 def incidents Morpheus::IncidentsInterface.new(@access_token, @refresh_token, @expires_at, @base_url) end |