Skip to main content

io.enterpriseai.model.PolicyDecision

Source: sdks/java/enterprise-ai-java/src/main/java/io/enterpriseai/model/PolicyDecision.java. Back to the Java SDK reference index.

note

This page is generated by tools/docs/gen_sdk_reference.py from the SDK sources and the OpenAPI text folders. Do not edit it by hand: change the source and regenerate.

Model PolicyDecision​

Decision part of the Policy Contract v1, returned by POST /v1/policies/evaluate.

Fields:

NameTypeRequiredDescription
allowbooleanyesTrue when the policy allows the request.
decisionIdStringyesId of the recorded decision.
policyIdStringyesPolicy the candidate replaces; null to add it to the active set.
policyVersionStringyesVersion of the policy that decided.
engineStringyesAuto (default), HPA or KEDA.
reasonsList<String>yesReasons of the decision.
obligationsList<JsonNode>yesObligations added to the decision when this allow rule applies.
evaluatedAtOffsetDateTimeyesTime of the evaluation.