Class: ZabbixApi::Mediatypes

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

Instance Method Summary collapse

Methods inherited from Basic

#add, #all, #create, #create_or_update, #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/mediatypes.rb', line 4

def array_flag
  true
end

#default_optionsObject



16
17
18
19
20
21
22
23
24
25
26
27
28
# File 'lib/zabbixapi/classes/mediatypes.rb', line 16

def default_options 
  {
    :description => "",  #Name
    :type => 0,          #0 - Email, 1 - External script, 2 - SMS, 3 - Jabber, 100 - EzTexting
    :smtp_server => "", 
    :smtp_helo   => "",
    :smtp_email  => "",  #Email address of Zabbix server
    :exec_path => "",    #Name of external script
    :gsm_modem => "",    #Serial device name of GSM modem
    :username  => "",    #Jabber user name used by Zabbix server
    :passwd    => ""     #Jabber password used by Zabbix server
  }
end

#indentifyObject



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

def indentify
  "description"
end

#method_nameObject



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

def method_name
  "mediatype"
end