Module: Zabbix
- Defined in:
- lib/zabbixapi/base.rb,
lib/zabbixapi/host.rb,
lib/zabbixapi/item.rb,
lib/zabbixapi/graph.rb,
lib/zabbixapi/group.rb,
lib/zabbixapi/screen.rb,
lib/zabbixapi/trigger.rb,
lib/zabbixapi/template.rb,
lib/zabbixapi/mediatype.rb,
lib/zabbixapi/usermacro.rb,
lib/zabbixapi/application.rb
Defined Under Namespace
Classes: AlreadyExist, ArgumentError, ResponseCodeError, ResponseError, SocketError, ZabbixApi
Instance Method Summary collapse
Instance Method Details
#get_app_id(host_id, app_name) ⇒ Object
19 20 21 22 23 24 25 26 27 28 29 30 31 |
# File 'lib/zabbixapi/application.rb', line 19 def get_app_id(host_id, app_name) = { 'method' => 'application.get', 'params' => { 'filter' => { 'name' => app_name, 'hostid' => host_id } } } responce = send_request() responce.empty? ? nil : responce[0]['applicationid'] end |