AdminAuditEvent
public record AdminAuditEvent( Instant timestamp, String commandId, String operator, String target, boolean writes, String outcome, Map<String, Object> attributes)
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46承载管理台 Audit 事件数据的记录类型。位于 io.agentscope.spring.boot.admin.audit 包。核心成员包括 timestamp、commandId、operator、target、writes、outcome。
Immutable audit record for one admin operation.
Emitted by AdminAuditLogger both as an SLF4J line and (when configured) as a Spring
ApplicationEvent, so downstream sinks (Loki, RocketMQ, Nacos audit, ...) can subscribe.
记录组件摘要Record Component Summary
| 组件Component | 类型Type | 说明Description |
|---|---|---|
timestamp | Instant | 执行时间戳相关操作。 Performs the timestamp operation. |
commandId | String | 执行命令标识相关操作。 Performs the command id operation. |
operator | String | 执行 `operator` 方法。 Performs the operator operation. |
target | String | 执行目标相关操作。 Performs the target operation. |
writes | boolean | 执行 `writes` 方法。 Performs the writes operation. |
outcome | String | 执行 `outcome` 方法。 Performs the outcome operation. |
attributes | Map<String, Object> | 执行属性相关操作。 Performs the attributes operation. |
构造器摘要Constructor Summary
| 构造器Constructor | 说明Description |
|---|---|
public AdminAuditEvent(Instant timestamp, String commandId, String operator, String target, boolean writes, String outcome, Map<String, Object> attributes) | 初始化 `AdminAuditEvent` 实例。 Creates a new instance. |
记录组件详情Record Component Detail
timestamp
Instant timestamp执行时间戳相关操作。
Performs the timestamp operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46commandId
String commandId执行命令标识相关操作。
Performs the command id operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46operator
String operator执行 operator 方法。
Performs the operator operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46target
String target执行目标相关操作。
Performs the target operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46writes
boolean writes执行 writes 方法。
Performs the writes operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46outcome
String outcome执行 outcome 方法。
Performs the outcome operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46attributes
Map<String, Object> attributes执行属性相关操作。
Performs the attributes operation.
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46构造器详情Constructor Detail
AdminAuditEvent
public AdminAuditEvent(Instant timestamp, String commandId, String operator, String target, boolean writes, String outcome, Map<String, Object> attributes)
初始化 AdminAuditEvent 实例。
Creates a new instance.
参数Parameters
| 名称Name | 类型Type | 说明Description |
|---|---|---|
timestamp | Instant | 时间戳(类型 `Instant`)。The timestamp. |
commandId | String | 命令标识(类型 `String`)。The command id. |
operator | String | operator(类型 `String`)。The operator. |
target | String | 目标(类型 `String`)。The target. |
writes | boolean | writes(类型 `boolean`)。The writes. |
outcome | String | outcome(类型 `String`)。The outcome. |
attributes | Map<String, Object> | 属性(类型 `Map`)。The attributes. |
源码Source
io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:36–45