Record Class ScriptStats

java.lang.Object
java.lang.Record
org.elasticsearch.script.ScriptStats
Record Components:
contextStats - A list of different ScriptContextStats
compilations - Total number of compilations.
cacheEvictions - Total number of evictions.
compilationLimitTriggered - Total number of times that the compilation time has been reached.
compilationsHistory - Historical information of the compilations in timeseries format.
cacheEvictionsHistory - Historical information of the evictions in timeseries format.
All Implemented Interfaces:
Writeable, ChunkedToXContent

public record ScriptStats(List<ScriptContextStats> contextStats, long compilations, long cacheEvictions, long compilationLimitTriggered, TimeSeries compilationsHistory, TimeSeries cacheEvictionsHistory) extends Record implements Writeable, ChunkedToXContent
Record object that holds global statistics of the scripts in a node.
  • Field Details

  • Constructor Details

    • ScriptStats

      public ScriptStats(long compilations, long cacheEvictions, long compilationLimitTriggered, TimeSeries compilationsHistory, TimeSeries cacheEvictionsHistory)
    • ScriptStats

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