Skip to content

Commit

Permalink
changing names and deprecating fields
Browse files Browse the repository at this point in the history
  • Loading branch information
RoxyFarhad committed Oct 9, 2024
1 parent e1fb400 commit 5fb957d
Showing 1 changed file with 9 additions and 22 deletions.
31 changes: 9 additions & 22 deletions proto/viam/app/v1/billing.proto
Original file line number Diff line number Diff line change
Expand Up @@ -79,38 +79,25 @@ message UsageCost {
double cost = 2;
}

message GroupedCosts {
message ResourceUsageCosts {
repeated UsageCost usage_costs = 1;
double subtotal = 2;
double discount = 3;
double discount = 2;
double total_with_discount = 3;
double total_without_discount = 4;
}

message FragmentCosts {
message FragmentUsageCosts {
string fragment_id = 1;
GroupedCosts breakdown = 2;
ResourceUsageCosts resource_usage_costs = 2;
}

message GetCurrentMonthUsageResponse {

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "10" with name "total_usage_without_discount" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "11" with name "per_machine_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "12" with name "binary_data_cloud_storage_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "13" with name "other_cloud_storage_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "3" with name "cloud_storage_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "4" with name "data_upload_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "5" with name "data_egres_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "6" with name "remote_control_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "7" with name "standard_compute_usage_cost" on message "GetCurrentMonthUsageResponse" was deleted.

Check failure on line 94 in proto/viam/app/v1/billing.proto

View workflow job for this annotation

GitHub Actions / Test For Lint and Breaking Changes

Previously present field "8" with name "discount_amount" on message "GetCurrentMonthUsageResponse" was deleted.
google.protobuf.Timestamp start_date = 1;
google.protobuf.Timestamp end_date = 2;

// This will be deprecated soon as it no longer
// reflects fragment cost structure
double cloud_storage_usage_cost = 3;
double data_upload_usage_cost = 4;
double data_egres_usage_cost = 5;
double remote_control_usage_cost = 6;
double standard_compute_usage_cost = 7;
double discount_amount = 8;
double total_usage_with_discount = 9;
double total_usage_without_discount = 10;
double per_machine_usage_cost = 11;
double binary_data_cloud_storage_usage_cost = 12;
double other_cloud_storage_usage_cost = 13;

repeated GroupedCosts org_breakdown = 14;
repeated FragmentCosts fragment_breakdown = 15;
double subtotal = 16; // total for all org + fragment costs
ResourceUsageCosts org_usage = 14;
repeated FragmentUsageCosts fragment_usage_costs = 15;
double subtotal = 16;
}

message GetOrgBillingInformationRequest {
Expand Down

0 comments on commit 5fb957d

Please sign in to comment.