Class Usage
java.lang.Object
com.alibaba.dashscope.types.common.Usage
Token usage, the single Usage class for every resource (design §3). Service-specific counters
(image_count for text-to-image, models for applications, per-provider billing detail) land in
getExtra() and are never dropped.-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetExtra()Service-specific counters not covered by the three canonical fields.intintintvoid
-
Constructor Details
-
Usage
public Usage()
-
-
Method Details
-
getInputTokens
public int getInputTokens() -
getOutputTokens
public int getOutputTokens() -
getTotalTokens
public int getTotalTokens() -
putExtra
-
getExtra
Service-specific counters not covered by the three canonical fields.
-