public class LibratoWriter extends BaseOutputWriter
/v1/metrics HTTP API.
Settings:
url": Librato server URL. Optional, default value:
"https://metrics-api.librato.com/v1/metrics".username": Librato username. Mandatorytoken": Librato token. MandatorylibratoApiTimeoutInMillis": read timeout of the calls to Librato
HTTP API. Optional, default value: 1000.| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_LIBRATO_API_URL |
static String |
SETTING_LIBRATO_API_TIMEOUT_IN_MILLIS |
static String |
SETTING_PROXY_HOST |
static String |
SETTING_PROXY_PORT |
static String |
SETTING_TOKEN |
static String |
SETTING_URL |
static String |
SETTING_USERNAME |
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
LibratoWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
URL url,
Integer libratoApiTimeoutInMillis,
String username,
String token,
String proxyHost,
Integer proxyPort,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
int |
getLibratoApiTimeoutInMillis() |
String |
getProxyHost() |
Integer |
getProxyPort() |
String |
getToken() |
URL |
getUrl() |
String |
getUsername() |
void |
internalWrite(Server server,
Query query,
com.google.common.collect.ImmutableList<Result> results) |
void |
validateSetup(Server server,
Query query) |
close, create, doWrite, firstNonNull, getConcatedTypeNameValues, getSettings, getTypeNames, isDebugEnabled, start, toStringpublic static final String SETTING_URL
public static final String SETTING_USERNAME
public static final String SETTING_TOKEN
public static final String SETTING_PROXY_HOST
public static final String SETTING_PROXY_PORT
public static final String DEFAULT_LIBRATO_API_URL
public static final String SETTING_LIBRATO_API_TIMEOUT_IN_MILLIS
public LibratoWriter(com.google.common.collect.ImmutableList<String> typeNames, boolean booleanAsNumber, Boolean debugEnabled, URL url, Integer libratoApiTimeoutInMillis, String username, String token, String proxyHost, Integer proxyPort, Map<String,Object> settings) throws MalformedURLException
MalformedURLExceptionpublic void validateSetup(Server server, Query query) throws ValidationException
ValidationExceptionpublic void internalWrite(Server server, Query query, com.google.common.collect.ImmutableList<Result> results) throws Exception
internalWrite in class BaseOutputWriterExceptionpublic URL getUrl()
public int getLibratoApiTimeoutInMillis()
public String getUsername()
public String getToken()
public String getProxyHost()
public Integer getProxyPort()
Copyright © 2010-2017 JmxTrans team. All Rights Reserved.