Interface PerformanceStatsOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
PerformanceStats, PerformanceStats.Builder

@Generated public interface PerformanceStatsOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Details

    • getQueriesPerSecond

      float getQueriesPerSecond()
       Output only. The number of queries per second.
       Note: This metric can vary widely based on context length and may not be a
       reliable measure of LLM throughput.
       
      float queries_per_second = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The queriesPerSecond.
    • getOutputTokensPerSecond

      int getOutputTokensPerSecond()
       Output only. The number of output tokens per second. This is the throughput
       measured as total_output_tokens_generated_by_server /
       elapsed_time_in_seconds.
       
      int32 output_tokens_per_second = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The outputTokensPerSecond.
    • getNtpotMilliseconds

      int getNtpotMilliseconds()
       Output only. The Normalized Time Per Output Token (NTPOT) in milliseconds.
       This is the request latency normalized by the number of output tokens,
       measured as request_latency / total_output_tokens.
       
      int32 ntpot_milliseconds = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The ntpotMilliseconds.
    • getTtftMilliseconds

      int getTtftMilliseconds()
       Output only. The Time To First Token (TTFT) in milliseconds. This is the
       time it takes to generate the first token for a request.
       
      int32 ttft_milliseconds = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      The ttftMilliseconds.
    • getCostList

      List<Cost> getCostList()
       Output only. The cost of running the model deployment.
       
      repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCost

      Cost getCost(int index)
       Output only. The cost of running the model deployment.
       
      repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCostCount

      int getCostCount()
       Output only. The cost of running the model deployment.
       
      repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCostOrBuilderList

      List<? extends CostOrBuilder> getCostOrBuilderList()
       Output only. The cost of running the model deployment.
       
      repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getCostOrBuilder

      CostOrBuilder getCostOrBuilder(int index)
       Output only. The cost of running the model deployment.
       
      repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];