Package com.bytedesk.ai.statistic_token
Class StatisticTokenHourlyResponse
java.lang.Object
com.bytedesk.core.base.BaseResponse
com.bytedesk.ai.statistic_token.StatisticTokenHourlyResponse
- All Implemented Interfaces:
Serializable
Response class for hourly AI token statistics
Represents token usage data organized by hour for a specific date
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate String
AI model type (gpt-4, gpt-3.5, claude, gemini, etc.)private String
AI provider (openai, baidu, zhipuai, etc.)private Long
Average response time in milliseconds for this hourprivate Long
Completion tokens consumed in this hourprivate String
Date in YYYY-MM-DD formatprivate Long
Failed requests in this hourprivate Integer
Hour of the day (0-23)private List<StatisticTokenHourlyResponse>
List of hourly data points for the entire day (0-23 hours)private String
Organization UIDprivate Long
Prompt tokens consumed in this hourprivate Double
Success rate percentage for this hourprivate Long
Successful requests in this hourprivate BigDecimal
Total cost in USD for this hourprivate Long
Total requests made in this hourprivate Long
Total tokens consumed in this hourFields inherited from class com.bytedesk.core.base.BaseResponse
createdAt, uid, updatedAt, userUid
-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class com.bytedesk.core.base.BaseResponse
getCreatedAt, getUpdatedAt, toJson
-
Field Details
-
orgUid
Organization UID -
date
Date in YYYY-MM-DD format -
hour
Hour of the day (0-23) -
aiProvider
AI provider (openai, baidu, zhipuai, etc.) -
aiModelType
AI model type (gpt-4, gpt-3.5, claude, gemini, etc.) -
totalTokens
Total tokens consumed in this hour -
promptTokens
Prompt tokens consumed in this hour -
completionTokens
Completion tokens consumed in this hour -
totalRequests
Total requests made in this hour -
successRequests
Successful requests in this hour -
failedRequests
Failed requests in this hour -
totalCost
Total cost in USD for this hour -
avgResponseTime
Average response time in milliseconds for this hour -
successRate
Success rate percentage for this hour -
hourlyData
List of hourly data points for the entire day (0-23 hours)
-
-
Constructor Details
-
StatisticTokenHourlyResponse
public StatisticTokenHourlyResponse()
-