Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ovotech/clj-aiven
https://github.com/ovotech/clj-aiven
Last synced: 12 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ovotech/clj-aiven
- Owner: ovotech
- Created: 2017-11-04T19:31:17.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2020-02-17T17:08:58.000Z (almost 5 years ago)
- Last Synced: 2024-04-29T10:07:05.682Z (8 months ago)
- Language: Clojure
- Size: 13.7 KB
- Stars: 3
- Watchers: 16
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# clj-aiven
A Clojure library designed to interact with aiven api.
## Usage
```clojure
;Get topic lag
(require 'clj-aiven.core)(def aiven-conn {:project "proj-name"
:service "serv-name"
:token "aivenv1 token"})
(topic-info aiven-conn "topic-name")(topic-consumer-lag conn "topic-name" "consumer-name")
----------------------------------------------------------------------------------
;Get topic sizes
(def schema-conn {:url "***REMOVED***"
:user "user"
:pass "password"})
(list-topic-sizes conn schema-conn)
```