Skip to content

Commit 8e25ca7

Browse files
authored
usage2adw.2024.05.01a
1 parent 81a5d8f commit 8e25ca7

14 files changed

+195
-1103
lines changed

CHANGELOG.rst

+8
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,14 @@ All notable changes to this project will be documented in this file.
44

55
The format is based on `Keep a Changelog <http://keepachangelog.com/>`_.
66

7+
=====================
8+
25.05.01 - 2025.05.01
9+
=====================
10+
* Removed handling usage files which deprecated it includes all relevant tables OCI_USAGE,..
11+
* Removed OCI_INTERNAL_COST which based on OCI_USAGE
12+
* Redesigned the APEX app Usage area fetching data from OCI_COST
13+
* Added Tag Special Key 3 and Tag Special Key 4
14+
715
=====================
816
25.01.01 - 2025.01.01
917
=====================

LICENSE.txt

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
Usage Report to ADW 24.10.01.
1+
Usage Report to ADW 25.05.01.
22

3-
Copyright (c) 2024, Oracle and/or its affiliates.
3+
Copyright (c) 2025, Oracle and/or its affiliates.
44

55
The Universal Permissive License (UPL), Version 1.0
66

NOTICE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
This software is licensed under the Universal Permissive License (UPL) 1.0
22

33
The Universal Permissive License (UPL), Version 1.0
4-
Copyright (c) 2016, 2024, Oracle and/or its affiliates. All rights reserved.
4+
Copyright (c) 2016, 2025, Oracle and/or its affiliates. All rights reserved.

README.md

+13-17
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## Getting Started
44

5-
Usage2adw is a tool which uses the Python SDK to extract the usage and cost reports from your tenant and load it to Oracle Autonomous Database. (DbaaS can be used as well)
5+
Usage2adw is a tool which uses the Python SDK to extract the cost reports from your tenant and load it to Oracle Autonomous Database. (DbaaS can be used as well)
66
Authentication to OCI by User or instance principals.
77

88
It uses APEX for Visualization and generates Daily e-mail report.
@@ -14,14 +14,14 @@ and [usage reports](https://docs.oracle.com/en-us/iaas/Content/Billing/Concepts/
1414
For application issues, please open ticket at [github issues](https://github.com/oracle-samples/usage-reports-to-adw/issues)
1515

1616

17-
**Developed by Adi Zohar, 2020-2024**
17+
**Developed by Adi Zohar, 2020-2025**
1818

1919
## Documentation
2020

21-
- Usage Current State - Report the current state of a tenant using the usage files.
22-
- Usage Over Time - Report usage over time for OCPUs and Storage using the usage files.
23-
- Cost Analysis - Report Cost analysis for a chosen time period using the cost files.
24-
- Cost Over Time - Report Cost over time by house, day, week, month using the cost files.
21+
- Current State - Report the current state of a tenant.
22+
- CPU and Storage Over Time - Report usage over time for OCPUs and Storage.
23+
- Cost Analysis - Report Cost analysis for a chosen time period.
24+
- Cost Over Time - Report Cost over time by house, day, week, month.
2525
- Rate Card for Used Product - Report the rate card from the cost files.
2626
- ShowOCI Data (If Enabled) - Report ShowOCI data if ShowOCI enabled and data loaded to ADW.
2727

@@ -36,7 +36,7 @@ For application issues, please open ticket at [github issues](https://github.com
3636

3737
![](img/screen_8.png)
3838

39-
## Usage Reports
39+
## Cost Reports
4040

4141
![](img/screen_1.png)
4242
![](img/screen_2.png)
@@ -46,13 +46,13 @@ For application issues, please open ticket at [github issues](https://github.com
4646

4747
![](img/report_05.png)
4848

49-
## Usage Reports Overview
49+
## Cost Reports Overview
5050

5151
A usage report is a comma-separated value (CSV) file that can be used to get a detailed breakdown of resources in Oracle Cloud Infrastructure for audit or invoice reconciliation.
5252

53-
## How Usage Reports Work
53+
## How Cost Reports Work
5454

55-
The usage report is automatically generated daily, and is stored in an Oracle-owned Object Storage bucket. It contains one row per each Oracle Cloud Infrastructure resource (such as instance, Object Storage bucket, VNIC) per hour along with consumption information, metadata, and tags. Usage reports generally contain 24 hours of usage data, although occasionally a usage report may contain late-arriving data that is older than 24 hours.
55+
The cost report is automatically generated daily, and is stored in an Oracle-owned Object Storage bucket. It contains one row per each Oracle Cloud Infrastructure resource (such as instance, Object Storage bucket, VNIC) per hour along with consumption information, metadata, and tags. Cost reports generally contain 24 hours of usage and cost data, although occasionally a cost report may contain late-arriving data that is older than 24 hours.
5656

5757
More information can be found at [usagereportsoverview.htm](https://docs.cloud.oracle.com/en-us/iaas/Content/Billing/Concepts/usagereportsoverview.htm)
5858

@@ -78,24 +78,20 @@ More information can be found at [usagereportsoverview.htm](https://docs.cloud.o
7878

7979
## Database Tables
8080

81-
- OCI_USAGE - Raw data of the usage reports
82-
- OCI_USAGE_STATS - Summary Stats of the Usage Report for quick query if only filtered by tenant and date
83-
- OCI_USAGE_TAG_KEYS - Tag keys of the usage reports
8481
- OCI_COST - Raw data of the cost reports
8582
- OCI_COST_STATS - Summary Stats of the Cost Report for quick query if only filtered by tenant and date
8683
- OCI_COST_TAG_KEYS - Tag keys of the cost reports
8784
- OCI_COST_REFERENCE - Reference table of the cost filter keys - SERVICE, REGION, COMPARTMENT, PRODUCT, SUBSCRIPTION
8885
- OCI_PRICE_LIST - Has the price list and the cost per product
8986
- OCI_LOAD_STATUS - Has the load file statistics
9087
- OCI_TENANT - Has the display name of the child tenants (Manual Update)
91-
- OCI_INTERNAL_COST - Used for internal rate cards
9288

9389
## 3rd Party Dependencies including tested versions
9490

9591
- Python 3.9.19
96-
- oracledb 2.4.0
92+
- oracledb 3.0.0
9793
- requests 2.32.1
98-
- OCI Python SDK 2.134.0
94+
- OCI Python SDK 2.144.1
9995

10096
## Contributing
10197

@@ -125,7 +121,7 @@ Please consult the [security guide](./SECURITY.md) for our responsible security
125121

126122
## License
127123

128-
Copyright (c) 2024, Oracle and/or its affiliates.
124+
Copyright (c) 2025, Oracle and/or its affiliates.
129125
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
130126

131127
See [LICENSE](./LICENSE.txt) for details.

0 commit comments

Comments
 (0)