Class: ZabbixApi::Configurations

Inherits:
Basic
  • Object
show all
Defined in:
lib/zabbixapi/classes/configurations.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, #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_flagObject



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

#indentifyObject



12
13
14
# File 'lib/zabbixapi/classes/configurations.rb', line 12

def indentify
  "host"
end

#method_nameObject



8
9
10
# File 'lib/zabbixapi/classes/configurations.rb', line 8

def method_name
  "configuration"
end