Class SearchResponseMetrics

java.lang.Object
org.elasticsearch.rest.action.search.SearchResponseMetrics

public class SearchResponseMetrics extends Object
Container class for aggregated metrics about search responses.
  • Field Details

    • RESPONSE_COUNT_TOTAL_STATUS_ATTRIBUTE_NAME

      public static final String RESPONSE_COUNT_TOTAL_STATUS_ATTRIBUTE_NAME
      See Also:
    • TOOK_DURATION_TOTAL_HISTOGRAM_NAME

      public static final String TOOK_DURATION_TOTAL_HISTOGRAM_NAME
      See Also:
    • RESPONSE_COUNT_TOTAL_COUNTER_NAME

      public static final String RESPONSE_COUNT_TOTAL_COUNTER_NAME
      See Also:
  • Constructor Details

    • SearchResponseMetrics

      public SearchResponseMetrics(MeterRegistry meterRegistry)
  • Method Details

    • recordTookTimeForSearchScroll

      public long recordTookTimeForSearchScroll(long tookTime)
    • recordTookTime

      public long recordTookTime(long tookTime, Map<String,Object> attributes)
    • incrementResponseCount

      public void incrementResponseCount(SearchResponseMetrics.ResponseCountTotalStatus responseCountTotalStatus)