Retrieve Qoder CN department usage data via OpenAPI.
x-yunxiao-token
string
(Required)
Personal access token. See Personal access token for how to obtain it.
Example: pt-0fh30fbG_35af0484.
For related API error codes, see the API error codes reference.
For issues encountered when using the API, see FAQ.
Applies to: Enterprise Dedicated Edition, Enterprise Standard Edition
Service access point: Get the service access point and replace {domain} in the API request syntax.
Authorization
| Product | Resource | Required permission |
|---|---|---|
| Qoder CN | Department usage statistics | Read-only |
Request Syntax
Request description
- Enterprise Standard Edition
- Enterprise Dedicated Edition
- Query department usage data
Request Headers
x-yunxiao-token
string
(Required)
Personal access token. See Personal access token for how to obtain it.
Example: pt-0fh30fbG_35af0484.
Request Parameters
string
path
required
Organization ID. You can go to the Basic Information page in the Organization Admin Console to get the organizationId.
string
path
required
Department ID. See List organization departments to get the department ID.
string
path
required
The start time, in YYYY-MM-DD format.
string
path
required
The end time, in YYYY-MM-DD format.
integer
path
default:"1"
The current page number.
integer
path
default:"100"
The maximum number of entries per page. Valid range: [1, 100].
Response Fields
- Response example
integer
Number of active developers.
integer
Number of active developers in chat.
integer
Number of active developers in code generation.
Object
Detailed data.
array
Q&A interaction details.
integer
Number of active users.
integer
Number of chat turns.
integer
Number of accepted chat turns.
string
The type of chat:
- CODE_GENERATE_COMMENT: Code comments.
- GENERATE_TESTCASE: Unit tests.
- EXPLAIN_CODE: Code explanation.
- OPTIMIZE_CODE: Code optimization.
- FREE_INPUT: Free-form Q&A. This is a non-uppercase string for a custom instruction.
string
The IDE type, such as jetbrains or vscode.
array
Code change details, including summary of accepted code from inline completions and Q&A generations.
integer
Lines of code accepted by the department on that day, broken down by Q&A type and language.
integer
Number of active users.
string
Language.
integer
The number of accepted lines of code.
integer
The number of changed lines of code.
array
Inline completion generation and acceptance details.
integer
Number of active users.
integer
The number of acceptances.
integer
The number of suggestions.
string
The IDE type, such as jetbrains or vscode.
string
Language.
integer
The number of accepted lines of code.
integer
The number of suggested lines of code.
integer
The date.
string
The department ID.
integer
Total chat turns for the department on that day.
integer
Total number of accepted Q&A turns for the department on that day.
integer
Total number of accepted inline completions for the department on that day.
integer
Total number of suggested inline completions for the department on that day.
integer
Total lines of code accepted by the department on that day, including lines from ask, edit (formerly AI Programmer), agent Q&A generation, and inline completions.
integer
Total lines of code accepted by the department via Q&A on that day.
integer
Total lines of code accepted via inline completion by the department on that day.
integer
Total lines of code changed by the department on that day, including lines from ask, edit (formerly AI Programmer), agent Q&A generation, and inline completions.
integer
Total lines suggested via inline completion for the department on that day.
Response Headers
| Parameter | Description | Example value |
|---|---|---|
| x-next-page | The next page | 2 |
| x-page | The current page | 1 |
| x-per-page | The number of entries per page | 100 |
| x-prev-page | The previous page | 0 |
| x-request-id | The request ID | 37294673-00CA-5B8B-914F-A8B35511E90A |
| x-total | The total number of entries | 10 |
| x-total-pages | The total number of pages | 1 |