AS AgentScopeAPI 手册 / API Reference

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
timestampInstant
执行时间戳相关操作。
Performs the timestamp operation.
commandIdString
执行命令标识相关操作。
Performs the command id operation.
operatorString
执行 `operator` 方法。
Performs the operator operation.
targetString
执行目标相关操作。
Performs the target operation.
writesboolean
执行 `writes` 方法。
Performs the writes operation.
outcomeString
执行 `outcome` 方法。
Performs the outcome operation.
attributesMap<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–46

commandId

String commandId

执行命令标识相关操作。

Performs the command id operation.

源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46

operator

String operator

执行 operator 方法。

Performs the operator operation.

源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46

target

String target

执行目标相关操作。

Performs the target operation.

源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46

writes

boolean writes

执行 writes 方法。

Performs the writes operation.

源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46

outcome

String outcome

执行 outcome 方法。

Performs the outcome operation.

源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:27–46

attributes

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
timestampInstant时间戳(类型 `Instant`)。The timestamp.
commandIdString命令标识(类型 `String`)。The command id.
operatorStringoperator(类型 `String`)。The operator.
targetString目标(类型 `String`)。The target.
writesbooleanwrites(类型 `boolean`)。The writes.
outcomeStringoutcome(类型 `String`)。The outcome.
attributesMap<String, Object>属性(类型 `Map`)。The attributes.
源码Source io/agentscope/spring/boot/admin/audit/AdminAuditEvent.java:36–45
基于官方固定版本源码静态生成Generated from pinned official sources · Python 2.0.11 · Java 2.0.4
签名与文档为静态抽取;如有疑问请以源码为准。Signatures and docs are extracted statically; verify against the source when in doubt.