Configuration Manual for the "Huawei Cloud - Cloud Billing (Instance Level)" Collector
Before reading this, please first read:
Before using this collector, you must install the 'Integration Core Package' and its associated third-party dependency packages
To ensure data integrity, the billing date collected is the day before the current date. For example: 2022-07-03 00:00:00 ~ 23:59:59 collects data from 2022-07-02.
The current billing data collection only tallies some products. The product abbreviation list includes: dcs, dds, ecs, elb, obs, rds, vpc
1. Configuration Structure
This collector does not require configuration.
2. Data Reporting Format
After data synchronizes successfully, it can be viewed in the "Cloud Billing Explorer" of TrueWatch.
An example of reported data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 |
|
Fields in tags and fields may change with subsequent updates.
3. Field Description
Reported Field | API Return Field | API Field Meaning | Notes | |
---|---|---|---|---|
Billing ID | billing_id |
Unique billing ID | ||
Product Code | product_code |
cloud_service_type |
Cloud service type code | Extracted from cloud_service_type For example: "hws.service.type.vpc" -> "vpc" |
Product Name | product_name |
cloud_service_type_name |
Cloud service type name | |
Original Price | official_amount |
official_amount |
Official price, Huawei Cloud's sales price without stacking business discounts or promotional discounts. | Cumulative sum of official_amount |
Paid Amount | amount |
amount |
The fee amount users pay after enjoying discounts on cloud services, including cash coupons, stored value cards, and credit vouchers, accurate to two decimal places. | Cumulative sum of amount |
Cash Payment | cash_amount |
cash_amount |
Cash payment amount | |
Credit Payment | credit_amount |
credit_amount |
Credit payment amount | |
Voucher Payment | coupon_amount |
coupon_amount |
Voucher payment amount | |
Flexible Purchase Voucher Payment | flexipurchase_coupon_amount |
flexipurchase_coupon_amount |
Flexible purchase voucher payment amount | |
Bonus Payment | bonus_amount |
bonus_amount |
Bonus payment amount (for unused bonuses by existing network customers) | |
Stored Card Payment | stored_card_amount |
stored_card_amount |
Stored card payment amount | |
Unpaid Amount | debt_amount |
debt_amount |
Unpaid amount | |
Unpaid Write-off | adjustment_amount |
adjustment_amount |
Unpaid write-off amount | |
Billing Period | billing_date |
bill_date |
Resource consumption record date. Format: YYYY-MM-DD | |
Region | region_id |
region |
Region ID | |
Instance ID | instance_id |
resource_id |
Instance ID | |
Consumer ID | account_id |
customer_id |
Consumer ID of resource consumption | |
Consumer Name | account_name |
customer_id |
Consumer ID of resource consumption |
Each time the script runs, the data statistics granularity is Resource (Instance) ID: resource_id; the billing consumption amounts for the same instance are merged. Refer to the comparison below between the Huawei Cloud API raw data and the script aggregated data.
Huawei Cloud API Raw Data
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 |
|
Script Aggregated Data
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 |
|
4. Linkage with Custom Object Collectors
When other custom object collectors (such as EC2, RDS) are running in the same DataFlux Func, this collector will automatically attempt to match the resource_id
field returned by the bill with the tags.name
field in custom objects.
Assume that the raw data collected by the billing data collector is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 |
|
At the same time, the custom object data collected by the Huawei Cloud EC2 collector is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 12 |
|
After a successful match, all fields in the custom object tags
except name
will be added to the tags
of the billing data.
Thus, the final reported billing data is as follows:
JSON | |
---|---|
1 2 3 4 5 6 7 8 9 10 11 |
|
X. Appendix
Huawei Cloud - Billing Management « Query Resource Consumption Records »
Refer to the official Huawei Cloud documentation: