{"id":20598335,"url":"https://github.com/kkirsche/bark","last_synced_at":"2026-04-22T09:32:02.101Z","repository":{"id":56842782,"uuid":"43506475","full_name":"kkirsche/Bark","owner":"kkirsche","description":"Bark: A Gem For Use By Individuals Looking to Retrieve Data From a Monit Server ","archived":false,"fork":false,"pushed_at":"2017-12-21T17:49:22.000Z","size":1159,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-17T21:11:14.524Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"kkirsche.github.io/Bark","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kkirsche.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-01T16:07:34.000Z","updated_at":"2017-12-21T17:49:23.000Z","dependencies_parsed_at":"2022-08-29T12:40:39.461Z","dependency_job_id":null,"html_url":"https://github.com/kkirsche/Bark","commit_stats":null,"previous_names":[],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2FBark","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2FBark/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2FBark/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kkirsche%2FBark/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kkirsche","download_url":"https://codeload.github.com/kkirsche/Bark/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242232797,"owners_count":20093875,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-16T08:26:22.093Z","updated_at":"2026-04-22T09:32:02.089Z","avatar_url":"https://github.com/kkirsche.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![Gem Version](https://badge.fury.io/rb/barking.svg)](http://badge.fury.io/rb/barking)\n\n# Bark\n\nWelcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/bark`. To experiment with that code, run `bin/console` for an interactive prompt.\n\nTODO: Delete this and the text above, and describe your gem\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'bark'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install bark\n\n## Usage\n\nRequire Bark:\n\n```ruby\nrequire 'barking'\n```\n\nCreate a Bark client:\n```ruby\nclient = Bark::Client.new\n=\u003e #\u003cBark::Client:0x007fd0aa08c6e0\n @client=\n  #\u003cHurley::Client:0x007fd0aa08c3c0\n   @after_callbacks=[],\n   @before_callbacks=[],\n   @connection=nil,\n   @header=#\u003cHurley::Header {\"User-Agent\"=\u003e\"Hurley v0.2\"}\u003e,\n   @request_options=\n    #\u003cstruct Hurley::RequestOptions\n     timeout=nil,\n     open_timeout=nil,\n     boundary=nil,\n     bind=nil,\n     proxy=nil,\n     redirection_limit=nil,\n     query_class=nil\u003e,\n   @ssl_options=\n    #\u003cstruct Hurley::SslOptions\n     skip_verification=nil,\n     verify_depth=nil,\n     ca_file=nil,\n     ca_path=nil,\n     client_cert=nil,\n     client_cert_path=nil,\n     private_key=nil,\n     private_key_path=nil,\n     private_key_pass=nil,\n     openssl_client_cert=nil,\n     openssl_client_key=nil,\n     openssl_cert_store=nil,\n     version=nil\u003e,\n   @url=#\u003cHurley::Url http://localhost:2812\u003e\u003e,\n @host=\"localhost\",\n @password=\"monit\",\n @port=\"2812\",\n @user=\"admin\"\u003e\n```\n\nUse the Bark client:\n```ruby\nclient = Bark::Client.new\nclient.status.current\n =\u003e {:monit=\u003e\n  {:server=\u003e\n    {:id=\u003e\"4674ff31c162bba574525571642b67fd\",\n     :incarnation=\u003e\"1443740471\",\n     :version=\u003e\"5.14\",\n     :uptime=\u003e\"16012\",\n     :poll=\u003e\"30\",\n     :startdelay=\u003e\"0\",\n     :localhostname=\u003e\"JohnDoe-Laptop.com\",\n     :controlfile=\u003e\"/Users/jdoe/.monitrc\",\n     :httpd=\u003e{:address=\u003e\"localhost\", :port=\u003e\"2812\", :ssl=\u003e\"0\"}},\n   :platform=\u003e\n    {:name=\u003e\"Darwin\",\n     :release=\u003e\"15.0.0\",\n     :version=\u003e\n      \"Darwin Kernel Version 15.0.0: Wed Aug 26 16:57:32 PDT 2015; root:xnu-3247.1.106~1/RELEASE_X86_64\",\n     :machine=\u003e\"x86_64\",\n     :cpu=\u003e\"4\",\n     :memory=\u003e\"16777216\",\n     :swap=\u003e\"0\"},\n   :service=\u003e\n    {:type=\u003e\"5\",\n     :name=\u003e\"JohnDoe-Laptop.com\",\n     :collected_sec=\u003e\"1443756456\",\n     :collected_usec=\u003e\"430689\",\n     :status=\u003e\"0\",\n     :status_hint=\u003e\"0\",\n     :monitor=\u003e\"1\",\n     :monitormode=\u003e\"0\",\n     :pendingaction=\u003e\"0\",\n     :system=\u003e\n      {:load=\u003e{:avg01=\u003e\"2.16\", :avg05=\u003e\"1.87\", :avg15=\u003e\"1.81\"},\n       :cpu=\u003e{:user=\u003e\"10.9\", :system=\u003e\"5.0\"},\n       :memory=\u003e{:percent=\u003e\"54.1\", :kilobyte=\u003e\"9080656\"},\n       :swap=\u003e{:percent=\u003e\"0.0\", :kilobyte=\u003e\"0\"}}}}}\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nQuestions, comments, bug reports, and pull requests are all welcomed on Github at https://github.com/kkirsche/bark.\n\n## Authors\n\n* [Kevin Kirsche](https://github.com/kkirsche)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fbark","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkkirsche%2Fbark","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkkirsche%2Fbark/lists"}