![JAR search and dependency download from the Maven repository](/logo.png)
org.kairosdb.client.builder.aggregator.CustomAggregator Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kairosdb-client Show documentation
Show all versions of kairosdb-client Show documentation
Java client for pushing and querying data to/from KairosDB
The newest version!
//
// CustomAggregator.java
//
// Copyright 2013, Proofpoint Inc. All rights reserved.
//
package org.kairosdb.client.builder.aggregator;
import org.kairosdb.client.builder.Aggregator;
import static org.kairosdb.client.util.Preconditions.checkNotNullOrEmpty;
/**
* Creates an aggregator that takes custom JSON.
*/
public class CustomAggregator extends Aggregator
{
private String json;
public CustomAggregator(String name, String json)
{
super(name);
this.json = checkNotNullOrEmpty(json);
}
public String toJson()
{
return "{\"name\":\"" + getName() + "\"," + json + "}";
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy