Raw event format
Raw events in the context of Decision Intelligence Client Managed Software decisions are JSON objects with
attributes.
Notation and example
The dot notation indicates nested fields. For example, data.inputParameters means the type field within the source JSON object.
| Event part | Description | Optional or required | Type |
|---|---|---|---|
deploymentSpaceId |
The deployment space in which the decision service is referenced | Required | String |
decisionId |
The ID of the decision | Required | String |
decisionOperation |
The operation of the decision | Required | String |
decisionRepositoryId |
The identifier of the decision automation (contains the organization ID) | Required | String |
decisionRepositoryName |
The display name of the decision automation | Required | String |
decisionRepositoryURL |
URL of the GIT repository. The value is blank when there is no git repository | Optional | String |
executionId |
The ID of the decision execution | Required | String |
executionMillis |
The duration of the decision execution | Required | Long |
timestamp |
The timestamp of the decision execution as an epoch in seconds since Thursday 1 January 1970 00:00:00 | Required | Long |
executedRules |
The rules that are executed during the decision execution | Optional | Array of strings |
nonExecutedRules |
The rules that are not executed during the decision execution | Optional | Array of strings |
executionSuccess |
The success of the decision execution (true or false) | Required | boolean |
runtimeNodeName |
The ID of the Kubernetes node where the decision is executed | Required | String |
engineApiVersion |
The engine version of the executed decision | Required | String |
decisionServiceName |
The decision service name | Required | String |
decisionServiceId |
The decision service ID | Required | String |
decisionServiceVersion |
The decision service version | Required | String |
| Event part | Description | Optional or required | Type |
|---|---|---|---|
data |
The business data | Optional | JSON object |
data.inputParameters |
The decision input parameters for Decision Intelligence | Optional | JSON object |
data.outputParameters |
The decision output parameters for Decision Intelligence | Optional | JSON object |
Example of attributes for raw decision events
{
"deploymentSpaceId": "test",
"decisionId": "LoanValidation",
"decisionOperation": "LoanValidation",
"executionId": "6960fe6c-94a0-4982-b7a2-567e782f8dc0",
"executionMillis": 172,
"timestamp": 1718637572368,
"executedRules": [
"/LoanValidation-dmo-LoanValidation/Duration/duration",
"/LoanValidation-dmo-LoanValidation/Bankruptcy Score/bankruptcy score",
"/LoanValidation-dmo-LoanValidation/Salary Score/salary score",
"/LoanValidation-dmo-LoanValidation/Yearly interest rate/yearly interest rate",
"/LoanValidation-dmo-LoanValidation/Corporate Score/corporate score",
"/LoanValidation-dmo-LoanValidation/Repayment/repayment",
"/LoanValidation-dmo-LoanValidation/Grade/grade",
"/LoanValidation-dmo-LoanValidation/Insurance/insurance"
],
"nonExecutedRules": [
"/LoanValidation-dmo-LoanValidation/Approval/bad score",
"/LoanValidation-dmo-LoanValidation/Approval/risky grade",
"/LoanValidation-dmo-LoanValidation/Approval/too big Debt to Income ratio",
"/LoanValidation-dmo-LoanValidation/Approval/age not valid",
"/LoanValidation-dmo-LoanValidation/Approval/no name",
"/LoanValidation-dmo-LoanValidation/Approval/wrong SSN",
"/LoanValidation-dmo-LoanValidation/Approval/wrong SSN format",
"/LoanValidation-dmo-LoanValidation/Approval/wrong zip format",
"/LoanValidation-dmo-LoanValidation/Approval/max amount exceeded"
],
"executionSuccess": true,
"runtimeNodeName": "780de6246f2d",
"engineApiVersion": "3.3.0",
"data": {
"inputParameters": {
},
"outputParameters": {
"approval": {
"approved": true,
"message": "Congratulations! Your loan has been approved"
},
"insurance": {
"rate": 0.006,
"required": true
}
}
},
"decisionServiceName": "LoanValidation",
"decisionServiceId": "samples.LoanValidation:LoanValidationDecisionService",
"decisionServiceVersion": "12.0.4"
}