Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -6,16 +6,13 @@
import "sentry_protos/billing/v1/seat_category.proto";

// Defines how usage data is transformed into a billable line item through arithmetic operations.
message BillableMetric {
// Unique identifier for the billable metric.
string id = 1;

// Name of the billable metric (e.g., "performance_units").
string name = 2;

// Expression defining how to calculate this metric from usage data.
Expression expression = 3;
}

Check failure on line 15 in proto/sentry_protos/billing/v1/common/v1/billable_metric.proto

View workflow job for this annotation

GitHub Actions / buf-checks

Previously present field "2" with name "name" on message "BillableMetric" was deleted.

// Represents an arithmetic expression that can reference usage data categories or constants.
message Expression {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,10 @@
repeated sentry_protos.billing.v1.common.v1.LineItemDetails line_items = 3;
}

message PackageConfig {
string uid = 1;
repeated LineItemConfig line_item_configs = 2;
repeated SharedLineItemPool shared_line_item_pools = 3;
// Base price for the package.
uint64 base_price_cents = 4;
// Billing interval for this package.
sentry_protos.billing.v1.common.v1.BillingInterval billing_interval = 5;
}

Check failure on line 40 in proto/sentry_protos/billing/v1/services/package/v1/package.proto

View workflow job for this annotation

GitHub Actions / buf-checks

Previously present field "4" with name "base_price_cents" on message "PackageConfig" was deleted.
3 changes: 0 additions & 3 deletions rust/src/sentry_protos.billing.v1.common.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ pub struct BillableMetric {
/// Unique identifier for the billable metric.
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
/// Name of the billable metric (e.g., "performance_units").
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
/// Expression defining how to calculate this metric from usage data.
#[prost(message, optional, tag = "3")]
pub expression: ::core::option::Option<Expression>,
Expand Down
3 changes: 0 additions & 3 deletions rust/src/sentry_protos.billing.v1.services.package.v1.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,6 @@ pub struct PackageConfig {
pub line_item_configs: ::prost::alloc::vec::Vec<LineItemConfig>,
#[prost(message, repeated, tag = "3")]
pub shared_line_item_pools: ::prost::alloc::vec::Vec<SharedLineItemPool>,
/// Base price for the package.
#[prost(uint64, tag = "4")]
pub base_price_cents: u64,
/// Billing interval for this package.
#[prost(enumeration = "super::super::super::common::v1::BillingInterval", tag = "5")]
pub billing_interval: i32,
Expand Down
Loading