{"ref":"artifact:sap-samples-btp-ai-core-consumption-monitor","page":"/artifacts/sap-samples-btp-ai-core-consumption-monitor","json":"/artifacts/sap-samples-btp-ai-core-consumption-monitor.json","generated":"2026-11-15","drafted_with_ai":true,"entity":{"id":"sap-samples-btp-ai-core-consumption-monitor","name":"SAP-samples/btp-ai-core-consumption-monitor","artifact_type":"sample","ecosystem":"btp","use_as":"reference","domain":"operations-and-runtime","origin_ring":"sap-official","description":{"one_line":"A CAP and React dashboard that tracks [SAP AI Core](artifact:btp-ai-core) capacity unit consumption across SAP BTP subaccounts against a monthly spending limit.","short":"CAP and React dashboard for SAP AI Core capacity unit consumption","what_it_solves":"AI Core usage is billed in capacity units, and a FinOps team wants to see the spend before the monthly bill arrives rather than after. This application reads it from the SAP BTP Usage and Accounting Service APIs and shows a technical view of capacity units and tokens per model, a commercial view of billing cost, and an AI breakdown view of cost per token and capacity units by type. Subaccounts are entered by hand, or discovered from the account hierarchy when the optional [SAP Cloud Management Service](artifact:btp-cloud-management) integration is bound, each with its own monthly spending limit and alerts; a breach is notified by SMTP email, by an HTTP endpoint of your own or through [SAP Alert Notification service](artifact:btp-alert-notification). The daily check at 07:00 UTC runs by itself only once the [SAP Job Scheduling service](artifact:btp-job-scheduling) resource is uncommented in `mta.yaml`; without it the Run Check and Check All buttons pull fresh data on demand.","when_not_to_use":"Never as the figure a billing decision rests on: the repository states this is not a replacement for the official billing documents, that the information it provides is purely indicative, and that it recommends verifying against the official BTP Cockpit usage reports. It is published as a sample or reference implementation and says it is not intended for production use without review, testing and hardening."},"links":{"repo":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor"},"identity":{"license":"Apache-2.0"},"source_available":true,"demonstrates":["capability:consumption-monitoring"],"requires":[{"ref":"artifact:btp-hana-cloud","for":"the HDI container the consumption records and the monthly history are stored in","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| SAP HANA Cloud | hdi-shared | ✅ Yes |"}]},{"ref":"artifact:btp-authorization-and-trust-management","for":"the authentication the deployed application runs behind, and the two role collections it defines","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| XSUAA | application | ✅ Yes |"},{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Security – Roles & Authorization","checked":"2026-10-19","quote":"In production (`[production]` profile in `package.json`), XSUAA is enforced."}]},{"ref":"artifact:btp-usage-data-management","for":"the reporting APIs the capacity unit and billing figures are read from","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| UAS (Usage & Accounting) | reporting-ga-admin | ✅ Yes |"}]},{"ref":"artifact:btp-destination","for":"a bound service instance the deployment needs, on the lite plan","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| Destination Service | lite | ✅ Yes |"}]},{"ref":"artifact:btp-html5-application-repository","for":"where the React dashboard is hosted once the MTA is deployed","requirement":"required","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| HTML5 Application Repository | app-host | ✅ Yes |"}]},{"ref":"artifact:btp-job-scheduling","for":"the daily cron job that fetches the month's usage and sends the notifications without anyone pressing a button","requirement":"conditional","condition":"the scheduler resource is uncommented in mta.yaml; the requirements table marks the service Optional (Recommended) and the default deployment has no schedule","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| Job Scheduling Service | standard | ❌ Optional (Recommended) |"},{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Job Scheduling","checked":"2026-10-19","quote":"The application can use the **SAP BTP Job Scheduling Service** for automated daily monitoring checks. Without it, use the **\"Run Check\"** or **\"Check All\"** buttons in the UI to pull fresh data on demand."}]},{"ref":"artifact:btp-alert-notification","for":"the channel the threshold events are posted to, where the deployment uses it rather than SMTP or an HTTP endpoint","requirement":"conditional","condition":"notifications are routed through SAP Alert Notification service; the requirements table marks the service Optional","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| Alert Notification Service | standard | ❌ Optional |"}]},{"ref":"artifact:btp-cloud-management","for":"reading the global account, business unit, application and subaccount hierarchy the dashboard offers instead of manual entry","requirement":"conditional","condition":"subaccounts are discovered from the account hierarchy; the requirements table marks the service Optional and the application boots in manual mode without it","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Requirements","checked":"2026-10-19","quote":"| Cloud Management Service (CIS) | central-viewer | ❌ Optional |"},{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Fallback Behavior","checked":"2026-10-19","quote":"If the CMS service is not bound, the app boots normally and operates in manual mode. The Subaccount Discovery UI will show the **Add Manually** form instead of the hierarchy browser."}]}],"connects":[{"ref":"artifact:btp-usage-data-management","kind":"data","direction":"outbound","for":"fetches the capacity unit consumption and the billing cost per subaccount that every view is built from","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Description","checked":"2026-10-19","quote":"It fetches data from the SAP BTP Usage and Accounting Service (UAS) APIs and provides a **Technical View** (CU per model, tokens), a **Commercial View** (billing costs), and an **AI Breakdown View** (cost per token, CU by type) of AI Core usage"}]},{"ref":"artifact:btp-alert-notification","kind":"data","direction":"outbound","condition":"the SAP ANS notification channel is enabled; the application also notifies by SMTP email and by an HTTP endpoint","for":"posts the threshold event so that the service routes it to whatever action is subscribed","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, Notifications","checked":"2026-10-19","quote":"Structured events posted to the SAP Alert Notification Service."}]}],"type_properties":{"form":{"value":"reference-application","sources":[{"url":"https://github.com/SAP-samples/btp-ai-core-consumption-monitor","title":"SAP-samples/btp-ai-core-consumption-monitor — README, closing note","checked":"2026-10-19","quote":"This application is provided as a sample/reference implementation."}]}},"maintainers":["actor:sap-samples"],"provenance":{"discovered_via":[{"source":"source:curator"}],"first_seen":"2026-09-14"},"drafted_with_ai":true,"contributors":["actor:siddhartharouth-2"]},"effective_normative_relations":[],"readings":{"liveness":[{"label":"Maintenance","tier":"unknown","evidence":"no release data"},{"label":"Continuity","tier":"good","evidence":"3 contributors, org-owned"},{"label":"Repository","tier":"good","evidence":"pushed 2026-10, not archived"}],"compatibility":[{"label":"Declared for","tier":"unknown","evidence":"no BTP release lines in the atlas"},{"label":"Survived majors","tier":"unknown","evidence":"no BTP release lines in the atlas"},{"label":"Maintainer's CI","tier":"fair","evidence":"no CI configured"}],"practice":[{"label":"Tests","tier":"fair","evidence":"none found in the tree"},{"label":"Docs","tier":"good","evidence":"README 11 KB"},{"label":"Changelog","tier":"fair","evidence":"none in the repo"}],"reach":[{"value":null,"unit":"installs/week"},{"value":8,"unit":"watching"}]},"signals":{"crawled_at":"2026-11-14","npm":"not published under this name","stars":8,"forks":1,"open_issues":0,"archived":false,"pushed_at":"2026-10-28","license_spdx":"Apache-2.0","org_owned":true,"default_branch":"main","created_at":"2026-06-22T08:58:13Z","open_prs":0,"tree_truncated":false,"test_files":0,"workflows":0,"other_ci":false,"readme_bytes":11589,"docs_files":0,"changelog":false,"license_file":true,"dts_files":0,"first_commit":"2026-06-22","last_commit":"2026-10-06","commits":23,"contributors":3,"readme_path":"README.md","readme_sha":"42a8a4682631dfb38494d59b16458cd7febd7409","repo_read":"2026-11-14","language":"JavaScript"},"edges":{"maintainers":[{"ref":"actor:sap-samples","name":"SAP Samples","json":"/actors/sap-samples.json"}],"contributors":[{"ref":"actor:siddhartharouth-2","name":"Siddhartha Routh","json":"/actors/siddhartharouth-2.json"}],"explained_by":[],"alternative_to_this":[],"needed_by":[],"available_via":[],"parts":[],"add_ons":[],"answered_through_parts":[]}}