public class Stats extends StatsDeprecated
Modifier and Type | Method and Description |
---|---|
ApiResponse |
allSitesStats(java.lang.String keyprefix)
Gets all of the site based statistics, optionally filtered by a key prefix
|
ApiResponse |
clearStats(java.lang.String keyprefix)
Clears all of the statistics
|
ApiResponse |
optionInMemoryEnabled()
Returns 'true' if in memory statistics are enabled, otherwise returns 'false'
|
ApiResponse |
optionStatsdEnabled()
Returns 'true' if a Statsd server has been correctly configured, otherwise returns 'false'
|
ApiResponse |
optionStatsdHost()
Gets the Statsd service hostname
|
ApiResponse |
optionStatsdPort()
Gets the Statsd service port
|
ApiResponse |
optionStatsdPrefix()
Gets the prefix to be applied to all stats sent to the configured Statsd service
|
ApiResponse |
setOptionInMemoryEnabled(boolean bool)
Sets whether in memory statistics are enabled
|
ApiResponse |
setOptionStatsdHost(java.lang.String string)
Sets the Statsd service hostname, supply an empty string to stop using a Statsd service
|
ApiResponse |
setOptionStatsdPort(int i)
Sets the Statsd service port
|
ApiResponse |
setOptionStatsdPrefix(java.lang.String string)
Sets the prefix to be applied to all stats sent to the configured Statsd service
|
ApiResponse |
siteStats(java.lang.String site,
java.lang.String keyprefix)
Gets all of the global statistics, optionally filtered by a key prefix
|
ApiResponse |
stats(java.lang.String keyprefix)
Statistics
|
clearStats, setOptionInMemoryEnabled, setOptionStatsdHost, setOptionStatsdPort, setOptionStatsdPrefix
public Stats(ClientApi api)
public ApiResponse stats(java.lang.String keyprefix) throws ClientApiException
ClientApiException
public ApiResponse allSitesStats(java.lang.String keyprefix) throws ClientApiException
ClientApiException
public ApiResponse siteStats(java.lang.String site, java.lang.String keyprefix) throws ClientApiException
ClientApiException
public ApiResponse optionStatsdHost() throws ClientApiException
ClientApiException
public ApiResponse optionStatsdPort() throws ClientApiException
ClientApiException
public ApiResponse optionStatsdPrefix() throws ClientApiException
ClientApiException
public ApiResponse optionInMemoryEnabled() throws ClientApiException
ClientApiException
public ApiResponse optionStatsdEnabled() throws ClientApiException
ClientApiException
public ApiResponse clearStats(java.lang.String keyprefix) throws ClientApiException
ClientApiException
public ApiResponse setOptionStatsdHost(java.lang.String string) throws ClientApiException
ClientApiException
public ApiResponse setOptionStatsdPrefix(java.lang.String string) throws ClientApiException
ClientApiException
public ApiResponse setOptionInMemoryEnabled(boolean bool) throws ClientApiException
ClientApiException
public ApiResponse setOptionStatsdPort(int i) throws ClientApiException
ClientApiException