Class: Bixby::Model::Check
- Inherits:
-
Base
show all
- Defined in:
- lib/bixby-client/model/check.rb
Class Method Summary
collapse
Methods inherited from Base
#[], #initialize
Class Method Details
.destroy(id) ⇒ Object
19
20
21
|
# File 'lib/bixby-client/model/check.rb', line 19
def self.destroy(id)
delete("/checks/#{id}")
end
|
11
12
13
|
# File 'lib/bixby-client/model/check.rb', line 11
def self.find(id)
get("/checks/#{id}")
end
|
.list(host_id) ⇒ Object
7
8
9
|
# File 'lib/bixby-client/model/check.rb', line 7
def self.list(host_id)
get("/hosts/#{host_id}/checks")
end
|
.update(id, data) ⇒ Object
15
16
17
|
# File 'lib/bixby-client/model/check.rb', line 15
def self.update(id, data)
put("/checks/#{id}", data)
end
|