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 FieldSetReaderTask = inspectiontaskbase.NewFieldSetReadTask(googlecloudlogcomputeapiaudit_contract.FieldSetReaderTaskID, googlecloudlogcomputeapiaudit_contract.ListLogEntriesTaskID.Ref(), []log.FieldSetReader{ &googlecloudcommon_contract.GCPOperationAuditLogFieldSetReader{}, })
View Source
var HistoryModifierTask = inspectiontaskbase.NewHistoryModifierTask[struct{}](googlecloudlogcomputeapiaudit_contract.HistoryModifierTaskID, &gcpComputeAuditLogHistoryModifierSetting{}, inspectioncore_contract.FeatureTaskLabel(`Compute API Logs`, `Gather Compute API audit logs to show the timings of the provisioning of resources(e.g creating/deleting GCE VM,mounting Persistent Disk...etc) on associated timelines.`, enum.LogTypeComputeApi, 6000, true, googlecloudinspectiontypegroup_contract.GKEBasedClusterInspectionTypes...), )
View Source
var ListLogEntriesTask = googlecloudcommon_contract.NewListLogEntriesTask(&computeAPIListLogEntriesTaskSetting{})
View Source
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(googlecloudlogcomputeapiaudit_contract.LogGrouperTaskID, googlecloudlogcomputeapiaudit_contract.FieldSetReaderTaskID.Ref(), func(ctx context.Context, l *log.Log) string { audit, err := log.GetFieldSet(l, &googlecloudcommon_contract.GCPAuditLogFieldSet{}) if err != nil { return "unknown" } return getInstanceNameFromResourceName(audit.ResourceName) })
Functions ¶
func GenerateComputeAPIQuery ¶
func GenerateComputeAPIQuery(taskMode inspectioncore_contract.InspectionTaskModeType, nodeNames []string) []string
GenerateComputeAPIQuery generates a query for compute API logs.
func Register ¶
func Register(registry coreinspection.InspectionTaskRegistry) error
Register registers all googlecloudlogcomputeapiaudit inspection tasks to the registry.
flowchart TD
ListLogEntriesTask FieldSetReadTask LogSerializerTask LogGrouperTask HistoryModifierTask ListLogEntriesTask --> FieldSetReadTask ListLogEntriesTask -->LogSerializerTask FieldSetReadTask --> LogGrouperTask LogGrouperTask --> HistoryModifierTask LogSerializerTask --> HistoryModifierTask
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.