予算および使用量管理 API が一般提供開始
GitHub は、予算管理の自動化と使用状況の詳細な追跡を可能にする API を一般公開し、開発チームのコスト制御と可視化能力を大幅に強化しました。
キーポイント
API による完全な予算ライフサイクル管理
従来の UI 操作に加え、API を経由して予算の作成、更新、削除、金額調整、アラート通知設定が可能になりました(アカウントあたり最大 50 個まで)。
多様なフィルタリングによる使用状況追跡
新しい Usage summary API を利用し、組織、リポジトリ、コストセンター、製品、SKU 単位で年・月・日の粒度を指定して使用量を取得できます。
コストセンターとレポート API の改善
エンタープライズ向けコストセンター API にステータスフィルタが追加され、既存のレポート API は時間単位の粒度が日次合計に簡素化されました。
重要な引用
GitHub's expanded billing APIs to programmatically manage budgets, track usage, and access cost center data are now generally available.
You can now manage the full lifecycle of budgets via API. Previously, budgets could only be managed through the UI.
The new Usage summary API allows you to retrieve usage information for your entire account or filter by specific organizations, repositories, cost centers, products, or SKUs.
影響分析・編集コメントを表示
影響分析
この発表は、GitHub 利用における財務管理の自動化とガバナンスを劇的に向上させるものであり、大規模な開発組織や DevOps チームがクラウドコストをより厳密に制御することを可能にします。特に予算アラートのプログラムによる設定が可能になることで、予期せぬコスト超過を防ぐインフラストラクチャとしての役割が強化されます。
編集コメント
これは GitHub の機能拡張であり、直接的な AI 技術の進展ではありませんが、AI プロジェクトを含むあらゆるソフトウェア開発プロジェクトのコスト最適化(FinOps)に直結する重要なインフラ更新です。
GitHub の予算管理、使用状況の追跡、コストセンターデータへのアクセスをプログラム可能にする拡張された請求 API が、一般提供されました。
API を通じた予算管理
現在、API を介して予算のライフサイクル全体を管理できるようになりました。以前は UI からのみ予算を管理できましたが、現在はプログラムによって予算の作成、更新、削除、および予算金額やアラート通知の調整が可能になりました。現時点では、アカウントあたり最大 50 の予算までという一時的な制限があります。
詳細については、予算に関する REST API エンドポイントのドキュメントをご参照ください。
新しい使用状況サマリー API を活用した使用状況の追跡
新しい使用状況サマリー API (Usage summary API) を利用すると、アカウント全体の使用状況情報を取得したり、特定の組織、リポジトリ、コストセンター、製品、または SKU でフィルタリングして情報を取得したりできます。使用状況は年、月、日単位で照会可能です。
詳細については、使用状況サマリー REST API エンドポイントに関するドキュメントをご参照ください。
その他の改善点
コストセンター API の改善:エンタープライズ用の「すべてのコストセンターを取得する」API (Get all cost centers for an enterprise API) に、オプションのステータスパラメータが追加されました。これにより、エンドポイントを呼び出す際に ?state=active を付加することで、アクティブなコストセンターのみを取得できるようになりました。
使用状況レポート API の変更:既存の使用状況レポート API から時間 (hour) パラメータを削除し、日 (day) パラメータを使用した場合のレスポンスの粒度を下げました。これにより、時間ごとの内訳ではなく、1 日の合計値が提供されます。詳細については、エンタープライズ用の請求使用状況レポートを取得する REST API エンドポイントに関するドキュメントをご参照ください。
これらの機能を利用できる人
GitHub Enterprise プランのエンタープライズオーナーおよび請求管理マネージャー
GitHub Team プランの組織オーナー
個人プランのユーザー
GitHub コミュニティ内でディスカッションに参加してください。
「Budget and usage management APIs now generally available」という投稿は、最初に The GitHub Blog で公開されました。
原文を表示
GitHub’s expanded billing APIs to programmatically manage budgets, track usage, and access cost center data are now generally available.
Manage budgets via APIs
You can now manage the full lifecycle of budgets via API. Previously, budgets could only be managed through the UI. Now, you can programmatically create, update, and delete budgets, as well as adjust the budget amount and alert notifications. There is currently a temporary limit of 50 budgets per account.
For more details, refer to our documentation on REST API endpoints for budgets.
Track usage with the new usage summary API
The new Usage summary API allows you to retrieve usage information for your entire account or filter by specific organizations, repositories, cost centers, products, or SKUs. Usage can be queried by year, month, or day.
For more details, refer to our documentation on the Usage summary REST API endpoint.
Additional improvements
Cost center API improvement: The Get all cost centers for an enterprise API now includes an optional state parameter, which allows you to only get active cost centers by adding ?state=active when calling the endpoint.
Usage report API changes: We’ve removed the hour parameter from the existing Usage report API and reduced the granularity of the response when using the day parameter to provide daily totals instead of hourly breakdowns. For more details, refer to our documentation on the Get billing usage report for an enterprise REST API endpoint.
Who can use these features
Enterprise owners and billing managers on GitHub Enterprise plans
Organization owners on GitHub Team plans
Individuals on personal plans
Join the discussion within GitHub Community.
The post Budget and usage management APIs now generally available appeared first on The GitHub Blog.
関連記事
今日のまとめ
AI日報で今日の重要ニュースをまとめ読み