#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct InstanceInformation {
#[prost(string, tag="1")]
pub id: ::prost::alloc::string::String,
#[prost(string, repeated, tag="2")]
pub domains: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag="3")]
pub created_at: ::core::option::Option<::pbjson_types::Timestamp>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ResourceCount {
#[prost(string, tag="3")]
pub instance_id: ::prost::alloc::string::String,
#[prost(enumeration="CountParentType", tag="4")]
pub parent_type: i32,
#[prost(string, tag="5")]
pub parent_id: ::prost::alloc::string::String,
#[prost(string, tag="6")]
pub resource_name: ::prost::alloc::string::String,
#[prost(string, tag="7")]
pub table_name: ::prost::alloc::string::String,
#[prost(message, optional, tag="8")]
pub updated_at: ::core::option::Option<::pbjson_types::Timestamp>,
#[prost(uint32, tag="9")]
pub amount: u32,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum CountParentType {
Unspecified = 0,
Instance = 1,
Organization = 2,
}
impl CountParentType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "COUNT_PARENT_TYPE_UNSPECIFIED",
Self::Instance => "COUNT_PARENT_TYPE_INSTANCE",
Self::Organization => "COUNT_PARENT_TYPE_ORGANIZATION",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"COUNT_PARENT_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"COUNT_PARENT_TYPE_INSTANCE" => Some(Self::Instance),
"COUNT_PARENT_TYPE_ORGANIZATION" => Some(Self::Organization),
_ => None,
}
}
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportBaseInformationRequest {
#[prost(string, tag="1")]
pub system_id: ::prost::alloc::string::String,
#[prost(string, tag="2")]
pub version: ::prost::alloc::string::String,
#[prost(message, repeated, tag="3")]
pub instances: ::prost::alloc::vec::Vec<InstanceInformation>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportBaseInformationResponse {
#[prost(string, tag="1")]
pub report_id: ::prost::alloc::string::String,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportResourceCountsRequest {
#[prost(string, tag="1")]
pub system_id: ::prost::alloc::string::String,
#[prost(string, optional, tag="2")]
pub report_id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag="3")]
pub resource_counts: ::prost::alloc::vec::Vec<ResourceCount>,
}
#[derive(::serde::Serialize, ::serde::Deserialize)]
#[serde(crate = "serde", rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportResourceCountsResponse {
#[prost(string, tag="1")]
pub report_id: ::prost::alloc::string::String,
}
include!("zitadel.analytics.v2beta.tonic.rs");