public class SensuWriter extends BaseOutputWriter
host": Sensu client host. Optional, default value: "localhost"handler": Sensu handler. Optional, default value: "graphite"| Modifier and Type | Field and Description |
|---|---|
static String |
DEFAULT_SENSU_HANDLER |
static String |
DEFAULT_SENSU_HOST |
static String |
SETTING_HANDLER |
BINARY_PATH, BOOLEAN_AS_NUMBER, DEBUG, HOST, OUTPUT_FILE, PORT, TEMPLATE_FILE, TYPE_NAMES| Constructor and Description |
|---|
SensuWriter(com.google.common.collect.ImmutableList<String> typeNames,
boolean booleanAsNumber,
Boolean debugEnabled,
String host,
String handler,
Map<String,Object> settings) |
| Modifier and Type | Method and Description |
|---|---|
String |
getHandler() |
String |
getHost() |
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_HANDLER
public static final String DEFAULT_SENSU_HOST
public static final String DEFAULT_SENSU_HANDLER
public 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 String getHost()
public String getHandler()
Copyright © 2010-2017 JmxTrans team. All Rights Reserved.