Class TrainedModelStats

java.lang.Object
org.elasticsearch.client.ml.inference.TrainedModelStats
All Implemented Interfaces:
org.elasticsearch.xcontent.ToXContent, org.elasticsearch.xcontent.ToXContentObject

public class TrainedModelStats extends Object implements org.elasticsearch.xcontent.ToXContentObject
  • Nested Class Summary

    Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent

    org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.Params
  • Field Summary

    Fields
    Modifier and Type
    Field
    Description
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     
    static final org.elasticsearch.xcontent.ParseField
     

    Fields inherited from interface org.elasticsearch.xcontent.ToXContent

    EMPTY_PARAMS
  • Constructor Summary

    Constructors
    Constructor
    Description
    TrainedModelStats(String modelId, Map<String,Object> ingestStats, int pipelineCount, InferenceStats inferenceStats)
     
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    fromXContent(org.elasticsearch.xcontent.XContentParser parser)
     
    Inference statistics
    Ingest level statistics.
    The model id for which the stats apply
    int
    The total number of pipelines that reference the trained model
    int
     
    org.elasticsearch.xcontent.XContentBuilder
    toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params)
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface org.elasticsearch.xcontent.ToXContentObject

    isFragment
  • Field Details

    • MODEL_ID

      public static final org.elasticsearch.xcontent.ParseField MODEL_ID
    • PIPELINE_COUNT

      public static final org.elasticsearch.xcontent.ParseField PIPELINE_COUNT
    • INGEST_STATS

      public static final org.elasticsearch.xcontent.ParseField INGEST_STATS
    • INFERENCE_STATS

      public static final org.elasticsearch.xcontent.ParseField INFERENCE_STATS
  • Constructor Details

  • Method Details

    • fromXContent

      public static TrainedModelStats fromXContent(org.elasticsearch.xcontent.XContentParser parser)
    • getModelId

      public String getModelId()
      The model id for which the stats apply
    • getIngestStats

      @Nullable public Map<String,Object> getIngestStats()
      Ingest level statistics. See IngestStats.toXContent(XContentBuilder, Params) for fields and format If there are no ingest pipelines referencing the model, then the ingest statistics could be null.
    • getPipelineCount

      public int getPipelineCount()
      The total number of pipelines that reference the trained model
    • getInferenceStats

      public InferenceStats getInferenceStats()
      Inference statistics
    • toXContent

      public org.elasticsearch.xcontent.XContentBuilder toXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException
      Specified by:
      toXContent in interface org.elasticsearch.xcontent.ToXContent
      Throws:
      IOException
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object