audit

audit

audit

Audit SubSystem for FourQ

Metadata

deployAudit()

Deploy table structure for audit subsystem.

Arguments

Name Type Required Default Options Description
dsn variableName No [runtime expression]
bDropTable boolean No false
dbtype string No [runtime expression]
dbowner string No [runtime expression]

getAuditActivities()

Returns a query of activities in audit log

Arguments

Name Type Required Default Options Description
dsn string No [runtime expression]
dbowner string No [runtime expression]

getAuditLog()

Return a query of audit entries based on parameters passed in.

Arguments

Name Type Required Default Options Description
objectID string No
before date No
after date No
username string No
location string No
auditType string No
maxRows numeric No 100
ordering string No desc
dsn string No [runtime expression]
dbowner string No [runtime expression]

getAuditUsers()

Returns a query of users in audit log

Arguments

Name Type Required Default Options Description
dsn string No [runtime expression]
dbowner string No [runtime expression]

getUserActivityDaily()

Return a query of audit entries for user logins over time.

Arguments

Name Type Required Default Options Description
day date No [runtime expression]
dsn string No [runtime expression]
dbtype string No [runtime expression]
dbowner string No [runtime expression]

getUserActivityWeekly()

Return a query of audit entries for user logins over time.

Arguments

Name Type Required Default Options Description
day date No [runtime expression]
dsn string No [runtime expression]
dbtype string No [runtime expression]
dbowner string No [runtime expression]

logActivity()

Write log entry to Audit table.

Arguments

Name Type Required Default Options Description
username string Yes
auditType string Yes
objectID string No
location string No
note string No
dbowner string No [runtime expression]
dsn string No [runtime expression]