{"id":18767982,"url":"https://github.com/riemann/riemann-clojure-client","last_synced_at":"2025-04-09T05:10:18.587Z","repository":{"id":4189497,"uuid":"5307606","full_name":"riemann/riemann-clojure-client","owner":"riemann","description":"A Clojure client for the Riemann monitoring system.","archived":false,"fork":false,"pushed_at":"2024-09-03T22:14:17.000Z","size":128,"stargazers_count":74,"open_issues_count":3,"forks_count":40,"subscribers_count":7,"default_branch":"main","last_synced_at":"2025-04-02T04:03:30.247Z","etag":null,"topics":["clojure"],"latest_commit_sha":null,"homepage":null,"language":"Clojure","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":"edubart/otclient","license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/riemann.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2012-08-05T22:36:47.000Z","updated_at":"2024-09-03T22:14:19.000Z","dependencies_parsed_at":"2024-11-14T20:01:14.609Z","dependency_job_id":"a711fb14-f0e7-41af-a31f-31997ae9dac3","html_url":"https://github.com/riemann/riemann-clojure-client","commit_stats":{"total_commits":150,"total_committers":19,"mean_commits":7.894736842105263,"dds":0.5866666666666667,"last_synced_commit":"c8c7c7ddb09159ae476d66d9609b9b9e0507fa65"},"previous_names":[],"tags_count":24,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riemann%2Friemann-clojure-client","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riemann%2Friemann-clojure-client/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riemann%2Friemann-clojure-client/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/riemann%2Friemann-clojure-client/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/riemann","download_url":"https://codeload.github.com/riemann/riemann-clojure-client/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247980837,"owners_count":21027808,"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":["clojure"],"created_at":"2024-11-07T19:09:59.002Z","updated_at":"2025-04-09T05:10:18.570Z","avatar_url":"https://github.com/riemann.png","language":"Clojure","funding_links":[],"categories":[],"sub_categories":[],"readme":"# riemann-clojure-client\n\nA Clojure client for [Riemann](https://riemann.io). This is just a\nsmall wrapper around\n[riemann-java-client](https://github.com/aphyr/riemann-java-client); see its\ndocumentation for more details.\n\n[![Riemann Clojure Client testing](https://github.com/riemann/riemann-clojure-client/actions/workflows/config.yml/badge.svg)](https://github.com/riemann/riemann-clojure-client/actions/workflows/config.yml)\n\n## Usage\n\nDownload from clojars: [![Clojars Project](https://img.shields.io/clojars/v/riemann-clojure-client.svg)](https://clojars.org/riemann-clojure-client)\n\n``` clojure\n(require '[riemann.client :as r])\n(def c (r/tcp-client {:host \"1.2.3.4\"}))\n(-\u003e c (r/send-event {:service \"foo\" :state \"ok\"})\n      (deref 5000 ::timeout))\n@(r/query c \"state = \\\"ok\\\"\")\n```\n\nAll operations return deref-able Riemann Promises, supporting both the untimed\nand time-bounded deref operations. Deref will throw for IO errors, or when the\nserver returns an invalid response. You can and should retry these operations.\nNote that the client will not accept unbounded writes; calls to send() when the\nclient's local buffers are full may return immediately with an\nOverloadedException.\n\n## TLS\n\nTo connect to a Riemann server using TLS, please refer to\nhttps://github.com/aphyr/less-awful-ssl for building a CA certificate, signed\nkey and cert.\n\n``` clojure\n(def c (r/tcp-client {:host \"1.2.3.4\"\n                    :port 5554\n                    :tls? true\n                    :key \"client.pkcs8\"\n                    :cert \"client.crt\"\n                    :ca-cert \"ca.crt\"}))\n@(r/send-event c {:service \"foo\" :state \"ok\"})\n@(r/query c \"state = \\\"ok\\\"\")\n```\n\n:key, :cert and :ca-cert could be any type of File, URI, URL, Socket, byte\narray, and String arguments. If the argument is a String, it tries to resolve\nit first as a URI, then as a local file name. URIs with a 'file' protocol are\nconverted to local file names. (Check clojure.java.io/input-stream for more\ninformation.)\n\n## License\n\nCopyright © 2012--2015 Kyle Kingsbury \u003caphyr@aphyr.com\u003e\n\nDistributed under the Eclipse Public License, the same as Clojure.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friemann%2Friemann-clojure-client","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Friemann%2Friemann-clojure-client","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Friemann%2Friemann-clojure-client/lists"}