Class: ZabbixManager::ValueMaps
- Defined in:
- lib/zabbix_manager/classes/valuemaps.rb
Instance Method Summary collapse
-
#identify ⇒ String
返回用于唯一识别值映射的业务字段名。.
-
#key ⇒ String
返回值映射对象的主键字段名。.
-
#method_name ⇒ String
返回 Zabbix API 中值映射对象的方法名前缀。.
Methods inherited from Basic
#add, #all, #create, #create_or_update, #create_raw, #default_options, #delete, #delete_raw, #destroy, #dump_by_id, #get, #get_full_data, #get_id, #get_or_create, #get_raw, #hash_equals?, #identity_filter, #initialize, #keys, #log, #normalize_hash, #parse_keys, #update, #update_raw
Constructor Details
This class inherits a constructor from ZabbixManager::Basic
Instance Method Details
#identify ⇒ String
返回用于唯一识别值映射的业务字段名。
22 23 24 |
# File 'lib/zabbix_manager/classes/valuemaps.rb', line 22 def identify "name" end |
#key ⇒ String
返回值映射对象的主键字段名。
15 16 17 |
# File 'lib/zabbix_manager/classes/valuemaps.rb', line 15 def key "valuemapid" end |
#method_name ⇒ String
返回 Zabbix API 中值映射对象的方法名前缀。
8 9 10 |
# File 'lib/zabbix_manager/classes/valuemaps.rb', line 8 def method_name "valuemap" end |