Class AdminRequestEvent

java.lang.Object
jdk.jfr.Event
zeroecho.pki.server.jfr.AdminRequestEvent

public final class AdminRequestEvent extends Event
JFR event emitted for every request handled by the administrative HTTPS handler.

Captures the operation type, acting principal, HTTP status code, and whether the request was authorized. The event duration spans the full handler lifecycle from request receipt to response write — useful for measuring end-to-end admin API latency per operation and principal.

Since:
1.0
  • Field Details

    • operationId

      public String operationId
      Stable operation identifier resolved from the request path, e.g. credential.issue; empty string for pre-routing failures.
    • principalId

      public String principalId
      Server principal identifier of the authenticated end-client; empty string when authentication failed or did not complete.
    • httpStatus

      public int httpStatus
      HTTP status code of the response sent to the caller.
    • authorized

      public boolean authorized
      Whether the request was authorized and admitted for execution.
  • Constructor Details

    • AdminRequestEvent

      public AdminRequestEvent()
      Creates an uncommitted event with default field values; populate fields before committing.