github.com/cloudwan/edgelq-sdk@v1.15.4/alerting/proto/v1/notification_msg.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.alerting.v1;
     4  
     5  import "edgelq-sdk/alerting/proto/v1/alert.proto";
     6  import "edgelq-sdk/alerting/proto/v1/specs.proto";
     7  import "edgelq-sdk/monitoring/proto/v4/common.proto";
     8  import "google/api/resource.proto";
     9  import "google/protobuf/duration.proto";
    10  import "google/protobuf/timestamp.proto";
    11  import "goten-sdk/types/meta.proto";
    12  
    13  option go_package = "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notifications;notification_msg";
    14  
    15  // NotificationMsg is a notification message sent to channels,
    16  // according to NotificationChannel resource.
    17  message NotificationMsg {
    18    string project_fqn = 1;
    19  
    20    string project_display_name = 2;
    21  
    22    string organization_fqn = 3;
    23  
    24    string organization_display_name = 4;
    25  
    26    string policy_fqn = 5;
    27  
    28    string policy_display_name = 6;
    29  
    30    AlertsGroup new_firing_alerts = 7;
    31  
    32    AlertsGroup alerts_escalated_by_ai_to_operator = 8;
    33  
    34    AlertsGroup alerts_awaiting_for_approval_with_ai_remediation = 9;
    35  
    36    AlertsGroup alerts_flagged_to_ignore_by_ai = 10;
    37  
    38    AlertsGroup alerts_with_condition_marked_for_adjusting_by_ai = 11;
    39  
    40    AlertsGroup alerts_with_ai_remediation_applied = 12;
    41  
    42    AlertsGroup alerts_with_operator_remediation_applied = 13;
    43  
    44    AlertsGroup stopped_alerts = 14;
    45  
    46    message AlertsGroup {
    47      repeated ConditionAlerts by_condition = 1;
    48  
    49      message ConditionAlerts {
    50        oneof type {
    51          TsCndType time_series_condition = 1;
    52  
    53          LogCndType log_condition = 2;
    54        }
    55  
    56        repeated Alert alerts = 3;
    57  
    58        int32 more_alerts_count = 4;
    59  
    60        message TsCndType {
    61          string fqn = 1;
    62  
    63          string display_name = 2;
    64  
    65          repeated Query queries = 3;
    66  
    67          message Query {
    68            string description = 1;
    69  
    70            string filter = 2;
    71  
    72            ntt.monitoring.v4.Aggregation aggregation = 3;
    73          }
    74        }
    75  
    76        message LogCndType {
    77          string fqn = 1;
    78  
    79          string display_name = 2;
    80  
    81          repeated Query queries = 3;
    82  
    83          message Query {
    84            string description = 1;
    85  
    86            string filter = 2;
    87          }
    88        }
    89  
    90        message Alert {
    91          Type type = 1;
    92  
    93          string fqn = 2;
    94  
    95          string display_name = 3;
    96  
    97          bool is_firing = 4;
    98  
    99          google.protobuf.Timestamp start_time = 5;
   100  
   101          google.protobuf.Timestamp stop_time = 6;
   102  
   103          Identification identification = 7;
   104  
   105          ViolationInfo violation_info = 8;
   106  
   107          Alert.State.EscalationLevel escalation_level = 9;
   108  
   109          AiHandling ai_handling = 10;
   110  
   111          OperatorHandling operator_handling = 11;
   112  
   113          message Identification {
   114            map<string, string> log_labels = 1;
   115  
   116            map<string, string> metric_labels = 2;
   117  
   118            map<string, string> resource_labels = 3;
   119          }
   120  
   121          message ViolationInfo {
   122            string log_value = 1;
   123  
   124            repeated TimeSeries time_series = 2;
   125  
   126            message TimeSeries {
   127              string query = 1;
   128  
   129              repeated double values = 2;
   130  
   131              AlertingThreshold upper_threshold = 3;
   132  
   133              AlertingThreshold lower_threshold = 4;
   134  
   135              google.protobuf.Duration raised_after = 5;
   136            }
   137          }
   138  
   139          message AiHandling {
   140            Alert.State.AiHandlingState current_state = 1;
   141  
   142            string troubleshooting_notes = 2;
   143  
   144            PolicySpec.AIAgentHandling.Remediation ai_remediation = 3;
   145  
   146            string remediation_arg = 4;
   147          }
   148  
   149          message OperatorHandling {
   150            Alert.State.OperatorHandlingState current_state = 1;
   151  
   152            string notes = 2;
   153          }
   154  
   155          enum Type {
   156            UNDEFINED = 0;
   157  
   158            TS_BASED_ANOMALY = 1;
   159  
   160            TS_BASED_THRESHOLD = 2;
   161  
   162            LOG_BASED = 3;
   163          }
   164        }
   165      }
   166    }
   167  }