Class QueryMeta

java.lang.Object
ai.chalk.models.QueryMeta

public class QueryMeta extends Object
QueryMeta represents metadata about a Chalk query.
  • Constructor Details

  • Method Details

    • getExecutionDurationS

      public double getExecutionDurationS()
      Execution duration in seconds.
    • getDeploymentId

      public String getDeploymentId()
      The id of the deployment that served this query.
    • getEnvironmentId

      public String getEnvironmentId()
      The id of the environment that served this query. Not intended to be human-readable,but helpful for support.
    • getEnvironmentName

      public String getEnvironmentName()
      The short name of the environment that served this query. For example: "dev" or "prod".
    • getQueryId

      public String getQueryId()
      A unique ID generated and persisted by Chalk for this query. All computed features, metrics, and logs are associated with this ID. Your system can store this ID for audit and debugging workflows.
    • getQueryTimestamp

      public ZonedDateTime getQueryTimestamp()
      At the start of query execution, Chalk computes 'datetime.now()'. This value is used to timestamp computed features.
    • getQueryHash

      public String getQueryHash()
      Deterministic hash of the 'structure' of the query. Queries that have the same input/output features will typically have the same hash; changes may be observed over time as we adjust implementation details.
    • getTraceId

      public String getTraceId()
      Associated trace ID for this query. Instrumental for debugging.
    • setExecutionDurationS

      public void setExecutionDurationS(double executionDurationS)
      Execution duration in seconds.
    • setDeploymentId

      public void setDeploymentId(String deploymentId)
      The id of the deployment that served this query.
    • setEnvironmentId

      public void setEnvironmentId(String environmentId)
      The id of the environment that served this query. Not intended to be human-readable,but helpful for support.
    • setEnvironmentName

      public void setEnvironmentName(String environmentName)
      The short name of the environment that served this query. For example: "dev" or "prod".
    • setQueryId

      public void setQueryId(String queryId)
      A unique ID generated and persisted by Chalk for this query. All computed features, metrics, and logs are associated with this ID. Your system can store this ID for audit and debugging workflows.
    • setQueryTimestamp

      public void setQueryTimestamp(ZonedDateTime queryTimestamp)
      At the start of query execution, Chalk computes 'datetime.now()'. This value is used to timestamp computed features.
    • setQueryHash

      public void setQueryHash(String queryHash)
      Deterministic hash of the 'structure' of the query. Queries that have the same input/output features will typically have the same hash; changes may be observed over time as we adjust implementation details.
    • setTraceId

      public void setTraceId(String traceId)
      Associated trace ID for this query. Instrumental for debugging.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • canEqual

      protected boolean canEqual(Object other)
    • hashCode

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

      public String toString()
      Overrides:
      toString in class Object