logging

package
v0.0.0-...-8af14fe Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 3, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	CompleteDeploymentEvent_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "SUCCEEDED",
		2: "FAILED",
	}
	CompleteDeploymentEvent_State_value = map[string]int32{
		"STATE_UNSPECIFIED": 0,
		"SUCCEEDED":         1,
		"FAILED":            2,
	}
)

Enum value maps for CompleteDeploymentEvent_State.

View Source
var File_google_cloud_cloudsetup_logging_v1_complete_deployment_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type CompleteDeploymentEvent

type CompleteDeploymentEvent struct {

	// Types that are assignable to Result:
	//	*CompleteDeploymentEvent_Value
	//	*CompleteDeploymentEvent_Error
	Result isCompleteDeploymentEvent_Result `protobuf_oneof:"result"`
	// The `state` of this deployment completion event.
	State CompleteDeploymentEvent_State `` /* 134-byte string literal not displayed */
	// Flag to indicate if deployment is preview only.
	PreviewOnly bool `protobuf:"varint,4,opt,name=preview_only,json=previewOnly,proto3" json:"preview_only,omitempty"`
	// contains filtered or unexported fields
}

JSON payload for the Cloud Logging event: `organizations/[organizationId]/logs/cloudsetup.googleapis.com%2Fcomplete_deployment`. This event gets emitted upon completion of a config deployment as part of the Cloud Setup Checklist.

The deployment can fail even if it returns a `config.googleapis.com/Deployment`. The state of that message will be `FAILED`. Hence, if there is a `value` present, the `state` can still be, `FAILED`. The message for the error or failure will be on the `error` or the `value` if the Operation results in an error or if the `state` of the Deployment is `FAILED`, respectively.

func (*CompleteDeploymentEvent) Descriptor deprecated

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

Deprecated: Use CompleteDeploymentEvent.ProtoReflect.Descriptor instead.

func (*CompleteDeploymentEvent) GetError

func (x *CompleteDeploymentEvent) GetError() *status.Status

func (*CompleteDeploymentEvent) GetPreviewOnly

func (x *CompleteDeploymentEvent) GetPreviewOnly() bool

func (*CompleteDeploymentEvent) GetResult

func (m *CompleteDeploymentEvent) GetResult() isCompleteDeploymentEvent_Result

func (*CompleteDeploymentEvent) GetState

func (*CompleteDeploymentEvent) GetValue

func (*CompleteDeploymentEvent) ProtoMessage

func (*CompleteDeploymentEvent) ProtoMessage()

func (*CompleteDeploymentEvent) ProtoReflect

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

func (*CompleteDeploymentEvent) Reset

func (x *CompleteDeploymentEvent) Reset()

func (*CompleteDeploymentEvent) String

func (x *CompleteDeploymentEvent) String() string

type CompleteDeploymentEvent_Error

type CompleteDeploymentEvent_Error struct {
	// Result of the Deployment if the `Operation` results in an error.
	Error *status.Status `protobuf:"bytes,2,opt,name=error,proto3,oneof"`
}

type CompleteDeploymentEvent_State

type CompleteDeploymentEvent_State int32

State of the completed deployment.

const (
	// The zero value. It is applied when `state` is unset. Do not use.
	CompleteDeploymentEvent_STATE_UNSPECIFIED CompleteDeploymentEvent_State = 0
	// Indicates that a Deployment value was present when the config deployment
	// finished and the State was anything other than FAILED.
	CompleteDeploymentEvent_SUCCEEDED CompleteDeploymentEvent_State = 1
	// Indicates that the Operation result was an error or the Deployment
	// `state` was FAILED.
	CompleteDeploymentEvent_FAILED CompleteDeploymentEvent_State = 2
)

func (CompleteDeploymentEvent_State) Descriptor

func (CompleteDeploymentEvent_State) Enum

func (CompleteDeploymentEvent_State) EnumDescriptor deprecated

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

Deprecated: Use CompleteDeploymentEvent_State.Descriptor instead.

func (CompleteDeploymentEvent_State) Number

func (CompleteDeploymentEvent_State) String

func (CompleteDeploymentEvent_State) Type

type CompleteDeploymentEvent_Value

type CompleteDeploymentEvent_Value struct {
	// Result of the Deployment recorded upon completion.
	Value *CompleteDeploymentResult `protobuf:"bytes,1,opt,name=value,proto3,oneof"`
}

type CompleteDeploymentResult

type CompleteDeploymentResult struct {

	// This is the Deployment that completed.
	// Format is projects/{project}/locations/{location}/deployments/{name}.
	Deployment string `protobuf:"bytes,1,opt,name=deployment,proto3" json:"deployment,omitempty"`
	// This is the Preview that completed.
	// Format is projects/{project}/locations/{location}/previews/{preview}
	Preview string `protobuf:"bytes,3,opt,name=preview,proto3" json:"preview,omitempty"`
	// The message that is returned when a deployment completes. This **can** be
	// an error message if the `Deployment` `state` is `FAILED`.
	Message string `protobuf:"bytes,2,opt,name=message,proto3" json:"message,omitempty"`
	// contains filtered or unexported fields
}

This message is used when the CompleteDeploymentEvent has a value.

func (*CompleteDeploymentResult) Descriptor deprecated

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

Deprecated: Use CompleteDeploymentResult.ProtoReflect.Descriptor instead.

func (*CompleteDeploymentResult) GetDeployment

func (x *CompleteDeploymentResult) GetDeployment() string

func (*CompleteDeploymentResult) GetMessage

func (x *CompleteDeploymentResult) GetMessage() string

func (*CompleteDeploymentResult) GetPreview

func (x *CompleteDeploymentResult) GetPreview() string

func (*CompleteDeploymentResult) ProtoMessage

func (*CompleteDeploymentResult) ProtoMessage()

func (*CompleteDeploymentResult) ProtoReflect

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

func (*CompleteDeploymentResult) Reset

func (x *CompleteDeploymentResult) Reset()

func (*CompleteDeploymentResult) String

func (x *CompleteDeploymentResult) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL