Class StatisticTokenHourlyResponse

java.lang.Object
com.bytedesk.core.base.BaseResponse
com.bytedesk.ai.statistic_token.StatisticTokenHourlyResponse
All Implemented Interfaces:
Serializable

public class StatisticTokenHourlyResponse extends BaseResponse
Response class for hourly AI token statistics Represents token usage data organized by hour for a specific date
See Also:
  • Field Details

    • orgUid

      private String orgUid
      Organization UID
    • date

      private String date
      Date in YYYY-MM-DD format
    • hour

      private Integer hour
      Hour of the day (0-23)
    • aiProvider

      private String aiProvider
      AI provider (openai, baidu, zhipuai, etc.)
    • aiModelType

      private String aiModelType
      AI model type (gpt-4, gpt-3.5, claude, gemini, etc.)
    • totalTokens

      private Long totalTokens
      Total tokens consumed in this hour
    • promptTokens

      private Long promptTokens
      Prompt tokens consumed in this hour
    • completionTokens

      private Long completionTokens
      Completion tokens consumed in this hour
    • totalRequests

      private Long totalRequests
      Total requests made in this hour
    • successRequests

      private Long successRequests
      Successful requests in this hour
    • failedRequests

      private Long failedRequests
      Failed requests in this hour
    • totalCost

      private BigDecimal totalCost
      Total cost in USD for this hour
    • avgResponseTime

      private Long avgResponseTime
      Average response time in milliseconds for this hour
    • successRate

      private Double successRate
      Success rate percentage for this hour
    • hourlyData

      private List<StatisticTokenHourlyResponse> hourlyData
      List of hourly data points for the entire day (0-23 hours)
  • Constructor Details

    • StatisticTokenHourlyResponse

      public StatisticTokenHourlyResponse()