This page provides the list of events and associated payload for external events (via EventBridge) for the RulesManager microservice.

External Events via EventBridge

The following events contain the entity changed in the event message payload.

List of Events

S.No.API CallCall DetailEvent TypeIdentifier
1.POSTCreateEventrulesmanager/event/create
2.PATCHPatchEventrulesmanager/event/patch
3.DELETEDeleteEventrulesmanager/event/delete
4.PUTUpdateRulesManagerEventrulesmanager/rulesmanagerevent/update
5.POSTCreateRulesetrulesmanager/ruleset/create
6.PUTUpdateRulesetrulesmanager/ruleset/update
7.DELETEDeleteRulesetrulesmanager/ruleset/delete
8.POSTCreateRulerulesmanager/rule/create
9.PUTUpdateRulerulesmanager/rule/update
10.DELETEDeleteRulerulesmanager/rule/delete
11.POSTCreateActionrulesmanager/Action/create
12.PUTUpdateRuleSettingrulesmanager/rulesettings/update

Payload

CreateEvent

Event Type: rulesmanager/event/create


{
  "version": "0",
  "id": "0c3eec5d-2767-1771-6292-a225062a905a",
  "detail-type": "rulesmanager/event/create",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T06:47:48Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "6603c1145900ac08689af6e6",
    "timestamp": 1711522068379,
    "payload": {
      "identifier": "6603c1145900ac08689af6e6",
      "collectionId": 88,
      "name": "EventName_17115220686497622",
      "description": "points",
      "status": "ACTIVE",
      "createdOn": 1711522068362,
      "createdBy": 5,
      "updatedOn": 1711522068362,
      "updatedBy": 5,
      "eventProperty": [
        {
          "name": "PropertyName_17115220686484692",
          "value": "string",
          "type": "STRING",
          "propertyLevel": "INPUT"
        }
      ]
    },
    "collectionId": "88",
    "eventType": "rulesmanager/event/create",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

PatchEvent

Event Type: rulesmanager/event/patch


{
  "version": "0",
  "id": "8f9e2294-dc52-8547-a537-499b2850b877",
  "detail-type": "rulesmanager/event/patch",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T07:24:25Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "6603c9a15900ac08689af6f0",
    "timestamp": 1711524265667,
    "payload": {
      "identifier": "6603c9a15900ac08689af6f0",
      "collectionId": 97,
      "name": "EventName2_17115242659567775",
      "description": "description_17115242659569959",
      "status": "INACTIVE",
      "createdOn": 1711524257394,
      "createdBy": 5,
      "updatedOn": 1711524265654,
      "updatedBy": 5,
      "eventProperty": [
        {
          "name": "PropertyName_1711524257509810",
          "value": "string",
          "type": "STRING",
          "propertyLevel": "INPUT"
        },
        {
          "name": "propertyname",
          "value": "Changedvlaue",
          "type": "STRING",
          "propertyLevel": "INPUT"
        }
      ]
    },
    "collectionId": "97",
    "eventType": "rulesmanager/event/patch",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_BUSINESS_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteEvent

Event Type: rulesmanager/event/delete


{
  "version": "0",
  "id": "c7f201cc-face-296f-e07b-54bb1fbe59b0",
  "detail-type": "rulesmanager/event/delete",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T07:25:02Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1711524302389,
    "payload": {
      "responseCode": "LYEVD0000",
      "responseMessage": "Event Id 6603c9c65900ac08689af6f2 Deleted Successfully.",
      "timeStamp": "1711524302381"
    },
    "collectionId": "99",
    "eventType": "rulesmanager/event/delete",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateRulesManagerEvent

Event Type: rulesmanager/rulesmanagerevent/update


{
  "version": "0",
  "id": "7cb04c8d-bd0f-e4e2-7d24-200c13bfdda0",
  "detail-type": "rulesmanager/rulesmanagerevent/update",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T07:24:43Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "6603c9b35900ac08689af6f1",
    "timestamp": 1711524283917,
    "payload": {
      "identifier": "6603c9b35900ac08689af6f1",
      "collectionId": 98,
      "name": "EventName_17115242841885325",
      "description": "updatepoints",
      "status": "ACTIVE",
      "createdOn": 1711524283895,
      "createdBy": 0,
      "updatedOn": 1711524283895,
      "updatedBy": 5,
      "eventProperty": [
        {
          "name": "PropertyName_17115242841885104",
          "value": "UpdateValue",
          "type": "STRING",
          "propertyLevel": "INPUT"
        }
      ]
    },
    "collectionId": "98",
    "eventType": "rulesmanager/rulesmanagerevent/update",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateRuleset

Event Type: rulesmanager/ruleset/create


{
  "version": "0",
  "id": "f7fb13d1-95bd-9fcc-be86-4f93ae3a2bc6",
  "detail-type": "rulesmanager/ruleset/create",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T08:31:37Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "t1hBA7",
    "timestamp": 1711528297399,
    "payload": {
      "id": "t1hBA7",
      "name": "Rulesmanager001",
      "startTime": 1711528596976,
      "endTime": 2549085798000,
      "priority": 1,
      "status": "ACTIVE",
      "createdOn": "2024-03-27T08:31:36.990132121Z",
      "createdBy": 5,
      "updatedOn": "2024-03-27T08:31:36.990133255Z",
      "updatedBy": 5,
      "collectionId": 122
    },
    "collectionId": "122",
    "eventType": "rulesmanager/ruleset/create",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateRuleset

Event Type: rulesmanager/ruleset/update


{
  "version": "0",
  "id": "1d2e4d2f-e884-ec72-41d7-143c711b7019",
  "detail-type": "rulesmanager/ruleset/update",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T10:03:21Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "ej7myo",
    "timestamp": 1711533801818,
    "payload": {
      "id": "ej7myo",
      "name": "Rulesmanagerset001",
      "startTime": 2234065169000,
      "endTime": 2549085798000,
      "priority": 1,
      "status": "ACTIVE",
      "createdOn": "2024-03-27T10:03:13.024Z",
      "createdBy": 5,
      "updatedOn": "2024-03-27T10:03:21.529471086Z",
      "updatedBy": 5,
      "collectionId": 170
    },
    "collectionId": "170",
    "eventType": "rulesmanager/ruleset/update",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteRuleset

Event Type: rulesmanager/ruleset/delete


{
  "version": "0",
  "id": "f464c752-17c5-0733-be5e-e3c379bbd3f5",
  "detail-type": "rulesmanager/ruleset/delete",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T10:03:32Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1711533812626,
    "payload": {
      "ruleSetSoftDeleteResponse": {
        "startTime": 0,
        "endTime": 0,
        "priority": 0,
        "createdBy": 0,
        "updatedBy": 0,
        "collectionId": 0
      }
    },
    "collectionId": "171",
    "eventType": "rulesmanager/ruleset/delete",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateRule

Event Type: rulesmanager/rule/create


{
  "version": "0",
  "id": "e7b8dc1c-9d4d-a1c3-6ade-398a13a0e8a3",
  "detail-type": "rulesmanager/rule/create",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T11:04:07Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "M6wvWC",
    "timestamp": 1711537447590,
    "payload": {
      "response": {
        "collectionId": 198,
        "response": {
          "name": "Allow Rule",
          "startTime": 1711537745958,
          "endTime": 2530268140000,
          "priority": 25,
          "status": "ACTIVE",
          "createdBy": 0,
          "updatedBy": 0,
          "id": "M6wvWC",
          "ruleSetId": "dkXwT6",
          "conditionData": {
            "logicalOperator": "AND",
            "conditions": [
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115374461691049",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115374461691049",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "Userinfo.Age",
                "operator": "greater",
                "value": "16",
                "type": "int"
              }
            ]
          },
          "event": "EventName_17115374461691049",
          "actions": [
            {
              "name": "Allowaction",
              "className": "com.skava.rulesmanager.action.Apps",
              "actionType": "Allow",
              "itemParams": [
                {
                  "name": "actionType",
                  "value": "com.skava.rulesmanager.action.Apps"
                },
                {
                  "name": "appId",
                  "value": "64cc9c87c9e8f42959c4067a"
                }
              ]
            }
          ],
          "ruleInformation": {
            "description": [
              {
                "locale": "en_US",
                "text": "rule"
              }
            ],
            "message": [
              {
                "locale": "en_US",
                "text": "rule"
              }
            ]
          },
          "stopFurtherProcessing": "NEVER",
          "ruleType": 0,
          "actionType": 0
        }
      }
    },
    "collectionId": "198",
    "eventType": "rulesmanager/rule/create",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateRule

Event Type: rulesmanager/rule/update


{
  "version": "0",
  "id": "5aeb7ec0-7631-30d3-46a7-421f1d61de2e",
  "detail-type": "rulesmanager/rule/update",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T12:33:50Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "TuQTOZ",
    "timestamp": 1711542830694,
    "payload": {
      "response": {
        "collectionId": 222,
        "response": {
          "name": "Allow Rule",
          "startTime": 1711543127790,
          "endTime": 2530268140000,
          "priority": 25,
          "status": "ACTIVE",
          "createdBy": 0,
          "updatedBy": 0,
          "id": "TuQTOZ",
          "ruleSetId": "JCbZyv",
          "conditionData": {
            "logicalOperator": "AND",
            "conditions": [
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115428282502935",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115428282502935",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "Userinfo.Age",
                "operator": "less_or_equal",
                "value": "16",
                "type": "Int"
              }
            ]
          },
          "event": "EventName_17115428282502935",
          "actions": [
            {
              "name": "Allowaction",
              "className": "com.skava.rulesmanager.action.Apps",
              "actionType": "Allow",
              "itemParams": [
                {
                  "name": "actionType",
                  "value": "com.skava.rulesmanager.action.Apps"
                },
                {
                  "name": "appId",
                  "value": "64cc9c87c9e8f42959c4067a"
                }
              ]
            }
          ],
          "ruleInformation": {
            "description": [
              {
                "locale": "en_US",
                "text": "test"
              }
            ],
            "message": [
              {
                "locale": "en_US",
                "text": "test"
              }
            ]
          },
          "stopFurtherProcessing": "NEVER",
          "ruleType": 0,
          "actionType": 0
        }
      }
    },
    "collectionId": "222",
    "eventType": "rulesmanager/rule/update",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_BUSINESS_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteRule

Event Type: rulesmanager/rule/delete


{
  "version": "0",
  "id": "0310932f-1ab6-0f0b-e219-08622716d38e",
  "detail-type": "rulesmanager/rule/delete",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T13:43:31Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1711547011745,
    "payload": {
      "ruleSoftDeleteResponse": {
        "collectionId": 244,
        "response": {
          "name": "BdjBPJ",
          "startTime": 1711547307441,
          "endTime": 2530268140000,
          "priority": 25,
          "status": "INACTIVE",
          "createdBy": 0,
          "updatedBy": 0,
          "id": "UyH17d",
          "ruleSetId": "AkFKhb",
          "conditionData": {
            "logicalOperator": "AND",
            "conditions": [
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115470098254411",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "eventId",
                "operator": "equal",
                "value": "EventName_17115470098254411",
                "type": "String"
              },
              {
                "object": "customEvent",
                "operand": "Userinfo.Age",
                "operator": "less_or_equal",
                "value": "16",
                "type": "Int"
              }
            ]
          },
          "event": "EventName_17115470098254411",
          "actions": [
            {
              "name": "deny action",
              "className": "com.skava.rulesmanager.action.DenyCustomerActions",
              "itemParams": [
                {
                  "name": "displayDenialMessage",
                  "value": "Age is Restricted"
                },
                {
                  "name": "actionType",
                  "value": "com.skava.rulesmanager.action.DenyCustomerActions"
                }
              ]
            }
          ],
          "ruleInformation": {
            "description": [
              {
                "locale": "en_US",
                "text": "test"
              }
            ],
            "message": [
              {
                "locale": "en_US",
                "text": "test"
              }
            ]
          },
          "stopFurtherProcessing": "NEVER",
          "ruleType": 0,
          "actionType": 0
        }
      }
    },
    "collectionId": "244",
    "eventType": "rulesmanager/rule/delete",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_BUSINESS_ADMIN"
    ],
    "channel": "CSR"
  }
}

CreateAction

Event Type: rulesmanager/Action/create


{
  "version": "0",
  "id": "040e5172-d371-e4bc-1f1f-e8ec9fd2ae76",
  "detail-type": "rulesmanager/Action/create",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T14:08:48Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1711548528034,
    "payload": {
      "responseCode": "LYACC0000",
      "responseMessage": "App not enabled.",
      "timeStamp": "1711548528032"
    },
    "collectionId": "250",
    "eventType": "rulesmanager/Action/create",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

UpdateRuleSetting

Event Type: rulesmanager/rulesettings/update


{
  "version": "0",
  "id": "52f65025-d673-3704-0d9b-885f2caf893f",
  "detail-type": "rulesmanager/rulesettings/update",
  "source": "rulesmanager",
  "account": "277827593990",
  "time": "2024-03-27T17:55:19Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "timestamp": 1711562119474,
    "payload": {
      "ruleResponse": {
        "collectionId": 317
      }
    },
    "collectionId": "317",
    "eventType": "rulesmanager/rulesettings/update",
    "userId": "5",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_SUPER_ADMIN"
    ],
    "channel": "CSR"
  }
}

Internal Events via RabbitMQ/AWS MQ

This events communicates with the internal microservices.

Currently, there are no events associated with the RulesManager microservice.

 

 

 

Revision History

2024-05-21 | SD, AN – Created the page and updated the content for 8.17.4 release.