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 StringAI model type (gpt-4, gpt-3.5, claude, gemini, etc.)private StringAI provider (openai, baidu, zhipuai, etc.)private LongAverage response time in milliseconds for this hourprivate LongCompletion tokens consumed in this hourprivate StringDate in YYYY-MM-DD formatprivate LongFailed requests in this hourprivate IntegerHour of the day (0-23)private List<StatisticTokenHourlyResponse>List of hourly data points for the entire day (0-23 hours)private StringOrganization UIDprivate LongPrompt tokens consumed in this hourprivate DoubleSuccess rate percentage for this hourprivate LongSuccessful requests in this hourprivate BigDecimalTotal cost in USD for this hourprivate LongTotal requests made in this hourprivate LongTotal 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()
-