{"id":15705371,"url":"https://github.com/rossta/fnord-client","last_synced_at":"2025-02-23T01:14:39.409Z","repository":{"id":3085075,"uuid":"4109184","full_name":"rossta/fnord-client","owner":"rossta","description":"A client for sending events to an FnordMetric server over UDP (or TCP)","archived":false,"fork":false,"pushed_at":"2012-05-07T03:50:12.000Z","size":116,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-15T10:57:01.857Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/rossta.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":"2012-04-23T03:03:48.000Z","updated_at":"2013-10-08T19:13:29.000Z","dependencies_parsed_at":"2022-09-10T23:02:26.525Z","dependency_job_id":null,"html_url":"https://github.com/rossta/fnord-client","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Ffnord-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Ffnord-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Ffnord-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/rossta%2Ffnord-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/rossta","download_url":"https://codeload.github.com/rossta/fnord-client/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240254288,"owners_count":19772392,"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-10-03T20:15:36.346Z","updated_at":"2025-02-23T01:14:39.385Z","avatar_url":"https://github.com/rossta.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Fnord::Client\n\nSend events to an [FnordMetric](https://github.com/paulasmuth/fnordmetric) server via UDP (or TCP).\n\n[![Build Status](https://secure.travis-ci.org/rossta/fnord-client.png?branch=master)](http://travis-ci.org/rossta/fnord-client)\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n    gem 'fnord-client'\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install fnord-client\n\n## Usage\n\n```ruby\n# Connect to FnordMetric inbound stream over UDP (default)\n$fnord = Fnord::Client('localhost', 1337)\n\n# Connect to FnordMetric inbound stream over TCP\n$fnord = Fnord::Client('localhost', 1337, :protocol =\u003e :tcp)\n\n# send JSON-encoded event\n$fnord.event(\"message_received\", :user_id =\u003e 123)\n# \"{\\\"_type\\\":\\\"message_received\\\",\\\"user_id\\\":\\\"123\\\"}\"\n\n# set a default namespace\nFnord::Client.namespace = \"staging\"\n$fnord.event(\"message_received\")\n# \"{\\\"_type\\\":\\\"message_received\\\",\\\"_namespace\\\":\\\"staging\\\"}\"\n\n# on the server-side, configure FnordMetric to listen over UDP\nFnordMetric.server_configuration = {\n  :inbound_protocol =\u003e :udp,\n  :inbound_stream =\u003e ['0.0.0.0', '1337']\n  # other options omitted\n}\n```\n\n## Contributing\n\n1. Fork it\n2. Create your feature branch (`git checkout -b my-new-feature`)\n3. Commit your changes (`git commit -am 'Added some feature'`)\n4. Push to the branch (`git push origin my-new-feature`)\n5. Create new Pull Request\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Ffnord-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Frossta%2Ffnord-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Frossta%2Ffnord-client/lists"}