Package org.elasticsearch.usage
Class UsageService
java.lang.Object
org.elasticsearch.usage.UsageService
A service to monitor usage of Elasticsearch features.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
addRestHandler(BaseRestHandler handler)
Add a REST handler to this service.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
- theBaseRestHandler
to add to the usage service.
-
getRestUsageStats
Get the current usage statistics for this node.- Returns:
- the
NodeUsage
representing the usage statistics for this node
-