public abstract class AbstractZabbixReporterConfig extends AbstractHostPortReporterConfig
Modifier and Type | Field and Description |
---|---|
protected int |
connectTimeout |
protected String |
hostName |
protected String |
name |
protected String |
prefix |
protected int |
socketTimeout |
MACRO_HOST_ADDRESS, MACRO_HOST_FQDN, MACRO_HOST_NAME, MACRO_HOST_NAME_SHORT
durationunit, period, predicate, rateunit, timeunit
Constructor and Description |
---|
AbstractZabbixReporterConfig() |
Modifier and Type | Method and Description |
---|---|
int |
getConnectTimeout() |
String |
getHostName() |
String |
getName() |
String |
getPrefix() |
int |
getSocketTimeout() |
void |
setConnectTimeout(int connectTimeout) |
void |
setHostName(String hostName) |
void |
setName(String name) |
void |
setPrefix(String prefix)
Sets the prefix to be prepended to all metric names.
|
void |
setSocketTimeout(int socketTimeout) |
getFullHostList, getHostListAndStringList, getHosts, getHostsString, getResolvedPrefix, parseHostString, setHosts, setHostsString
getDurationunit, getPeriod, getPredicate, getRateunit, getRealDurationunit, getRealRateunit, getRealTimeunit, getTimeunit, isClassAvailable, setDurationunit, setPeriod, setPredicate, setRateunit, setTimeunit
@Min(value=0L) protected int connectTimeout
@Min(value=0L) protected int socketTimeout
protected String name
protected String hostName
protected String prefix
public int getConnectTimeout()
public void setConnectTimeout(int connectTimeout)
public int getSocketTimeout()
public void setSocketTimeout(int socketTimeout)
public String getName()
public void setName(String name)
public String getHostName()
public void setHostName(String hostName)
public String getPrefix()
public void setPrefix(String prefix)
AbstractHostPortReporterConfig
Sets the prefix to be prepended to all metric names. The prefix may contain the variable references in the following format: ${macro_name}.
The following macros are supported:
AbstractHostPortReporterConfig.MACRO_HOST_ADDRESS
InetAddress.getHostAddress()
AbstractHostPortReporterConfig.MACRO_HOST_NAME
InetAddress.getHostName()
AbstractHostPortReporterConfig.MACRO_HOST_NAME_SHORT
InetAddress.getHostName()
up to first dotAbstractHostPortReporterConfig.MACRO_HOST_FQDN
InetAddress.getCanonicalHostName()
All substituted values are made metric-safe
setPrefix
in class AbstractHostPortReporterConfig
prefix
- prefix valueCopyright © 2016. All rights reserved.