logging

package
v0.0.0-...-e6d459c Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	PatchJobCompletedLog_State_name = map[int32]string{
		0: "STATE_UNSPECIFIED",
		1: "STARTED",
		2: "INSTANCE_LOOKUP",
		3: "PATCHING",
		4: "SUCCEEDED",
		5: "COMPLETED_WITH_ERRORS",
		6: "CANCELED",
		7: "TIMED_OUT",
	}
	PatchJobCompletedLog_State_value = map[string]int32{
		"STATE_UNSPECIFIED":     0,
		"STARTED":               1,
		"INSTANCE_LOOKUP":       2,
		"PATCHING":              3,
		"SUCCEEDED":             4,
		"COMPLETED_WITH_ERRORS": 5,
		"CANCELED":              6,
		"TIMED_OUT":             7,
	}
)

Enum value maps for PatchJobCompletedLog_State.

View Source
var File_google_cloud_osconfig_logging_patch_job_log_proto protoreflect.FileDescriptor

Functions

This section is empty.

Types

type PatchJobCompletedLog

type PatchJobCompletedLog struct {

	// The patch job name. For example:
	// projects/PROJECT_ID/patchJobs/PATCH_JOB_ID
	PatchJob string `protobuf:"bytes,1,opt,name=patch_job,json=patchJob,proto3" json:"patch_job,omitempty"`
	// The current state of the PatchJob.
	State PatchJobCompletedLog_State `` /* 126-byte string literal not displayed */
	// Summary of instance details.
	InstanceDetailsSummary *PatchJobCompletedLog_InstanceDetailsSummary `` /* 129-byte string literal not displayed */
	// If this patch job is a dry run, the agent will report that it has
	// finished without running any updates on the VM.
	DryRun bool `protobuf:"varint,4,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"`
	// If this patch job failed, this message will provide information about the
	// failure.
	ErrorMessage string `protobuf:"bytes,5,opt,name=error_message,json=errorMessage,proto3" json:"error_message,omitempty"`
	// Time this PatchJob was created.
	CreateTime *timestamppb.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
	// Last time this PatchJob was updated.
	UpdateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"`
	// contains filtered or unexported fields
}

func (*PatchJobCompletedLog) Descriptor deprecated

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

Deprecated: Use PatchJobCompletedLog.ProtoReflect.Descriptor instead.

func (*PatchJobCompletedLog) GetCreateTime

func (x *PatchJobCompletedLog) GetCreateTime() *timestamppb.Timestamp

func (*PatchJobCompletedLog) GetDryRun

func (x *PatchJobCompletedLog) GetDryRun() bool

func (*PatchJobCompletedLog) GetErrorMessage

func (x *PatchJobCompletedLog) GetErrorMessage() string

func (*PatchJobCompletedLog) GetInstanceDetailsSummary

func (x *PatchJobCompletedLog) GetInstanceDetailsSummary() *PatchJobCompletedLog_InstanceDetailsSummary

func (*PatchJobCompletedLog) GetPatchJob

func (x *PatchJobCompletedLog) GetPatchJob() string

func (*PatchJobCompletedLog) GetState

func (*PatchJobCompletedLog) GetUpdateTime

func (x *PatchJobCompletedLog) GetUpdateTime() *timestamppb.Timestamp

func (*PatchJobCompletedLog) ProtoMessage

func (*PatchJobCompletedLog) ProtoMessage()

func (*PatchJobCompletedLog) ProtoReflect

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

func (*PatchJobCompletedLog) Reset

func (x *PatchJobCompletedLog) Reset()

func (*PatchJobCompletedLog) String

func (x *PatchJobCompletedLog) String() string

type PatchJobCompletedLog_InstanceDetailsSummary

