Class StatisticTokenResponse

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

public class StatisticTokenResponse extends BaseResponse
See Also:
  • Field Details

    • type

      private String type
    • aiModelType

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

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

      private Long promptTokens
      Number of prompt tokens consumed
    • completionTokens

      private Long completionTokens
      Number of completion tokens consumed
    • totalTokens

      private Long totalTokens
      Total number of tokens consumed
    • totalRequests

      private Long totalRequests
      Total number of requests made
    • successRequests

      private Long successRequests
      Number of successful requests
    • failedRequests

      private Long failedRequests
      Number of failed requests
    • tokenUnitPrice

      private BigDecimal tokenUnitPrice
      Cost per token in USD
    • totalCost

      private BigDecimal totalCost
      Total cost in USD
    • avgResponseTime

      private Long avgResponseTime
      Average response time in milliseconds
    • hour

      private Integer hour
      Hour of the day for hourly statistics (0-23)
    • date

      private String date
      Date for daily statistics (YYYY-MM-DD format)
    • status

      private String status
      Statistics status (active/archived)
  • Constructor Details

    • StatisticTokenResponse

      public StatisticTokenResponse()