first commit
This commit is contained in:
@@ -0,0 +1,5 @@
|
||||
plugins { id("java-library-conventions") }
|
||||
dependencies {
|
||||
api(project(":main-infrastructure"))
|
||||
api(project(":main-contract-subjects"))
|
||||
}
|
||||
+38
@@ -0,0 +1,38 @@
|
||||
package net.bquarkz.ai.gateway.audit.contracts;
|
||||
|
||||
import net.bquarkz.ai.gateway.contracts.PolicyDecision;
|
||||
import lombok.Builder;
|
||||
import lombok.Value;
|
||||
import lombok.extern.jackson.Jacksonized;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Value
|
||||
@Builder
|
||||
@Jacksonized
|
||||
public class AuditEntry {
|
||||
OffsetDateTime timestamp;
|
||||
Tags tags;
|
||||
Fields fields;
|
||||
|
||||
@Value
|
||||
@Builder
|
||||
@Jacksonized
|
||||
public static class Tags {
|
||||
String agentId;
|
||||
String tool;
|
||||
String action;
|
||||
PolicyDecision decision;
|
||||
String policyRuleId;
|
||||
}
|
||||
|
||||
@Value
|
||||
@Builder
|
||||
@Jacksonized
|
||||
public static class Fields {
|
||||
String requestId;
|
||||
String reason;
|
||||
String arguments;
|
||||
String scopes;
|
||||
}
|
||||
}
|
||||
+20
@@ -0,0 +1,20 @@
|
||||
package net.bquarkz.ai.gateway.audit.contracts;
|
||||
|
||||
import net.bquarkz.ai.gateway.contracts.PolicyDecision;
|
||||
import lombok.Builder;
|
||||
import lombok.Value;
|
||||
|
||||
import java.time.OffsetDateTime;
|
||||
|
||||
@Value
|
||||
@Builder
|
||||
public class AuditQuery {
|
||||
@Builder.Default int limit = 20;
|
||||
OffsetDateTime from;
|
||||
OffsetDateTime to;
|
||||
// tag filters
|
||||
String tool;
|
||||
String agentId;
|
||||
PolicyDecision decision;
|
||||
String policyRuleId;
|
||||
}
|
||||
Reference in New Issue
Block a user