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

     1  syntax = "proto3";
     2  
     3  package ntt.alerting.v1;
     4  
     5  import "edgelq-sdk/alerting/proto/v1/specs.proto";
     6  import "google/api/resource.proto";
     7  import "google/protobuf/field_mask.proto";
     8  import "google/protobuf/timestamp.proto";
     9  import "goten-sdk/types/meta.proto";
    10  
    11  option go_package = "github.com/cloudwan/edgelq-sdk/alerting/resources/v1/notification_channel;notification_channel";
    12  option java_multiple_files = true;
    13  option java_outer_classname = "NotificationChannelProto";
    14  option java_package = "com.ntt.alerting.pb.v1";
    15  
    16  // NotificationChannel specifies channel where notifications about
    17  // alert updates can be sent.
    18  message NotificationChannel {
    19    option (google.api.resource) = {
    20      type : "alerting.edgelq.com/NotificationChannel"
    21      pattern : "projects/{project}/notificationChannels/{notification_channel}"
    22    };
    23  
    24    // Name of NotificationChannel
    25    // When creating a new instance, this field is optional and if not provided,
    26    // it will be generated automatically. Last ID segment must conform to the
    27    // following regex: [a-z][a-z0-9\\-]{0,28}[a-z0-9]
    28    string name = 1;
    29  
    30    // Metadata is an object with information like create, update and delete time
    31    // (for async deleted resources), has user labels/annotations, sharding
    32    // information, multi-region syncing information and may have non-schema
    33    // owners (useful for taking ownership of resources belonging to lower level
    34    // services by higher ones).
    35    goten.types.Meta metadata = 2;
    36  
    37    // Display Name
    38    string display_name = 3;
    39  
    40    // description
    41    string description = 6;
    42  
    43    // Specification
    44    NotificationChannelSpec spec = 4;
    45  
    46    // State
    47    State state = 5;
    48  
    49    // State of NotificationChannel
    50    message State {
    51      // Status
    52      Status status = 1;
    53  
    54      // Error
    55      Error error = 4;
    56  
    57      // Error of NotificationChannel
    58      message Error {
    59        google.protobuf.Timestamp time = 1;
    60  
    61        string message = 2;
    62      }
    63  
    64      // State of NotificationChannel
    65      enum Status {
    66        // State is unknown
    67        STATE_UNSPECIFIED = 0;
    68  
    69        // NotificationChannel is active
    70        ACTIVE = 1;
    71  
    72        // NotificationChannel is disabled
    73        DISABLED = 2;
    74  
    75        // Error of NotificationChannel
    76        ERROR = 3;
    77      }
    78    }
    79  }