Class: ZabbixApi::Configurations
- Defined in:
- lib/zabbixapi/classes/configurations.rb
Instance Method Summary collapse
- #array_flag ⇒ Object
-
#export(data) ⇒ Object
Export configuration data as a serialized string * Args : see available parameters: www.zabbix.com/documentation/2.2/manual/api/reference/configuration/export * Returns : - String.
-
#import(data) ⇒ Object
Import configurations data from a serialized string * Args : see available parameters: www.zabbix.com/documentation/2.2/manual/api/reference/configuration/import * Returns : - Boolean.
- #indentify ⇒ Object
- #method_name ⇒ Object
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, #hash_equals?, #initialize, #key, #keys, #log, #merge_params, #normalize_hash, #parse_keys, #symbolize_keys, #update
Constructor Details
This class inherits a constructor from ZabbixApi::Basic
Instance Method Details
#array_flag ⇒ Object
4 5 6 |
# File 'lib/zabbixapi/classes/configurations.rb', line 4 def array_flag true end |
#export(data) ⇒ Object
Export configuration data as a serialized string
-
Args :
see available parameters: www.zabbix.com/documentation/2.2/manual/api/reference/configuration/export
-
Returns :
-
String
-
21 22 23 |
# File 'lib/zabbixapi/classes/configurations.rb', line 21 def export(data) @client.api_request(:method => "configuration.export", :params => data) end |
#import(data) ⇒ Object
Import configurations data from a serialized string
-
Args :
see available parameters: www.zabbix.com/documentation/2.2/manual/api/reference/configuration/import
-
Returns :
-
Boolean
-
30 31 32 |
# File 'lib/zabbixapi/classes/configurations.rb', line 30 def import(data) @client.api_request(:method => "configuration.import", :params => data) end |
#indentify ⇒ Object
12 13 14 |
# File 'lib/zabbixapi/classes/configurations.rb', line 12 def indentify "host" end |
#method_name ⇒ Object
8 9 10 |
# File 'lib/zabbixapi/classes/configurations.rb', line 8 def method_name "configuration" end |