Class UsageService

org.elasticsearch.usage.UsageService

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

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    Add a REST handler to this service.
    <,​>
    Get the current usage statistics for this node.

    Methods inherited from class java.lang.

    , , , , , , , , , ,
  • 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 <,​> getRestUsageStats()
      Get the current usage statistics for this node.
      Returns:
      the NodeUsage representing the usage statistics for this node