type PatchJobCompletedLog_InstanceDetailsSummary struct {

	// Number of instances pending patch job.
	InstancesPending int64 `protobuf:"varint,1,opt,name=instances_pending,json=instancesPending,proto3" json:"instances_pending,omitempty"`
	// Number of instances that are inactive.
	InstancesInactive int64 `protobuf:"varint,2,opt,name=instances_inactive,json=instancesInactive,proto3" json:"instances_inactive,omitempty"`
	// Number of instances notified about patch job.
	InstancesNotified int64 `protobuf:"varint,3,opt,name=instances_notified,json=instancesNotified,proto3" json:"instances_notified,omitempty"`
	// Number of instances that have started.
	InstancesStarted int64 `protobuf:"varint,4,opt,name=instances_started,json=instancesStarted,proto3" json:"instances_started,omitempty"`
	// Number of instances that are downloading patches.
	InstancesDownloadingPatches int64 `` /* 145-byte string literal not displayed */
	// Number of instances that are applying patches.
	InstancesApplyingPatches int64 `` /* 136-byte string literal not displayed */
	// Number of instances rebooting.
	InstancesRebooting int64 `protobuf:"varint,7,opt,name=instances_rebooting,json=instancesRebooting,proto3" json:"instances_rebooting,omitempty"`
	// Number of instances that have completed successfully.
	InstancesSucceeded int64 `protobuf:"varint,8,opt,name=instances_succeeded,json=instancesSucceeded,proto3" json:"instances_succeeded,omitempty"`
	// Number of instances that require reboot.
	InstancesSucceededRebootRequired int64 `` /* 162-byte string literal not displayed */
	// Number of instances that failed.
	InstancesFailed int64 `protobuf:"varint,10,opt,name=instances_failed,json=instancesFailed,proto3" json:"instances_failed,omitempty"`
	// Number of instances that have acked and will start shortly.
	InstancesAcked int64 `protobuf:"varint,11,opt,name=instances_acked,json=instancesAcked,proto3" json:"instances_acked,omitempty"`
	// Number of instances that exceeded the time out while applying the patch.
	InstancesTimedOut int64 `protobuf:"varint,12,opt,name=instances_timed_out,json=instancesTimedOut,proto3" json:"instances_timed_out,omitempty"`
	// Number of instances that are running the pre-patch step.
	InstancesRunningPrePatchStep int64 `` /* 153-byte string literal not displayed */
	// Number of instances that are running the post-patch step.
	InstancesRunningPostPatchStep int64 `` /* 156-byte string literal not displayed */
	// contains filtered or unexported fields
}

A summary of the current patch state across all instances this patch job affects. Contains counts of instances in different states. These states map to InstancePatchState. List patch job instance details to see the specific states of each instance.

func (*PatchJobCompletedLog_InstanceDetailsSummary) Descriptor deprecated

Deprecated: Use PatchJobCompletedLog_InstanceDetailsSummary.ProtoReflect.Descriptor instead.

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesAcked

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesAcked() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesApplyingPatches

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesApplyingPatches() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesDownloadingPatches

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesDownloadingPatches() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesFailed

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesFailed() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesInactive

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesInactive() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesNotified

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesNotified() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesPending

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesPending() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRebooting

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRebooting() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRunningPostPatchStep

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRunningPostPatchStep() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRunningPrePatchStep

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesRunningPrePatchStep() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesStarted

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesStarted() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesSucceeded

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesSucceeded() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesSucceededRebootRequired

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesSucceededRebootRequired() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesTimedOut

func (x *PatchJobCompletedLog_InstanceDetailsSummary) GetInstancesTimedOut() int64

func (*PatchJobCompletedLog_InstanceDetailsSummary) ProtoMessage

func (*PatchJobCompletedLog_InstanceDetailsSummary) ProtoReflect

func (*PatchJobCompletedLog_InstanceDetailsSummary) Reset

func (*PatchJobCompletedLog_InstanceDetailsSummary) String

type PatchJobCompletedLog_State

type PatchJobCompletedLog_State int32

Enumeration of the various states a patch job passes through as it executes.

const (
	// State must be specified.
	PatchJobCompletedLog_STATE_UNSPECIFIED PatchJobCompletedLog_State = 0
	// The patch job was successfully initiated.
	PatchJobCompletedLog_STARTED PatchJobCompletedLog_State = 1
	// The patch job is looking up instances to run the patch on.
	PatchJobCompletedLog_INSTANCE_LOOKUP PatchJobCompletedLog_State = 2
	// Instances are being patched.
	PatchJobCompletedLog_PATCHING PatchJobCompletedLog_State = 3
	// Patch job completed successfully.
	PatchJobCompletedLog_SUCCEEDED PatchJobCompletedLog_State = 4
	// Patch job completed but there were errors.
	PatchJobCompletedLog_COMPLETED_WITH_ERRORS PatchJobCompletedLog_State = 5
	// The patch job was canceled.
	PatchJobCompletedLog_CANCELED PatchJobCompletedLog_State = 6
	// The patch job has timed out.
	PatchJobCompletedLog_TIMED_OUT PatchJobCompletedLog_State = 7
)

func (PatchJobCompletedLog_State) Descriptor

func (PatchJobCompletedLog_State) Enum

func (PatchJobCompletedLog_State) EnumDescriptor deprecated

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

Deprecated: Use PatchJobCompletedLog_State.Descriptor instead.

func (PatchJobCompletedLog_State) Number

func (PatchJobCompletedLog_State) String

func (PatchJobCompletedLog_State) Type

Jump to

Keyboard shortcuts

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