Skip to content

Commit e11abef

Browse files
committed
update rate
1 parent 0a023ee commit e11abef

4 files changed

Lines changed: 8 additions & 7 deletions

File tree

src/common/cloud_control/proto/billing.proto

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,12 +38,13 @@ message BillingUsageDailyRow {
3838
// Examples: second, byte, request.
3939
string usage_unit = 6;
4040

41-
// Unit price encoded as a decimal string. Empty string means absent.
41+
// Reserved billing unit price field.
42+
// Empty string means the rate is intentionally undisclosed.
4243
string rate = 7;
4344

44-
// Unit for rate.
45+
// Billing dimension unit for the reserved rate field.
4546
// Examples: second, tb_day, k_request.
46-
// Empty string means absent.
47+
// Returned when the billing dimension is known.
4748
string rate_unit = 8;
4849

4950
// Final billed amount encoded as a decimal string.

src/common/cloud_control/tests/it/billing_client.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl BillingService for MockBillingService {
4848
resource_name: "default".to_string(),
4949
usage: "2653".to_string(),
5050
usage_unit: "second".to_string(),
51-
rate: "0.0002777777777778".to_string(),
51+
rate: "".to_string(),
5252
rate_unit: "second".to_string(),
5353
usage_in_currency: "0.737".to_string(),
5454
currency: "USD".to_string(),

src/query/service/tests/it/table_functions/billing_usage.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ impl BillingService for MockBillingServiceImpl {
7676
resource_name: "default".to_string(),
7777
usage: "2653".to_string(),
7878
usage_unit: "second".to_string(),
79-
rate: "0.0002777777777778".to_string(),
79+
rate: "".to_string(),
8080
rate_unit: "second".to_string(),
8181
usage_in_currency: "0.737".to_string(),
8282
currency: "¥".to_string(),

src/query/task_support/src/table_functions/billing_usage_daily.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,7 @@ mod tests {
394394
resource_name: "default".to_string(),
395395
usage: "2653".to_string(),
396396
usage_unit: "second".to_string(),
397-
rate: "0.0002777777777778".to_string(),
397+
rate: "".to_string(),
398398
rate_unit: "second".to_string(),
399399
usage_in_currency: "0.737".to_string(),
400400
currency: "¥".to_string(),
@@ -446,7 +446,7 @@ mod tests {
446446
resource_name: String::new(),
447447
usage: "1580580967006".to_string(),
448448
usage_unit: "byte".to_string(),
449-
rate: "0.7419354838709677".to_string(),
449+
rate: "".to_string(),
450450
rate_unit: "tb_day".to_string(),
451451
usage_in_currency: "1.067".to_string(),
452452
currency: "$".to_string(),

0 commit comments

Comments
 (0)