package logs

import "google.golang.org/genproto/googleapis/cloud/saasaccelerator/management/logs/v1"

Index

Variables

var (
	NotificationStage_Stage_name = map[int32]string{
		0: "STAGE_UNSPECIFIED",
		1: "SENT",
		2: "SEND_FAILURE",
		3: "DROPPED",
	}
	NotificationStage_Stage_value = map[string]int32{
		"STAGE_UNSPECIFIED": 0,
		"SENT":              1,
		"SEND_FAILURE":      2,
		"DROPPED":           3,
	}
)

Enum value maps for NotificationStage_Stage.

var (
	NotificationStage_Event_name = map[int32]string{
		0: "EVENT_UNSPECIFIED",
		1: "HEALTH_STATUS_CHANGE",
	}
	NotificationStage_Event_value = map[string]int32{
		"EVENT_UNSPECIFIED":    0,
		"HEALTH_STATUS_CHANGE": 1,
	}
)

Enum value maps for NotificationStage_Event.

var File_google_cloud_saasaccelerator_management_logs_v1_notification_service_payload_proto protoreflect.FileDescriptor
var File_google_cloud_saasaccelerator_management_logs_v1_saas_instance_payload_proto protoreflect.FileDescriptor

Types

type InstanceEvent

type InstanceEvent struct {

	// The type of the event, e.g. Create, Update, etc.
	Verb string `protobuf:"bytes,1,opt,name=verb,proto3" json:"verb,omitempty"`
	// The state of the instance, e.g. "RETRYING_CREATE_INSTANCE".
	Stage string `protobuf:"bytes,2,opt,name=stage,proto3" json:"stage,omitempty"`
	// A human-readable log message, e.g. "error in stage: CREATING, err: location
	// not available".
	Msg string `protobuf:"bytes,3,opt,name=msg,proto3" json:"msg,omitempty"`
	// The ID to uniquely locate all logs associated with a given request.
	TraceId string `protobuf:"bytes,4,opt,name=trace_id,json=traceId,proto3" json:"trace_id,omitempty"`
	// The instance node which is the subject of the operation, if known.
	// Currently unused as tf actuation does not manage nodes.
	NodeId string `protobuf:"bytes,5,opt,name=node_id,json=nodeId,proto3" json:"node_id,omitempty"`
	// contains filtered or unexported fields
}

func (*InstanceEvent) Descriptor

func (*InstanceEvent) Descriptor() ([]byte, []int)

Deprecated: Use InstanceEvent.ProtoReflect.Descriptor instead.

func (*InstanceEvent) GetMsg

func (x *InstanceEvent) GetMsg() string

func (*InstanceEvent) GetNodeId

func (x *InstanceEvent) GetNodeId() string

func (*InstanceEvent) GetStage

func (x *InstanceEvent) GetStage() string

func (*InstanceEvent) GetTraceId

func (x *InstanceEvent) GetTraceId() string

func (*InstanceEvent) GetVerb

func (x *InstanceEvent) GetVerb() string

func (*InstanceEvent) ProtoMessage

func (*InstanceEvent) ProtoMessage()

func (*InstanceEvent) ProtoReflect

func (x *InstanceEvent) ProtoReflect() protoreflect.Message

func (*InstanceEvent) Reset

func (x *InstanceEvent) Reset()

func (*InstanceEvent) String

func (x *InstanceEvent) String() string

type NotificationStage

type NotificationStage struct {

	// The type of the Notification Service event.
	Stage NotificationStage_Stage `protobuf:"varint,1,opt,name=stage,proto3,enum=google.cloud.saasaccelerator.management.logs.v1.NotificationStage_Stage" json:"stage,omitempty"`
	// Time of the NotificationServiceEvent.
	EventTime *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=event_time,json=eventTime,proto3" json:"event_time,omitempty"`
	// The id of the notification.
	NotificationId string `protobuf:"bytes,3,opt,name=notification_id,json=notificationId,proto3" json:"notification_id,omitempty"`
	// The event that triggered the notification.
	Event NotificationStage_Event `protobuf:"varint,4,opt,name=event,proto3,enum=google.cloud.saasaccelerator.management.logs.v1.NotificationStage_Event" json:"event,omitempty"`
	// Message to denote the error related to the event if applicable.
	Message string `protobuf:"bytes,5,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

Payload proto for Notification logs.

func (*NotificationStage) Descriptor

func (*NotificationStage) Descriptor() ([]byte, []int)

Deprecated: Use NotificationStage.ProtoReflect.Descriptor instead.

func (*NotificationStage) GetEvent

func (*NotificationStage) GetEventTime

func (x *NotificationStage) GetEventTime() *timestamppb.Timestamp

func (*NotificationStage) GetMessage

func (x *NotificationStage) GetMessage() string

func (*NotificationStage) GetNotificationId

func (x *NotificationStage) GetNotificationId() string

func (*NotificationStage) GetStage

func (*NotificationStage) ProtoMessage

func (*NotificationStage) ProtoMessage()

func (*NotificationStage) ProtoReflect

func (x *NotificationStage) ProtoReflect() protoreflect.Message

func (*NotificationStage) Reset

func (x *NotificationStage) Reset()

func (*NotificationStage) String

func (x *NotificationStage) String() string

type NotificationStage_Event

type NotificationStage_Event int32

Event that triggered the notification.

const (
	// Default value.
	NotificationStage_EVENT_UNSPECIFIED NotificationStage_Event = 0
	// When a health status has been changed.
	NotificationStage_HEALTH_STATUS_CHANGE NotificationStage_Event = 1
)

func (NotificationStage_Event) Descriptor

func (NotificationStage_Event) Enum

func (NotificationStage_Event) EnumDescriptor

func (NotificationStage_Event) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotificationStage_Event.Descriptor instead.

func (NotificationStage_Event) Number

func (NotificationStage_Event) String

func (x NotificationStage_Event) String() string

func (NotificationStage_Event) Type

type NotificationStage_Stage

type NotificationStage_Stage int32

Types of Notification Status.

const (
	// Default.
	NotificationStage_STAGE_UNSPECIFIED NotificationStage_Stage = 0
	// Notification was sent.
	NotificationStage_SENT NotificationStage_Stage = 1
	// Notification failed to send.
	NotificationStage_SEND_FAILURE NotificationStage_Stage = 2
	// Notification was dropped.
	NotificationStage_DROPPED NotificationStage_Stage = 3
)

func (NotificationStage_Stage) Descriptor

func (NotificationStage_Stage) Enum

func (NotificationStage_Stage) EnumDescriptor

func (NotificationStage_Stage) EnumDescriptor() ([]byte, []int)

Deprecated: Use NotificationStage_Stage.Descriptor instead.

func (NotificationStage_Stage) Number

func (NotificationStage_Stage) String

func (x NotificationStage_Stage) String() string

func (NotificationStage_Stage) Type

Source Files

notification_service_payload.pb.go saas_instance_payload.pb.go

Version
v0.0.0-20250219182151-9fdb1cabc7b2 (latest)
Published
Feb 19, 2025
Platform
linux/amd64
Imports
5 packages
Last checked
1 hour ago

Tools for package owners.