Skip to content
Open
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 @@ -3,10 +3,12 @@ syntax = "proto3";
package sentry_protos.billing.v1.services.contract_budget_enforcer.v1;

import "sentry_protos/billing/v1/quota_config.proto";
import "sentry_protos/billing/v1/services/usage_pricer/v1/endpoint_usage_pricer.proto";

message CalculateContractBudgetQuotasRequest {
uint64 contract_id = 1;
uint64 project_id = 2;
sentry_protos.billing.v1.services.usage_pricer.v1.UsagePricerResponse usage_pricer_response = 3;
}

message CalculateContractBudgetQuotasResponse {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,10 @@ syntax = "proto3";

package sentry_protos.billing.v1.services.events.v1;

import "sentry_protos/billing/v1/services/usage_pricer/v1/endpoint_usage_pricer.proto";

// Requests evaluation of billing alert configurations for an organization.
message BillingAlertEvaluationRequested {}
message BillingAlertEvaluationRequested {
uint64 contract_id = 1;
sentry_protos.billing.v1.services.usage_pricer.v1.UsagePricerResponse usage_pricer_response = 2;
}
Original file line number Diff line number Diff line change
@@ -1,10 +1,14 @@
// This file is @generated by prost-build.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalculateContractBudgetQuotasRequest {
#[prost(uint64, tag = "1")]
pub contract_id: u64,
#[prost(uint64, tag = "2")]
pub project_id: u64,
#[prost(message, optional, tag = "3")]
pub usage_pricer_response: ::core::option::Option<
super::super::usage_pricer::v1::UsagePricerResponse,
>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CalculateContractBudgetQuotasResponse {
Expand Down
17 changes: 12 additions & 5 deletions rust/src/sentry_protos.billing.v1.services.events.v1.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
// This file is @generated by prost-build.
/// Requests evaluation of billing alert configurations for an organization.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct BillingAlertEvaluationRequested {}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillingAlertEvaluationRequested {
#[prost(uint64, tag = "1")]
pub contract_id: u64,
#[prost(message, optional, tag = "2")]
pub usage_pricer_response: ::core::option::Option<
super::super::usage_pricer::v1::UsagePricerResponse,
>,
}
/// Future: uint64 old_contract_id = 1;
/// Future: uint64 new_contract_id = 2;
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
Expand Down Expand Up @@ -31,14 +38,14 @@ pub struct EventMeta {
#[prost(message, optional, tag = "2")]
pub timestamp: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventPayload {
#[prost(oneof = "event_payload::Payload", tags = "1, 2, 3, 4, 5, 6, 7")]
pub payload: ::core::option::Option<event_payload::Payload>,
}
/// Nested message and enum types in `EventPayload`.
pub mod event_payload {
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Oneof)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Payload {
#[prost(message, tag = "1")]
OrganizationOverUsage(super::OrganizationOverUsage),
Expand All @@ -56,7 +63,7 @@ pub mod event_payload {
BillingAlertEvaluationRequested(super::BillingAlertEvaluationRequested),
}
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BillingPlatformEvent {
#[prost(message, optional, tag = "1")]
pub meta: ::core::option::Option<EventMeta>,
Expand Down
Loading