[]
        
(Showing Draft Content)

ChatTokenUsage

ChatTokenUsage

[GET] /api/v2/ai/token-usage/summary

Parameters

Name In Type
startTime query string
endTime query string
userId query string

Responses

[200] Success

GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageSummaryDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Type: [text/plain], [application/json], [text/json]

[400] Bad Request

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[403] Forbidden

ProblemDetails

Type: [text/plain], [application/json], [text/json]

[500] Server Error

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[GET] /api/v2/ai/token-usage/records

Parameters

Name In Type
startTime query string
endTime query string
userId query string
page query integer
pageSize query integer

Responses

[200] Success

GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageRecordDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageRecordsMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Type: [text/plain], [application/json], [text/json]

[400] Bad Request

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[403] Forbidden

ProblemDetails

Type: [text/plain], [application/json], [text/json]

[500] Server Error

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[GET] /api/v2/ai/token-usage/aggregations/time

Parameters

Name In Type
startTime query string
endTime query string
timezoneOffsetMinutes query integer
granularity query string
userId query string

Responses

[200] Success

GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageTimeAggregationDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageTimeAggregationMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Type: [text/plain], [application/json], [text/json]

[400] Bad Request

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[403] Forbidden

ProblemDetails

Type: [text/plain], [application/json], [text/json]

[500] Server Error

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[GET] /api/v2/ai/token-usage/aggregations/users

Parameters

Name In Type
startTime query string
endTime query string
page query integer
pageSize query integer

Responses

[200] Success

GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageUserAggregationDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageUserAggregationMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Type: [text/plain], [application/json], [text/json]

[400] Bad Request

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

[403] Forbidden

ProblemDetails

Type: [text/plain], [application/json], [text/json]

[500] Server Error

TokenUsageErrorResponseDto

Type: [text/plain], [application/json], [text/json]

Models

Ƭ GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageSummaryDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Name Type
data TokenUsageSummaryDto

Ƭ TokenUsageSummaryDto

Name Type
startTime ISO DateTime Sting
endTime ISO DateTime Sting
questionCount int32
userCount int32
inputTokenCount int64
outputTokenCount int64

Ƭ TokenUsageErrorResponseDto

Name Type
error TokenUsageErrorDto

Ƭ TokenUsageErrorDto

Name Type
codeNullable string
messageNullable string

Ƭ ProblemDetails

Name Type
typeNullable string
titleNullable string
statusNullable int32
detailNullable string
instanceNullable string

Ƭ GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageRecordDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageRecordsMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Name Type
dataNullable Array<TokenUsageRecordDto>
meta TokenUsageRecordsMetaDto

Ƭ TokenUsageRecordDto

Name Type
conversationIdNullable string
turnIdNullable string
timestamp ISO DateTime Sting
userIdNullable string
inputTokenCount int64
outputTokenCount int64

Ƭ TokenUsageRecordsMetaDto

Name Type
startTime ISO DateTime Sting
endTime ISO DateTime Sting
page int32
pageSize int32
totalCount int32
totalPages int32

Ƭ GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageTimeAggregationDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageTimeAggregationMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Name Type
dataNullable Array<TokenUsageTimeAggregationDto>
meta TokenUsageTimeAggregationMetaDto

Ƭ TokenUsageTimeAggregationDto

Name Type
time ISO DateTime Sting
questionCount int32
inputTokenCount int64
outputTokenCount int64

Ƭ TokenUsageTimeAggregationMetaDto

Name Type
startTime ISO DateTime Sting
endTime ISO DateTime Sting
granularityNullable string
timezoneOffsetMinutes int32

Ƭ GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.ApiResponse`2[[System.Collections.Generic.IReadOnlyList`1[[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageUserAggregationDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]], System.Private.CoreLib, Version=8.0.0.0, Culture=neutral, PublicKeyToken=7cec85d7bea7798e],[GrapeCity.Enterprise.Dashboards.Plugin.AI.DTOs.TokenUsageUserAggregationMetaDto, Gces.Dashboards.Plugin, Version=9.0.42512.0, Culture=neutral, PublicKeyToken=null]]

Name Type
dataNullable Array<TokenUsageUserAggregationDto>
meta TokenUsageUserAggregationMetaDto

Ƭ TokenUsageUserAggregationDto

Name Type
userIdNullable string
questionCount int32
inputTokenCount int64
outputTokenCount int64

Ƭ TokenUsageUserAggregationMetaDto

Name Type
startTime ISO DateTime Sting
endTime ISO DateTime Sting
page int32
pageSize int32
totalCount int32
totalPages int32