1// Copyright 2021 Google LLC 2// 3// Licensed under the Apache License, Version 2.0 (the "License"); 4// you may not use this file except in compliance with the License. 5// You may obtain a copy of the License at 6// 7// http://www.apache.org/licenses/LICENSE-2.0 8// 9// Unless required by applicable law or agreed to in writing, software 10// distributed under the License is distributed on an "AS IS" BASIS, 11// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12// See the License for the specific language governing permissions and 13// limitations under the License. 14 15syntax = "proto3"; 16 17package google.cloud.saasaccelerator.management.logs.v1; 18 19import "google/protobuf/timestamp.proto"; 20 21option go_package = "cloud.google.com/go/saasaccelerator/management/logs/apiv1/logspb;logspb"; 22option java_multiple_files = true; 23option java_outer_classname = "NotificationServicePayloadProto"; 24option java_package = "com.google.cloud.saasaccelerator.management.logs.v1"; 25 26// Payload proto for Notification logs. 27message NotificationStage { 28 // Types of Notification Status. 29 enum Stage { 30 // Default. 31 STAGE_UNSPECIFIED = 0; 32 33 // Notification was sent. 34 SENT = 1; 35 36 // Notification failed to send. 37 SEND_FAILURE = 2; 38 39 // Notification was dropped. 40 DROPPED = 3; 41 } 42 43 // Event that triggered the notification. 44 enum Event { 45 // Default value. 46 EVENT_UNSPECIFIED = 0; 47 48 // When a health status has been changed. 49 HEALTH_STATUS_CHANGE = 1; 50 } 51 52 // The type of the Notification Service event. 53 Stage stage = 1; 54 55 // Time of the NotificationServiceEvent. 56 google.protobuf.Timestamp event_time = 2; 57 58 // The id of the notification. 59 string notification_id = 3; 60 61 // The event that triggered the notification. 62 Event event = 4; 63 64 // Message to denote the error related to the event if applicable. 65 string message = 5; 66} 67