ZBX
This project is inspired by the following repos:
Installation
Add this line to your application's Gemfile:
gem 'zbx'
And then execute:
$ bundle
Or install it yourself as:
$ gem install zbx
Usage
require 'zbx'
# the following code are doing the same thing ,that is get a host whose id is 10160
ZBX::API.new username, password, api_url do
host.get hostids: 10160
end
ZBX::API.new username, password, api_url do
host do
get hostids: 10160
end
end
ZBX::API.new(username, password, api_url).host.get hostids: 10160
ZBX::API.new do
api_url! api_url
username! user
password! password
host.get hostids: 10160
end
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request