audit_log

package
v0.5.1-rc.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const AuditLogTableIdentifier = "github_audit_log"

Variables

This section is empty.

Functions

This section is empty.

Types

type ActorLocation

type ActorLocation struct {
	CountryCode *string `json:"country_code,omitempty"`
}

type AuditLog

type AuditLog struct {
	schema.CommonFields

	Action                   *string                 `json:"action,omitempty"`
	OperationType            *string                 `json:"operation_type,omitempty"`
	Actor                    *string                 `json:"actor,omitempty"`
	ActorID                  *int64                  `json:"actor_id,omitempty"`
	ActorIP                  *string                 `json:"actor_ip,omitempty"`
	ActorLocation            *map[string]interface{} `json:"actor_location,omitempty" parquet:"type=JSON"`
	Business                 *string                 `json:"business,omitempty"`
	BusinessID               *int64                  `json:"business_id,omitempty"`
	CreatedAt                *time.Time              `json:"created_at,omitempty"`
	DocumentID               *string                 `json:"document_id,omitempty"`
	ExternalIdentityNameID   *string                 `json:"external_identity_name_id,omitempty"`
	ExternalIdentityUsername *string                 `json:"external_identity_username,omitempty"`
	HashedToken              *string                 `json:"hashed_token,omitempty"`
	Org                      *string                 `json:"org,omitempty"`
	Repo                     *string                 `json:"repo,omitempty"`
	OrgID                    *string                 `json:"org_id,omitempty"`
	Timestamp                *time.Time              `json:"timestamp,omitempty"`
	TokenID                  *int64                  `json:"token_id,omitempty"`
	TokenScopes              *string                 `json:"token_scopes,omitempty"`
	User                     *string                 `json:"user,omitempty"`
	UserID                   *int64                  `json:"user_id,omitempty"`
	AdditionalFields         *map[string]interface{} `json:"additional_fields,omitempty" parquet:"type=JSON"`
}

func (*AuditLog) GetColumnDescriptions

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

type AuditLogBatch

type AuditLogBatch struct {
	Records []AuditLog `json:"Records"`
}

type AuditLogMapper

type AuditLogMapper struct{}

func (*AuditLogMapper) Identifier

func (m *AuditLogMapper) Identifier() string

func (*AuditLogMapper) Map

type AuditLogTable

type AuditLogTable struct{}

AuditLogTable - table for GitHub audit logs

func (*AuditLogTable) EnrichRow

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

EnrichRow implements table.Table

func (*AuditLogTable) GetDescription

func (t *AuditLogTable) GetDescription() string

func (*AuditLogTable) GetSourceMetadata

func (t *AuditLogTable) GetSourceMetadata() ([]*table.SourceMetadata[*AuditLog], error)

func (*AuditLogTable) Identifier

func (t *AuditLogTable) Identifier() string

Identifier implements table.Table

Jump to

Keyboard shortcuts

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