Skip to content

Commit

Permalink
fix issue
Browse files Browse the repository at this point in the history
Signed-off-by: stonezdj <[email protected]>
  • Loading branch information
stonezdj committed Dec 26, 2024
1 parent 9ac2b7c commit 8223013
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions proposals/new/enhance_audit_log.md
Original file line number Diff line number Diff line change
Expand Up @@ -326,10 +326,10 @@ Because purge audit log will delete the audit log periodically, and it allow us

## API change

Add a new API to query the audit log ext event. the API is `/api/v2.0/audit-logs-ext`, the user can filter the audit log event by the operation, resource_type, resource, the operation description and operation result are visible to users.
Add a new API to query the audit log ext event. the API is `/api/v2.0/auditlog-exts`, the user can filter the audit log event by the operation, resource_type, resource, the operation description and operation result are visible to users.

```
/audit-logs-ext:
/auditlog-exts:
get:
summary: Get recent logs of the projects which the user is a member of
description: |
Expand Down Expand Up @@ -438,10 +438,10 @@ The AuditLogExt is defined as follow
description: The time when this operation is triggered.
```

In order to provide a list of audit log event types to disable in configuration pannel, the API `/api/v2.0/audit-log-event-types` provide the event types ID and names.
In order to provide a list of audit log event types to disable in configuration pannel, the API `/api/v2.0/auditlog-exts/eventtypes` provide the event types ID and names.

```
/audit-log-event-types:
/auditlog-exts/eventtypes:
get:
summary: Get all event types of audit log
description: |
Expand Down Expand Up @@ -484,7 +484,7 @@ and it returns the `AuditLogEventType`
### Disable Audit Log Event Type

Add a new configuration item in the system configuration page to disable the unwanted audit log event type.
Add the `audit_log_disable` configuration item in the Configuration -> System Settings page, the user can select the event type to disable the audit log event, the event type should be separated by comma. Because the event type is the combination of operation and resource type, the user can input the operation and resource type to disable the audit log event. it is a string type configuration item. all audit log event types are retrieved from the API `/api/v2.0/audit-log-event-types`.
Add the `audit_log_disable` configuration item in the Configuration -> System Settings page, the user can select the event type to disable the audit log event, the event type should be separated by comma. Because the event type is the combination of operation and resource type, the user can input the operation and resource type to disable the audit log event. it is a string type configuration item. all audit log event types are retrieved from the API `/api/v2.0/auditlog-exts/eventtypes`.

![Disable Audit Log Event Type](../images/enhance_auditlog/config_disable_event_type.png)

Expand Down

0 comments on commit 8223013

Please sign in to comment.