Package org.elasticsearch.usage
Class UsageService
java.lang.Object
org.elasticsearch.usage.UsageService
public class UsageService
extends java.lang.Object
A service to monitor usage of Elasticsearch features.
-
Constructor Summary
Constructors Constructor Description UsageService() -
Method Summary
Modifier and Type Method Description voidaddRestHandler(BaseRestHandler handler)Add a REST handler to this service.NodeUsagegetUsageStats(DiscoveryNode localNode, boolean restActions)Get the current usage statistics for this node.
-
Constructor Details
-
UsageService
public UsageService()
-
-
Method Details
-
addRestHandler
Add a REST handler to this service.- Parameters:
handler- theBaseRestHandlerto add to the usage service.
-
getUsageStats
Get the current usage statistics for this node.- Parameters:
localNode- theDiscoveryNodefor this noderestActions- whether to include rest action usage in the returned statistics- Returns:
- the
NodeUsagerepresenting the usage statistics for this node
-