Skip to content

CleverCloud/warp10-scala-client

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
src
 
 
 
 
 
 
 
 
 
 
 
 

master: Build Status

This is a scala client for Warp10 Geo/time series DB

It is based on the http4s client, and the Pooled HTTP client, keeping TCP connection alive. Configuration of the Client is here

Features

This client is able to send data to the warp10 DB ATM. It's the main purpose and usage for the time being, on my side there is no active work on fetching data, PR welcome.

How to add to your project

Add the dependency to your build.sbt:

"com.clevercloud" %% "warp10-scala-client" % "2.0.3"

Add the resolver:

resolvers += "Clever Cloud Bintray" at "https://dl.bintray.com/clevercloud/maven"

Download You can add yourself to the watchers list on the Bintray repo to be notified of new versions: https://bintray.com/clevercloud/maven/warp10-scala-client

Code examples

val w10client = new Warp10Client(Uri.uri("http://localhost:8080/"), "WRITE")
w10client.sendData(Warp10Data(time, None, "org.test.plain.string", Set("label1" -> "dsfF3", "label2" -> "dsfg"), "data string test")).run

Look at the tests directory for functional tests and code examples