googlecloudlogcomputeapiaudit_impl

package
v0.58.4 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Overview

Package googlecloudlogcomputeapiaudit_impl defines the implementation of the googlecloudlogcomputeapiaudit task.

Package googlecloudlogcomputeapiaudit_impl defines the implementation of the googlecloudlogcomputeapiaudit task.

Index

Constants

This section is empty.

Variables

View Source
var ListLogEntriesTask = googlecloudcommon_contract.NewStructuredListLogEntriesTask(&computeAPIListLogEntriesTaskSetting{})
View Source
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(googlecloudlogcomputeapiaudit_contract.LogGrouperTaskID, googlecloudlogcomputeapiaudit_contract.ListLogEntriesTaskID.Ref(),
	func(ctx context.Context, l *log.Log) string {
		audit, err := googlecloudcommon_contract.ExtractGCPAuditLog(l.NodeReader)
		if err != nil {
			return "unknown"
		}
		return getInstanceNameFromResourceName(audit.ResourceName)
	})

LogGrouperTask groups GCE API audit logs by node resource name for parallel mapper processing.

LogIngesterTask is a task that ingests log metadata (timestamp, severity, summary, log type) into KHI v6 format.

View Source
var LogToTimelineMapperTask = inspectiontaskbase.NewLogToTimelineMapperTask[*googlecloudcommon_contract.GCPOperationTracker](googlecloudlogcomputeapiaudit_contract.LogToTimelineMapperTaskID, &gcpComputeAuditLogLogToTimelineMapperSetting{},
	inspectioncore_contract.FeatureTaskLabel("Compute API Logs",
		"Gather Compute API audit logs to visualize the provisioning of infrastructure resources (e.g., GCE VM creation/deletion, Persistent Disk mounting) on associated timelines.",
		6000,
		true,
	),
)

LogToTimelineMapperTask maps GCE API audit logs to timeline events and revisions in parallel.

Functions

func GenerateComputeAPIQuery

func GenerateComputeAPIQuery(taskMode inspectioncore_contract.InspectionTaskModeType, nodeNames []string) []string

GenerateComputeAPIQuery generates a query for compute API logs.

func GenerateComputeAPIStructuredQuery added in v0.58.2

func GenerateComputeAPIStructuredQuery(taskMode inspectioncore_contract.InspectionTaskModeType, nodeNames []string) []*logestimator.StructuredLogQuery

GenerateComputeAPIStructuredQuery generates a structured query slice for compute API logs.

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all googlecloudlogcomputeapiaudit inspection tasks to the registry.

flowchart TD

ListLogEntriesTask

LogIngesterTask
LogGrouperTask
LogToTimelineMapperTask

ListLogEntriesTask --> LogGrouperTask
ListLogEntriesTask --> LogIngesterTask
LogGrouperTask --> LogToTimelineMapperTask
LogIngesterTask --> LogToTimelineMapperTask

Types

This section is empty.

Jump to

Keyboard shortcuts

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