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:
| Name | Type | Required | Description |
|---|---|---|---|
allow | boolean | yes | True when the policy allows the request. |
decisionId | String | yes | Id of the recorded decision. |
policyId | String | yes | Policy the candidate replaces; null to add it to the active set. |
policyVersion | String | yes | Version of the policy that decided. |
engine | String | yes | Auto (default), HPA or KEDA. |
reasons | List<String> | yes | Reasons of the decision. |
obligations | List<JsonNode> | yes | Obligations added to the decision when this allow rule applies. |
evaluatedAt | OffsetDateTime | yes | Time of the evaluation. |