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

1// This file is @generated by prost-build.
2#[derive(serde::Serialize, serde::Deserialize)]
3#[serde(rename_all = "snake_case")]
4#[derive(Clone, PartialEq, ::prost::Message)]
5pub struct RoutingRule {
6    /// Condition template that is rendered to true or false and used to determine if the rule should be applied
7    #[prost(string, tag = "1")]
8    pub condition: ::prost::alloc::string::String,
9    /// List of targets to send the notification to
10    #[prost(message, repeated, tag = "2")]
11    pub targets: ::prost::alloc::vec::Vec<RoutingTarget>,
12    #[prost(map = "string, string", tag = "3")]
13    pub custom_details: ::std::collections::HashMap<
14        ::prost::alloc::string::String,
15        ::prost::alloc::string::String,
16    >,
17    #[prost(string, optional, tag = "4")]
18    pub name: ::core::option::Option<::prost::alloc::string::String>,
19    /// Entity type associated with the routing rule and its condition.
20    /// This field is marked as optional as a temporary solution to ensure backward compatibility.
21    /// If not provided, EntityType.Alerts will be assumed.
22    /// This field will be made mandatory after all clients have migrated.
23    #[prost(enumeration = "super::EntityType", optional, tag = "5")]
24    pub entity_type: ::core::option::Option<i32>,
25}
26#[derive(serde::Serialize, serde::Deserialize)]
27#[serde(rename_all = "snake_case")]
28#[derive(Clone, PartialEq, ::prost::Message)]
29pub struct RoutingTarget {
30    #[prost(map = "string, string", tag = "4")]
31    pub custom_details: ::std::collections::HashMap<
32        ::prost::alloc::string::String,
33        ::prost::alloc::string::String,
34    >,
35    #[prost(string, tag = "7")]
36    pub connector_id: ::prost::alloc::string::String,
37    #[prost(string, optional, tag = "8")]
38    pub preset_id: ::core::option::Option<::prost::alloc::string::String>,
39}
40/// The ConnectorSchemaService can be used to retrieve the connector config and message config schemas
41/// and the list of supported payload types for each connector.
42#[derive(serde::Serialize, serde::Deserialize)]
43#[serde(rename_all = "snake_case")]
44#[derive(Clone, PartialEq, ::prost::Message)]
45pub struct SourceOverrides {
46    /// Payload type for the notification.
47    #[prost(string, tag = "1")]
48    pub payload_type: ::prost::alloc::string::String,
49    /// Overrides for the message configuration that defines notification content.
50    #[prost(message, repeated, tag = "3")]
51    pub message_config_fields: ::prost::alloc::vec::Vec<super::MessageConfigField>,
52    /// Overrides for the connector configuration that identify where the notification should be sent and auth details.
53    /// Fields are customizable if they have requires_rendering = true in the connector configuration schema.
54    #[prost(message, repeated, tag = "5")]
55    pub connector_config_fields: ::prost::alloc::vec::Vec<
56        super::TemplatedConnectorConfigField,
57    >,
58}