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

#default_optionsObject


12
13
14
15
16
17
18
19
20
21
22
23
24
# File 'lib/zabbixapi/classes/mediatypes.rb', line 12

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


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

def indentify
  "description"
end

#method_nameObject


4
5
6
# File 'lib/zabbixapi/classes/mediatypes.rb', line 4

def method_name
  "mediatype"
end