Retrieve data about developers who have used Qoder CN 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.
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 | Developer usage statistics | Read-only |
Request Syntax
Request description
- Enterprise Standard Edition
- Enterprise Dedicated Edition
- Query usage data for all users
- Query usage data for a specific user
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.
string
path
required
The start time, in YYYY-MM-DD format.
string
path
required
The end time, in YYYY-MM-DD format.
string
path
User ID.You can specify either the user ID or the department ID. If you specify both parameters, the system uses the user ID for filtering. If you do not specify either parameter, the system queries data for all users in the organization.
string
path
Department ID.You can specify either the user ID or the department ID. If you specify both parameters, the system uses the user ID for filtering. If you do not specify either parameter, the system queries data for all users in the organization.
integer
path
default:"1"
The current page number.
integer
path
default:"100"
The number of data entries per page.
Response Fields
- Response for all user usage data
- Response for specific user usage data
Object
Detailed data.
array
Q&A interaction details.
integer
The number of chat turns.
integer
The number of accepted answers.
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 VS Code.
array
Code change details, including summary of accepted code from inline completions and Q&A generations.
string
Language.
integer
The number of accepted lines of code.
integer
The number of changed lines of code.
integer
Lines of code accepted by the user on that day, broken down by Q&A type and language.
array
Inline completion generation and acceptance details.
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 changed lines of code.
integer
The number of suggested lines of code.
integer
The date.
boolean
Indicates whether the user is active.
- true: The user is active.
- false: The user is inactive.
boolean
Indicates whether the user is active in chat.
- true: The user is active in chat.
- false: The user is inactive in chat.
boolean
Indicates whether the user is active in code generation.
- true: The user is active in code generation.
- false: The user is inactive in code generation.
string
The last time the user was active on that day.
integer
Total chat turns for the user on that day.
integer
Total lines of code accepted by the user via Q&A on that day.
integer
Total lines of code accepted by the user on that day, including lines from ask, edit (formerly AI Programmer), agent Q&A generation, and inline completions.
integer
Total lines of code changed by the user on that day, including lines from ask, edit (formerly AI Programmer), agent Q&A generation, and inline completions.
integer
Total lines of code suggested by inline completions on that day.
integer
Total lines from inline completions accepted by the user on that day.
integer
Total inline completion suggestions for the user on that day.
integer
Total inline completion suggestions accepted by the user on that day.
integer
Total chat turns accepted by the user on that day.
string
User ID.
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 |