googlecloudlogk8sevent_impl

package
v0.49.0 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var HistoryModifierTask = inspectiontaskbase.NewHistoryModifierTask[struct{}](googlecloudlogk8sevent_contract.HistoryModifierTaskID, &KubernetesEventHistoryModifierSetting{}, inspectioncore_contract.FeatureTaskLabel(
	"Kubernetes Event Logs",
	"Gather kubernetes event logs and visualize these on the associated resource timeline.",
	enum.LogTypeEvent,
	2000,
	true,
	googlecloudinspectiontypegroup_contract.GCPK8sClusterInspectionTypes...,
))

Functions

func GenerateK8sEventQuery

func GenerateK8sEventQuery(clusterName string, projectId string, namespaceFilter *gcpqueryutil.SetFilterParseResult) string

GenerateK8sEventQuery generates a query for Kubernetes Event logs.

func Register

func Register(registry coreinspection.InspectionTaskRegistry) error

Register registers all googlecloudlogk8sevent inspection tasks to the registry.

Types

type K8sEventListLogEntriesTaskSetting

type K8sEventListLogEntriesTaskSetting struct {
}

func (*K8sEventListLogEntriesTaskSetting) DefaultResourceNames

func (k *K8sEventListLogEntriesTaskSetting) DefaultResourceNames(ctx context.Context) ([]string, error)

DefaultResourceNames implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*K8sEventListLogEntriesTaskSetting) Dependencies

Dependencies implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*K8sEventListLogEntriesTaskSetting) Description

Description implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*K8sEventListLogEntriesTaskSetting) LogFilters

LogFilters implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*K8sEventListLogEntriesTaskSetting) TaskID

TaskID implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

func (*K8sEventListLogEntriesTaskSetting) TimePartitionCount

func (k *K8sEventListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)

TimePartitionCount implements googlecloudcommon_contract.ListLogEntriesTaskSetting.

type KubernetesEventHistoryModifierSetting

type KubernetesEventHistoryModifierSetting struct {
}

func (*KubernetesEventHistoryModifierSetting) Dependencies

Dependencies implements inspectiontaskbase.HistoryModifer.

func (*KubernetesEventHistoryModifierSetting) GroupedLogTask

GroupedLogTask implements inspectiontaskbase.HistoryModifer.

func (*KubernetesEventHistoryModifierSetting) LogSerializerTask

LogSerializerTask implements inspectiontaskbase.HistoryModifer.

func (*KubernetesEventHistoryModifierSetting) ModifyChangeSetFromLog

func (k *KubernetesEventHistoryModifierSetting) ModifyChangeSetFromLog(ctx context.Context, l *log.Log, cs *history.ChangeSet, builder *history.Builder, prevGroupData struct{}) (struct{}, error)

ModifyChangeSetFromLog implements inspectiontaskbase.HistoryModifer.

Jump to

Keyboard shortcuts

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