googlecloudlogmulticloudapiaudit_impl

package
v0.58.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var ListLogEntriesTask = googlecloudcommon_contract.NewStructuredListLogEntriesTask(&multicloudAPIListLogEntriesTaskSetting{})
View Source
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(
	googlecloudlogmulticloudapiaudit_contract.LogGrouperTaskID,
	googlecloudlogmulticloudapiaudit_contract.ListLogEntriesTaskID.Ref(),
	func(ctx context.Context, l *log.Log) string {
		resourceFieldSet, err := googlecloudlogmulticloudapiaudit_contract.ExtractMulticloudAPIAuditResource(l.NodeReader)
		if err != nil {
			return ""
		}
		if resourceFieldSet.IsCluster() {
			return fmt.Sprintf("cluster/%s/%s", resourceFieldSet.ClusterType, resourceFieldSet.ClusterName)
		}
		return fmt.Sprintf("nodepool/%s/%s/%s", resourceFieldSet.ClusterType, resourceFieldSet.ClusterName, resourceFieldSet.NodepoolName)
	},
)

LogGrouperTask is a task that groups MulticloudAPI audit logs by resource identifier. This grouping allows for parallel processing of logs related to the same resource.

LogIngesterTask is a task that serializes MulticloudAPI audit logs for storage in the history builder.

View Source
var LogToTimelineMapperTask = inspectiontaskbase.NewLogToTimelineMapperTask[*googlecloudcommon_contract.GCPOperationTracker](
	googlecloudlogmulticloudapiaudit_contract.LogToTimelineMapperTaskID,
	&multicloudAuditLogLogToTimelineMapperSetting{},
	inspectioncore_contract.FeatureTaskLabel(`Multi-Cloud API Logs`,
		`Gather Anthos Multi-Cloud audit logs to visualize cluster lifecycle events (creation, deletion, and upgrades) on timelines.`,
		5000,
		true,
	),
)

LogToTimelineMapperTask is a task that adds revisions/events regarding logs.

Functions

func GenerateMultiCloudAPIQuery added in v0.58.2

func GenerateMultiCloudAPIQuery(clusterIdentity googlecloudk8scommon_contract.GoogleCloudClusterIdentity) string

GenerateMultiCloudAPIQuery generates a query for multicloud API logs.

func GenerateMultiCloudAPIStructuredQuery added in v0.58.2

func GenerateMultiCloudAPIStructuredQuery(clusterIdentity googlecloudk8scommon_contract.GoogleCloudClusterIdentity) *logestimator.StructuredLogQuery

GenerateMultiCloudAPIStructuredQuery generates a structured query for multicloud API logs.

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all googlecloudlogmulticloudapiaudit inspection tasks to the registry.

Types

This section is empty.

Jump to

Keyboard shortcuts

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