Class UsageService

java.lang.Object
org.elasticsearch.usage.UsageService

public class UsageService extends Object
A service to monitor usage of Elasticsearch features.
  • Constructor Details

    • UsageService

      public UsageService()
  • Method Details

    • addRestHandler

      public void addRestHandler(BaseRestHandler handler)
      Add a REST handler to this service.
      Parameters:
      handler - the BaseRestHandler to add to the usage service.
    • getRestUsageStats

      public Map<String,Long> getRestUsageStats()
      Get the current usage statistics for this node.
      Returns:
      the NodeUsage representing the usage statistics for this node