Merged
Conversation
There was a problem hiding this comment.
Pull Request Overview
This PR adds support for the kintone REST API's "Get Apps Statistics" endpoint (GET /k/v1/apps/statistics.json) that was added on August 15, 2024. This API allows retrieval of app usage statistics including record counts, field counts, API call counts, and storage usage.
Key changes:
- Added new model classes for app statistics data structures
- Added request/response classes for the new API endpoint
- Extended
AppClientwith two new methods to retrieve app statistics - Added comprehensive unit tests for the new functionality
Reviewed Changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
AppClient.java |
Added getStatistics() methods with and without parameters to retrieve app usage statistics |
KintoneApi.java |
Added GET_APPS_STATISTICS enum constant for the new API endpoint |
GetAppsStatisticsRequest.java |
New request class with offset and limit parameters for pagination |
GetAppsStatisticsResponseBody.java |
New response class containing list of app statistics |
AppStatistics.java |
New model class representing detailed app usage statistics |
AppStatisticsStatus.java |
New enum defining app status values (CHANGED, NOT_ACTIVATED, ACTIVATED) |
AppSpace.java |
New model class for space information (ID and name) |
AppClientTest.java |
Added unit tests for the new statistics methods |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
src/main/java/com/kintone/client/model/app/AppStatisticsStatus.java
Outdated
Show resolved
Hide resolved
chihiro-adachi
approved these changes
Nov 13, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Why
kintone REST APIに2024年8月15日に追加された「アプリの使用状況を取得する」API (
GET /k/v1/apps/statistics.json) をJava Clientでサポートするため。ref: https://cybozu.dev/ja/kintone/docs/rest-api/apps/get-apps-statistics/
このAPIにより、アプリのレコード数、フィールド数、API呼び出し数、ストレージ使用量などの使用状況統計情報を取得できるようになります。
What
以下のクラスとメソッドを追加しました:
新規クラス:
GetAppsStatisticsRequest- リクエストパラメータ(offset、limit)GetAppsStatisticsResponseBody- レスポンスボディAppStatistics- アプリ使用状況統計情報のモデル作成日時、更新者/更新日時
AppStatisticsStatus- アプリステータスのenum(CHANGED、NOT_ACTIVATED、ACTIVATED)AppSpace- スペース情報のモデル(ID、名前)変更:
KintoneApi-GET_APPS_STATISTICSエンドポイントを追加AppClient- 以下の2つのメソッドを追加getStatistics(GetAppsStatisticsRequest request)- パラメータ付きでアプリ統計情報を取得getStatistics()- アプリの統計情報を取得(パラメータなし)How to test
Checklist