cx_api/generated/
com.coralogixapis.notification_center.routing.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
// This file is @generated by prost-build.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoutingRule {
    /// Condition template that is rendered to true or false and used to determine if the rule should be applied
    #[prost(string, tag = "1")]
    pub condition: ::prost::alloc::string::String,
    /// List of targets to send the notification to
    #[prost(message, repeated, tag = "2")]
    pub targets: ::prost::alloc::vec::Vec<RoutingTarget>,
    #[prost(map = "string, string", tag = "3")]
    pub custom_details: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
    #[prost(string, optional, tag = "4")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RoutingTarget {
    /// Connector ID to send the notification to
    #[prost(string, tag = "1")]
    pub connector_id: ::prost::alloc::string::String,
    /// Preset to use for rendering notification content, default preset is used if not provided
    #[prost(string, optional, tag = "2")]
    pub preset_id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub config_overrides: ::core::option::Option<SourceOverrides>,
    #[prost(map = "string, string", tag = "4")]
    pub custom_details: ::std::collections::HashMap<
        ::prost::alloc::string::String,
        ::prost::alloc::string::String,
    >,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SourceOverrides {
    #[prost(string, tag = "1")]
    pub output_schema_id: ::prost::alloc::string::String,
    #[prost(message, repeated, tag = "3")]
    pub message_config_fields: ::prost::alloc::vec::Vec<super::MessageConfigField>,
    #[prost(message, repeated, tag = "4")]
    pub connector_config_fields: ::prost::alloc::vec::Vec<super::ConnectorConfigField>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GlobalRouterIdentifier {
    #[prost(oneof = "global_router_identifier::Value", tags = "1, 2")]
    pub value: ::core::option::Option<global_router_identifier::Value>,
}
/// Nested message and enum types in `GlobalRouterIdentifier`.
pub mod global_router_identifier {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        #[prost(string, tag = "1")]
        Id(::prost::alloc::string::String),
        #[prost(string, tag = "2")]
        UserFacingId(::prost::alloc::string::String),
    }
}