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 Summary
Modifier and TypeMethodDescriptiongetCost(int index) Output only.intOutput only.Output only.getCostOrBuilder(int index) Output only.List<? extends CostOrBuilder>Output only.intOutput only.intOutput only.floatOutput only.intOutput only.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
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
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; -
getCost
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
Output only. The cost of running the model deployment.
repeated .google.cloud.gkerecommender.v1.Cost cost = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
-