You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+13-17
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
3
3
## Getting Started
4
4
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)
6
6
Authentication to OCI by User or instance principals.
7
7
8
8
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/
14
14
For application issues, please open ticket at [github issues](https://github.com/oracle-samples/usage-reports-to-adw/issues)
15
15
16
16
17
-
**Developed by Adi Zohar, 2020-2024**
17
+
**Developed by Adi Zohar, 2020-2025**
18
18
19
19
## Documentation
20
20
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.
25
25
- Rate Card for Used Product - Report the rate card from the cost files.
26
26
- ShowOCI Data (If Enabled) - Report ShowOCI data if ShowOCI enabled and data loaded to ADW.
27
27
@@ -36,7 +36,7 @@ For application issues, please open ticket at [github issues](https://github.com
36
36
37
37

38
38
39
-
## Usage Reports
39
+
## Cost Reports
40
40
41
41

42
42

@@ -46,13 +46,13 @@ For application issues, please open ticket at [github issues](https://github.com
46
46
47
47

48
48
49
-
## Usage Reports Overview
49
+
## Cost Reports Overview
50
50
51
51
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.
52
52
53
-
## How Usage Reports Work
53
+
## How Cost Reports Work
54
54
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.
56
56
57
57
More information can be found at [usagereportsoverview.htm](https://docs.cloud.oracle.com/en-us/iaas/Content/Billing/Concepts/usagereportsoverview.htm)
58
58
@@ -78,24 +78,20 @@ More information can be found at [usagereportsoverview.htm](https://docs.cloud.o
78
78
79
79
## Database Tables
80
80
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
84
81
- OCI_COST - Raw data of the cost reports
85
82
- OCI_COST_STATS - Summary Stats of the Cost Report for quick query if only filtered by tenant and date
86
83
- OCI_COST_TAG_KEYS - Tag keys of the cost reports
87
84
- OCI_COST_REFERENCE - Reference table of the cost filter keys - SERVICE, REGION, COMPARTMENT, PRODUCT, SUBSCRIPTION
88
85
- OCI_PRICE_LIST - Has the price list and the cost per product
89
86
- OCI_LOAD_STATUS - Has the load file statistics
90
87
- OCI_TENANT - Has the display name of the child tenants (Manual Update)
91
-
- OCI_INTERNAL_COST - Used for internal rate cards
92
88
93
89
## 3rd Party Dependencies including tested versions
94
90
95
91
- Python 3.9.19
96
-
- oracledb 2.4.0
92
+
- oracledb 3.0.0
97
93
- requests 2.32.1
98
-
- OCI Python SDK 2.134.0
94
+
- OCI Python SDK 2.144.1
99
95
100
96
## Contributing
101
97
@@ -125,7 +121,7 @@ Please consult the [security guide](./SECURITY.md) for our responsible security
125
121
126
122
## License
127
123
128
-
Copyright (c) 2024, Oracle and/or its affiliates.
124
+
Copyright (c) 2025, Oracle and/or its affiliates.
129
125
Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/
0 commit comments