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
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
@@ -0,0 +1,17 @@
syntax = "proto3";

package sentry_protos.billing.v1.services.contract_usage_snapshot.v1;

// Filters contracts down to those that have a usage snapshot. It reads no
// snapshot, so a caller can check many contracts in one call. The caller is
// responsible for passing only ids it has the right to see; this endpoint does
// not filter by organization.
message GetContractIdsWithUsageSnapshotRequest {
repeated uint64 contract_ids = 1;
}

message GetContractIdsWithUsageSnapshotResponse {
// The subset of the requested contract_ids that have a usage snapshot, in no
// particular order. Empty when the request has no ids or none has a snapshot.
repeated uint64 contract_ids = 1;
}
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,22 @@ pub struct CreateUsageSnapshotResponse {
#[prost(message, optional, tag = "1")]
pub snapshot: ::core::option::Option<UsageSnapshot>,
}
/// Filters contracts down to those that have a usage snapshot. It reads no
/// snapshot, so a caller can check many contracts in one call. The caller is
/// responsible for passing only ids it has the right to see; this endpoint does
/// not filter by organization.
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetContractIdsWithUsageSnapshotRequest {
#[prost(uint64, repeated, tag = "1")]
pub contract_ids: ::prost::alloc::vec::Vec<u64>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetContractIdsWithUsageSnapshotResponse {
/// The subset of the requested contract_ids that have a usage snapshot, in no
/// particular order. Empty when the request has no ids or none has a snapshot.
#[prost(uint64, repeated, tag = "1")]
pub contract_ids: ::prost::alloc::vec::Vec<u64>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetUsageSnapshotRequest {
#[prost(oneof = "get_usage_snapshot_request::Query", tags = "1, 2")]
Expand Down
Loading