Skip to content
Merged
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
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
Expand Up @@ -45,8 +45,11 @@ message LineItemUsageSummary {
// Net cents consumed by this line item in the billing period (after credits/trials applied).
uint64 payg_spend_cents = 2;

// How much of the line item was consumed (in the line item's units)
// How much of the line item was consumed by PAYG (in the line item's units)
uint64 quantity = 3;

// Whether the usage pricer had to cap the spend based on the budget set by the contract
bool payg_budget_exhausted = 4;
}
Comment thread
sentry[bot] marked this conversation as resolved.

message SharedLineItemUsageSummary {
Expand All @@ -55,6 +58,9 @@ message SharedLineItemUsageSummary {

// Line item breakdown within shared budget
repeated LineItemUsageSummary line_item_summaries = 2;

// Whether the usage pricer had to cap the spend based on the budget set by the contract
bool payg_budget_exhausted = 3;
}

message UsagePricerResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,12 @@ pub struct LineItemUsageSummary {
/// Net cents consumed by this line item in the billing period (after credits/trials applied).
#[prost(uint64, tag = "2")]
pub payg_spend_cents: u64,
/// How much of the line item was consumed (in the line item's units)
/// How much of the line item was consumed by PAYG (in the line item's units)
#[prost(uint64, tag = "3")]
pub quantity: u64,
/// Whether the usage pricer had to cap the spend based on the budget set by the contract
#[prost(bool, tag = "4")]
pub payg_budget_exhausted: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SharedLineItemUsageSummary {
Expand All @@ -57,6 +60,9 @@ pub struct SharedLineItemUsageSummary {
/// Line item breakdown within shared budget
#[prost(message, repeated, tag = "2")]
pub line_item_summaries: ::prost::alloc::vec::Vec<LineItemUsageSummary>,
/// Whether the usage pricer had to cap the spend based on the budget set by the contract
#[prost(bool, tag = "3")]
pub payg_budget_exhausted: bool,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UsagePricerResponse {
Expand Down
Loading