Class: ZabbixApi::Scripts
- Inherits:
-
Basic
- Object
- Basic
- ZabbixApi::Scripts
show all
- Defined in:
- lib/zabbixapi/classes/scripts.rb
Instance Method Summary
collapse
Methods inherited from Basic
#add, #all, #create, #create_or_update, #default_options, #delete, #destroy, #dump_by_id, #get, #get_full_data, #get_id, #get_or_create, #get_raw, #hash_equals?, #initialize, #key, #keys, #log, #merge_params, #normalize_array, #normalize_hash, #parse_keys, #symbolize_keys, #update
Instance Method Details
#execute(data) ⇒ Object
12
13
14
15
16
17
18
19
20
|
# File 'lib/zabbixapi/classes/scripts.rb', line 12
def execute(data)
@client.api_request(
:method => "script.execute",
:params => {
:scriptid => data[:scriptid],
:hostid => data[:hostid]
}
)
end
|
#getscriptsbyhost(data) ⇒ Object
22
23
24
|
# File 'lib/zabbixapi/classes/scripts.rb', line 22
def getscriptsbyhost(data)
@client.api_request(:method => "script.getscriptsbyhosts", :params => data)
end
|
#indentify ⇒ Object
8
9
10
|
# File 'lib/zabbixapi/classes/scripts.rb', line 8
def indentify
"name"
end
|
#method_name ⇒ Object
4
5
6
|
# File 'lib/zabbixapi/classes/scripts.rb', line 4
def method_name
"script"
end
|