audit_log

package
v0.2.0-rc.2 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2025 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const AuditLogTableIdentifier = "pipes_audit_log"

Variables

This section is empty.

Functions

This section is empty.

Types

type AuditLog

type AuditLog struct {
	// embed required enrichment fields
	schema.CommonFields

	// Additional fields
	ActionType       string                 `json:"action_type"`
	ActorAvatarUrl   string                 `json:"actor_avatar_url"`
	ActorDisplayName string                 `json:"actor_display_name"`
	ActorHandle      string                 `json:"actor_handle"`
	ActorId          string                 `json:"actor_id"`
	ActorIp          string                 `json:"actor_ip"`
	CreatedAt        time.Time              `json:"created_at"`
	Data             map[string]interface{} `json:"data" parquet:"type=JSON"`
	Id               string                 `json:"id"`
	IdentityHandle   string                 `json:"identity_handle"`
	IdentityId       string                 `json:"identity_id"`
	ProcessId        *string                `json:"process_id,omitempty"`
	TargetHandle     *string                `json:"target_handle,omitempty"`
	TargetId         *string                `json:"target_id,omitempty"`
	TenantId         string                 `json:"tenant_id"`
}

AuditLog is the struct containing the enriched data for an AuditRecord

func (*AuditLog) GetColumnDescriptions

func (a *AuditLog) GetColumnDescriptions() map[string]string

type AuditLogMapper

type AuditLogMapper struct {
}

func (*AuditLogMapper) Identifier

func (m *AuditLogMapper) Identifier() string

func (*AuditLogMapper) Map

func (m *AuditLogMapper) Map(_ context.Context, data any, _ ...table.MapOption[*AuditLog]) (*AuditLog, error)

type AuditLogTable

type AuditLogTable struct {
}

func (*AuditLogTable) EnrichRow

func (c *AuditLogTable) EnrichRow(row *AuditLog, sourceEnrichmentFields schema.SourceEnrichment) (*AuditLog, error)

func (*AuditLogTable) GetDescription

func (c *AuditLogTable) GetDescription() string

func (*AuditLogTable) GetSourceMetadata

func (c *AuditLogTable) GetSourceMetadata() []*table.SourceMetadata[*AuditLog]

func (*AuditLogTable) Identifier

func (c *AuditLogTable) Identifier() string

Jump to

Keyboard shortcuts

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