* Audit logging - new schema added, old schema removed. * fix linter error by running goimports * Address review comments * Address review comments * Example usage of new audit logging API for the updateUserAuth call * fixed unit test on auditing updating user record * Changed the `TestUpdateConfigDiffInAuditRecord` testcase---it failed, because this PR changes how the `meta` field is serialized into the audit log records. * fix linter error
23 строки
467 B
Go
23 строки
467 B
Go
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
|
// See LICENSE.txt for license information.
|
|
|
|
package audit
|
|
|
|
const (
|
|
DefMaxQueueSize = 1000
|
|
|
|
KeyAPIPath = "api_path"
|
|
KeyEvent = "event"
|
|
KeyEventData = "event_data"
|
|
KeyStatus = "status"
|
|
KeyUserID = "user_id"
|
|
KeySessionID = "session_id"
|
|
KeyClient = "client"
|
|
KeyIPAddress = "ip_address"
|
|
KeyClusterID = "cluster_id"
|
|
|
|
Success = "success"
|
|
Attempt = "attempt"
|
|
Fail = "fail"
|
|
)
|