Retrieve developer data for users of Qoder CN via OpenAPI.
The new Qoder CN documentation site is now available. Content on this site may not reflect the latest product features and changes. Visit docs.qoder.cn for the latest product documentation.
|
Supported editions |
Enterprise Dedicated Edition |
Service endpoints
Get the service endpoint and replace {domain}
in the API request syntax with your
endpoint
.
Authorization information
|
Product |
Resource |
Required permission |
|
Qoder CN |
Developer usage statistics |
Read-only |
Request syntax
GET https://{domain}/oapi/v1/lingma/organizations/{organizationId}/developerUsage
Request description |
Query usage data for all users
Query usage data for a specific user
|
Request headers |
|
|
The access token. See Access token for details. Example: pt-0fh3****0fbG_35af****0484. |
|
Request parameters |
|
|
organizationId The organization ID. You can obtain the ID from the basic information page in the 4. Getting the Organization ID. |
|
|
startTime The start time. The format is YYYY-MM-DD. |
|
|
endTime The end time. The format is YYYY-MM-DD. |
|
|
userId The 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. |
|
|
departmentId The 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. |
|
|
page The current page number. |
|
|
perPage The number of data entries per page. |
Response parameters |
Response for all user usage data
Response for specific user usage data
|
|
breakdown The detailed data. |
|
|
date The date. |
|
|
statusActive Indicates whether the user is active.
|
|
|
statusActiveChat Indicates whether the user is active in chat.
|
|
|
statusActiveCompletion Indicates whether the user is active in code generation.
|
|
|
statusActiveLastedTime The last time the user was active. |
|
|
totalChatTurns The total number of chat turns for the user. |
|
|
totalLinesAcceptedChat The total number of lines of code that the user accepted from chats. |
|
|
totalLinesAccepted The total number of lines of code that the user accepted. This includes lines from Ask, Edit (formerly AI Programmer), Agent Q&A generation, and inline completions. |
|
|
totalLinesChanged The total number of lines of code that the user changed. This includes lines from Ask, Edit (formerly AI Programmer), Agent Q&A generation, and inline completions. |
|
|
totalLinesSuggestedCompletion The total number of lines of code suggested by inline completions for the user. |
|
|
totalLinesAcceptedCompletion The total number of lines of code from inline completions that the user accepted. |
|
|
totalCountSuggestedCompletion The total number of suggestions from inline completions for the user. |
|
|
totalCountAcceptedCompletion The total number of suggestions from inline completions that the user accepted. |
|
|
totalChatTurnsAccepted The total number of chat turns that the user accepted. |
|
|
userId The user ID. |
Response headers
|
Parameter |
Description |
Example value |
|
|
The next page |
2 |
|
|
The current page |
1 |
|
|
The number of entries per page |
100 |
|
|
The previous page |
0 |
|
|
The request ID |
37294673-00CA-5B8B-914F-A8B35511E90A |
|
|
The total number of entries |
10 |
|
|
The total number of pages |
1 |
Error codes
For more information, see Error code center.