Documentation
¶
Index ¶
- Variables
- func GenerateK8sEventQuery(cluster googlecloudk8scommon_contract.GoogleCloudClusterIdentity, ...) string
- func Register(registry coreinspection.InspectionTaskRegistry) error
- type K8sEventListLogEntriesTaskSetting
- func (k *K8sEventListLogEntriesTaskSetting) DefaultResourceNames(ctx context.Context) ([]string, error)
- func (k *K8sEventListLogEntriesTaskSetting) Dependencies() []taskid.UntypedTaskReference
- func (k *K8sEventListLogEntriesTaskSetting) Description() *googlecloudcommon_contract.ListLogEntriesTaskDescription
- func (k *K8sEventListLogEntriesTaskSetting) LogFilters(ctx context.Context, taskMode inspectioncore_contract.InspectionTaskModeType) ([]string, error)
- func (k *K8sEventListLogEntriesTaskSetting) TaskID() taskid.TaskImplementationID[[]*log.Log]
- func (k *K8sEventListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)
- type KubernetesEventLogToTimelineMapperSetting
- func (k *KubernetesEventLogToTimelineMapperSetting) Dependencies() []taskid.UntypedTaskReference
- func (k *KubernetesEventLogToTimelineMapperSetting) GroupedLogTask() taskid.TaskReference[inspectiontaskbase.LogGroupMap]
- func (k *KubernetesEventLogToTimelineMapperSetting) LogIngesterTask() taskid.TaskReference[[]*log.Log]
- func (k *KubernetesEventLogToTimelineMapperSetting) ProcessLogByGroup(ctx context.Context, l *log.Log, cs *history.ChangeSet, ...) (struct{}, error)
Constants ¶
This section is empty.
Variables ¶
var FieldSetReaderTask = inspectiontaskbase.NewFieldSetReadTask(googlecloudlogk8sevent_contract.FieldSetReaderTaskID, googlecloudlogk8sevent_contract.ListLogEntriesTaskID.Ref(), []log.FieldSetReader{ &googlecloudlogk8sevent_contract.GCPKubernetesEventFieldSetReader{}, })
var ListLogEntriesTask = googlecloudcommon_contract.NewListLogEntriesTask(&K8sEventListLogEntriesTaskSetting{})
var LogGrouperTask = inspectiontaskbase.NewLogGrouperTask(googlecloudlogk8sevent_contract.LogGrouperTaskID, googlecloudlogk8sevent_contract.FieldSetReaderTaskID.Ref(), func(ctx context.Context, l *log.Log) string { event, err := log.GetFieldSet(l, &googlecloudlogk8sevent_contract.KubernetesEventFieldSet{}) if err != nil { return "unknown" } return event.ResourcePath().Path }, )
var LogIngesterTask = inspectiontaskbase.NewLogIngesterTask(googlecloudlogk8sevent_contract.LogIngesterTaskID, googlecloudlogk8sevent_contract.ListLogEntriesTaskID.Ref())
var LogToTimelineMapperTask = inspectiontaskbase.NewLogToTimelineMapperTask[struct{}](googlecloudlogk8sevent_contract.LogToTimelineMapperTaskID, &KubernetesEventLogToTimelineMapperSetting{}, 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(cluster googlecloudk8scommon_contract.GoogleCloudClusterIdentity, 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 ¶
func (k *K8sEventListLogEntriesTaskSetting) Dependencies() []taskid.UntypedTaskReference
Dependencies implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) Description ¶
func (k *K8sEventListLogEntriesTaskSetting) Description() *googlecloudcommon_contract.ListLogEntriesTaskDescription
Description implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) LogFilters ¶
func (k *K8sEventListLogEntriesTaskSetting) LogFilters(ctx context.Context, taskMode inspectioncore_contract.InspectionTaskModeType) ([]string, error)
LogFilters implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) TaskID ¶
func (k *K8sEventListLogEntriesTaskSetting) TaskID() taskid.TaskImplementationID[[]*log.Log]
TaskID implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
func (*K8sEventListLogEntriesTaskSetting) TimePartitionCount ¶
func (k *K8sEventListLogEntriesTaskSetting) TimePartitionCount(ctx context.Context) (int, error)
TimePartitionCount implements googlecloudcommon_contract.ListLogEntriesTaskSetting.
type KubernetesEventLogToTimelineMapperSetting ¶ added in v0.50.0
type KubernetesEventLogToTimelineMapperSetting struct {
}
func (*KubernetesEventLogToTimelineMapperSetting) Dependencies ¶ added in v0.50.0
func (k *KubernetesEventLogToTimelineMapperSetting) Dependencies() []taskid.UntypedTaskReference
Dependencies implements inspectiontaskbase.LogToTimelineMapper.
func (*KubernetesEventLogToTimelineMapperSetting) GroupedLogTask ¶ added in v0.50.0
func (k *KubernetesEventLogToTimelineMapperSetting) GroupedLogTask() taskid.TaskReference[inspectiontaskbase.LogGroupMap]
GroupedLogTask implements inspectiontaskbase.LogToTimelineMapper.
func (*KubernetesEventLogToTimelineMapperSetting) LogIngesterTask ¶ added in v0.50.0
func (k *KubernetesEventLogToTimelineMapperSetting) LogIngesterTask() taskid.TaskReference[[]*log.Log]
LogIngesterTask implements inspectiontaskbase.LogToTimelineMapper.
func (*KubernetesEventLogToTimelineMapperSetting) ProcessLogByGroup ¶ added in v0.50.0
func (k *KubernetesEventLogToTimelineMapperSetting) ProcessLogByGroup(ctx context.Context, l *log.Log, cs *history.ChangeSet, builder *history.Builder, prevGroupData struct{}) (struct{}, error)
ProcessLogByGroup implements inspectiontaskbase.LogToTimelineMapper.