Package com.exoscale.sdk.model
Class ModelUsageCounters
java.lang.Object
com.exoscale.sdk.model.ModelUsageCounters
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class ModelUsageCounters
extends Object
Accumulated Unit Of Measurement (UOM) counters for one model over a flush window
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncacheReadInputUom(Integer cacheReadInputUom) cacheWriteInputUom(Integer cacheWriteInputUom) booleanReturn true if this model-usage-counters object is equal to o.Prompt/input UOM served from prefix cache across all calls in this flush window (excluded from input-uom); optional, defaults to 0 minimum: 0Subset of input-uom written to prefix cache across all calls in this flush window; optional, defaults to 0 minimum: 0Number of inference calls in this flush window minimum: 1Uncached prompt/input Unit Of Measurement (UOM) across all calls in this flush window (total prompt minus cache-read) minimum: 0Total completion/output Unit Of Measurement (UOM) across all calls in this flush window (e.g., tokens for LLMs, minutes for TTS, pages for OCR) minimum: 0inthashCode()voidsetCacheReadInputUom(Integer cacheReadInputUom) voidsetCacheWriteInputUom(Integer cacheWriteInputUom) voidsetCallCount(Integer callCount) voidsetInputUom(Integer inputUom) voidsetOutputUom(Integer outputUom) toString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_OUTPUT_UOM
- See Also:
-
JSON_PROPERTY_INPUT_UOM
- See Also:
-
JSON_PROPERTY_CACHE_WRITE_INPUT_UOM
- See Also:
-
JSON_PROPERTY_CACHE_READ_INPUT_UOM
- See Also:
-
JSON_PROPERTY_CALL_COUNT
- See Also:
-
-
Constructor Details
-
ModelUsageCounters
public ModelUsageCounters()
-
-
Method Details
-
outputUom
-
getOutputUom
Total completion/output Unit Of Measurement (UOM) across all calls in this flush window (e.g., tokens for LLMs, minutes for TTS, pages for OCR) minimum: 0- Returns:
- outputUom
-
setOutputUom
-
inputUom
-
getInputUom
Uncached prompt/input Unit Of Measurement (UOM) across all calls in this flush window (total prompt minus cache-read) minimum: 0- Returns:
- inputUom
-
setInputUom
-
cacheWriteInputUom
-
getCacheWriteInputUom
Subset of input-uom written to prefix cache across all calls in this flush window; optional, defaults to 0 minimum: 0- Returns:
- cacheWriteInputUom
-
setCacheWriteInputUom
-
cacheReadInputUom
-
getCacheReadInputUom
Prompt/input UOM served from prefix cache across all calls in this flush window (excluded from input-uom); optional, defaults to 0 minimum: 0- Returns:
- cacheReadInputUom
-
setCacheReadInputUom
-
callCount
-
getCallCount
Number of inference calls in this flush window minimum: 1- Returns:
- callCount
-
setCallCount
-
equals
Return true if this model-usage-counters object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-