sentry_protos 0.16.2

Rust bindings for sentry-protos
Documentation
// This file is @generated by prost-build.
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct PageToken {
    #[prost(oneof = "page_token::Value", tags = "1")]
    pub value: ::core::option::Option<page_token::Value>,
}
/// Nested message and enum types in `PageToken`.
pub mod page_token {
    #[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Oneof)]
    pub enum Value {
        #[prost(uint64, tag = "1")]
        Offset(u64),
    }
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetOrgsWithUsageRequest {
    #[prost(message, optional, tag = "1")]
    pub start: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "2")]
    pub end: ::core::option::Option<::prost_types::Timestamp>,
    /// Optional filter for specific data categories.
    /// When empty, usage for all categories is queried.
    #[prost(enumeration = "super::super::super::DataCategory", repeated, tag = "3")]
    pub categories: ::prost::alloc::vec::Vec<i32>,
    /// Optional max number of items to return.
    #[prost(uint32, tag = "4")]
    pub limit: u32,
    /// Optional page token for pagination. If provided, returns the next page of results.
    #[prost(message, optional, tag = "5")]
    pub page_token: ::core::option::Option<PageToken>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetOrgsWithUsageResponse {
    #[prost(uint64, repeated, tag = "1")]
    pub organization_ids: ::prost::alloc::vec::Vec<u64>,
    /// Page token for the next page of results
    #[prost(message, optional, tag = "2")]
    pub page_token: ::core::option::Option<PageToken>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CategoryUsage {
    #[prost(enumeration = "super::super::super::DataCategory", tag = "1")]
    pub category: i32,
    #[prost(message, optional, tag = "2")]
    pub data: ::core::option::Option<super::super::super::UsageData>,
}
/// Usage data for a single day.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailyUsage {
    #[prost(message, optional, tag = "1")]
    pub date: ::core::option::Option<super::super::super::Date>,
    #[prost(message, repeated, tag = "2")]
    pub usage: ::prost::alloc::vec::Vec<CategoryUsage>,
}
#[derive(Clone, Copy, PartialEq, Eq, Hash, ::prost::Message)]
pub struct CategorySeatUsage {
    #[prost(enumeration = "super::super::super::SeatCategory", tag = "1")]
    pub category: i32,
    #[prost(uint64, tag = "2")]
    pub count: u64,
}
/// Seat usage data for a single day.
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DailySeatUsage {
    #[prost(message, optional, tag = "1")]
    pub date: ::core::option::Option<super::super::super::Date>,
    #[prost(message, repeated, tag = "2")]
    pub seats: ::prost::alloc::vec::Vec<CategorySeatUsage>,
}
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetUsageResponse {
    /// Usage broken down by day, each containing per-category usage.
    #[prost(message, repeated, tag = "1")]
    pub days: ::prost::alloc::vec::Vec<DailyUsage>,
    #[prost(message, repeated, tag = "3")]
    pub seat_days: ::prost::alloc::vec::Vec<DailySeatUsage>,
    /// DEPRECATED: use seat_days
    #[deprecated]
    #[prost(message, repeated, tag = "2")]
    pub seats: ::prost::alloc::vec::Vec<CategorySeatUsage>,
    /// The latest timestamp of usage data included in this response (inclusive
    /// — there is at least one row at exactly this timestamp). Callers persist
    /// this as the contract's watermark; subsequent queries should resume
    /// strictly after this timestamp to avoid double-counting the boundary.
    #[prost(message, optional, tag = "4")]
    pub last_usage_ts: ::core::option::Option<::prost_types::Timestamp>,
}
#[derive(Clone, PartialEq, Eq, Hash, ::prost::Message)]
pub struct GetUsageRequest {
    #[prost(uint64, tag = "1")]
    pub organization_id: u64,
    #[prost(message, optional, tag = "2")]
    pub start: ::core::option::Option<::prost_types::Timestamp>,
    #[prost(message, optional, tag = "3")]
    pub end: ::core::option::Option<::prost_types::Timestamp>,
    /// Optional filter for specific data categories.
    /// When empty, usage for all categories is returned.
    #[prost(enumeration = "super::super::super::DataCategory", repeated, tag = "4")]
    pub categories: ::prost::alloc::vec::Vec<i32>,
}