diff --git a/proto/sentry_protos/snuba/v1/endpoint_subscription_details.proto b/proto/sentry_protos/snuba/v1/endpoint_subscription_details.proto new file mode 100644 index 0000000..b102e43 --- /dev/null +++ b/proto/sentry_protos/snuba/v1/endpoint_subscription_details.proto @@ -0,0 +1,21 @@ +syntax = "proto3"; + +package sentry_protos.snuba.v1; + +import "sentry_protos/snuba/v1/endpoint_time_series.proto"; + +message SubscriptionDetailsRequest { + // The subscription_id in format "partition/uuid" + string subscription_id = 1; + // The entity key (e.g., "events", "eap_items") + string entity_key = 2; +} + +message SubscriptionDetailsResponse { + string subscription_id = 1; + string entity_key = 2; + TimeSeriesRequest time_series_request = 3; + uint32 time_window_secs = 4; + uint32 resolution_secs = 5; + int64 project_id = 6; +} diff --git a/rust/src/sentry_protos.snuba.v1.rs b/rust/src/sentry_protos.snuba.v1.rs index 5905815..e501864 100644 --- a/rust/src/sentry_protos.snuba.v1.rs +++ b/rust/src/sentry_protos.snuba.v1.rs @@ -1405,6 +1405,30 @@ pub mod get_traces_response { pub attributes: ::prost::alloc::vec::Vec, } } +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SubscriptionDetailsRequest { + /// The subscription_id in format "partition/uuid" + #[prost(string, tag = "1")] + pub subscription_id: ::prost::alloc::string::String, + /// The entity key (e.g., "events", "eap_items") + #[prost(string, tag = "2")] + pub entity_key: ::prost::alloc::string::String, +} +#[derive(Clone, PartialEq, ::prost::Message)] +pub struct SubscriptionDetailsResponse { + #[prost(string, tag = "1")] + pub subscription_id: ::prost::alloc::string::String, + #[prost(string, tag = "2")] + pub entity_key: ::prost::alloc::string::String, + #[prost(message, optional, tag = "3")] + pub time_series_request: ::core::option::Option, + #[prost(uint32, tag = "4")] + pub time_window_secs: u32, + #[prost(uint32, tag = "5")] + pub resolution_secs: u32, + #[prost(int64, tag = "6")] + pub project_id: i64, +} /// TraceItemAttributeNamesRequest is a request to the TraceItemAttributeNames endpoint, /// it returns the names of all queryable "TraceItemAttributes" that exist in the given projects, /// date range, and other filters.