Record Class ScriptContextStats

java.lang.Object
java.lang.Record
org.elasticsearch.script.ScriptContextStats
Record Components:
context - Context name.
compilations - Total number of compilations.
compilationsHistory - Historical information of the compilations of scripts in timeseries format.
cacheEvictions - Total of evictions.
cacheEvictionsHistory - Historical information of the evictions of scripts in timeseries format.
compilationLimitTriggered - Total times that a limit of compilations that have reached the limit.
All Implemented Interfaces:
Comparable<ScriptContextStats>, Writeable, ToXContent, ToXContentFragment

public record ScriptContextStats(String context, long compilations, TimeSeries compilationsHistory, long cacheEvictions, TimeSeries cacheEvictionsHistory, long compilationLimitTriggered) extends Record implements Writeable, ToXContentFragment, Comparable<ScriptContextStats>
Record object that holds stats information for the different script contexts in a node.
  • Constructor Details

    • ScriptContextStats

      public ScriptContextStats(String context, long compilationLimitTriggered, TimeSeries compilationsHistory, TimeSeries cacheEvictionsHistory)
    • ScriptContextStats

      public ScriptContextStats(String context, long compilations, TimeSeries compilationsHistory, long cacheEvictions, TimeSeries cacheEvictionsHistory, long compilationLimitTriggered)
      Creates an instance of a ScriptContextStats record class.
      Parameters:
      context - the value for the context record component
      compilations - the value for the compilations record component
      compilationsHistory - the value for the compilationsHistory record component
      cacheEvictions - the value for the cacheEvictions record component
      cacheEvictionsHistory - the value for the cacheEvictionsHistory record component
      compilationLimitTriggered - the value for the compilationLimitTriggered record component
  • Method Details