Class: ZabbixApi::Usermacros

Inherits:
Basic
  • Object
show all
Defined in:
lib/zabbixapi/classes/usermacros.rb

Instance Method Summary collapse

Methods inherited from Basic

#add, #all, #create_or_update, #default_options, #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

Constructor Details

This class inherits a constructor from ZabbixApi::Basic

Instance Method Details

#create(data) ⇒ Object



11
12
13
# File 'lib/zabbixapi/classes/usermacros.rb', line 11

def create(data)
  request(data, "usermacro.create", "hostmacroids")
end

#create_global(data) ⇒ Object



15
16
17
# File 'lib/zabbixapi/classes/usermacros.rb', line 15

def create_global(data)
  request(data, "usermacro.createglobal", "globalmacroids")
end

#delete(data) ⇒ Object



19
20
21
# File 'lib/zabbixapi/classes/usermacros.rb', line 19

def delete(data)
  request(data, "usermacro.delete", "hostmacroids")
end

#delete_global(data) ⇒ Object



23
24
25
# File 'lib/zabbixapi/classes/usermacros.rb', line 23

def delete_global(data)
  request(data, "usermacro.deleteglobal", "globalmacroids")
end

#indentifyObject



3
4
5
# File 'lib/zabbixapi/classes/usermacros.rb', line 3

def indentify
  "macro"
end

#method_nameObject



7
8
9
# File 'lib/zabbixapi/classes/usermacros.rb', line 7

def method_name
  "usermacro"
end

#updateObject



27
28
29
# File 'lib/zabbixapi/classes/usermacros.rb', line 27

def update
  request(data, "usermacro.update", "hostmacroids")
end

#update_globalObject



31
32
33
# File 'lib/zabbixapi/classes/usermacros.rb', line 31

def update_global
  request(data, "usermacro.updateglobal", "globalmacroids")
end