audit

package
v0.0.0-...-d04bc5a Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitAudit

func InitAudit(config *AuditConf) error

func RecordAsyncCompleteEvent

func RecordAsyncCompleteEvent(result *scql.SCDBQueryResultResponse)

func RecordFetchResultEvent

func RecordFetchResultEvent(request *scql.SCDBFetchRequest, response *scql.SCDBQueryResultResponse, sourceIp string)

func RecordPlanDetail

func RecordPlanDetail(partyCode, targetUrl string, req *scql.RunExecutionPlanRequest)

func RecordRunASyncQueryEvent

func RecordRunASyncQueryEvent(request *scql.SCDBQueryRequest, response *scql.SCDBSubmitResponse, timeStart time.Time, sourceIp string)

func RecordRunSyncQueryEvent

func RecordRunSyncQueryEvent(request *scql.SCDBQueryRequest, response *scql.SCDBQueryResultResponse, timeStart time.Time, sourceIp string)

func RecordSecurityConfig

func RecordSecurityConfig(cclInfo *scql.SecurityConfig, sessionId string)

func RecordSessionParameters

func RecordSessionParameters(params *scql.JobStartParams, targetUrl string, sync bool)

func RecordUncategorizedEvent

func RecordUncategorizedEvent(status *status.Status, sourceIp, urlPath string)

Types

type AuditConf

type AuditConf struct {
	AuditLogFile            string `yaml:"audit_log_file"`
	AuditDetailFile         string `yaml:"audit_detail_file"`
	AuditMaxSizeInMegaBytes int    `yaml:"audit_max_size"`
	AuditMaxBackupsCount    int    `yaml:"audit_max_backups"`
	AuditMaxAgeInDays       int    `yaml:"audit_max_age_days"`
	AuditMaxCompress        bool   `yaml:"audit_max_compress"`
}

type AuditFormatter

type AuditFormatter struct {
}

func (*AuditFormatter) Format

func (f *AuditFormatter) Format(entry *logrus.Entry) ([]byte, error)

Jump to

Keyboard shortcuts

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