This page provides the list of events and associated payload for internal events (via RabbitMQ/AWS MQ) and external events (via EventBridge) for the Reporting 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.PATCHPatchUpdateReportreportservice/report/patchresponse_report.id
2.DELETEDeleteReportreportservice/report/deleteresponse_report.id
3.DELETEDeleteReportPropertyreportservice/reportproperty/deleteresponse_report.id

Payload

PatchUpdateReport

Event Type: reportservice/report/patch


{
  "version": "0",
  "id": "7bed08a6-aafd-027a-a6e8-c57a44995668",
  "detail-type": "reportservice/report/patch",
  "source": "reportservice",
  "account": "277827593990",
  "time": "2024-03-06T07:42:15Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "9",
    "timestamp": 1709710935429,
    "payload": {
      "code": "REPORT_UPDATED",
      "report": {
        "id": 9,
        "collectionId": 6,
        "name": "Externalevent",
        "description": "Reports",
        "reportProperties": [
          {
            "name": "New",
            "value": "2"
          }
        ],
        "reportParams": [
          
        ],
        "processorClassName": "",
        "downloadable": false,
        "createdBy": "1",
        "createdTime": 1709710928000,
        "updatedBy": "1",
        "updatedTime": 1709710928000
      }
    },
    "collectionId": "6",
    "eventType": "reportservice/report/patch",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_REPORTING_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteReport

Event Type: reportservice/report/delete


{
  "version": "0",
  "id": "3bce8e33-93e0-4f5e-c0ef-74fdd95b198f",
  "detail-type": "reportservice/report/delete",
  "source": "reportservice",
  "account": "277827593990",
  "time": "2024-03-06T07:43:36Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "12",
    "timestamp": 1709711016159,
    "payload": {
      "responseCode": "REPDEL0000",
      "responseMessage": "Report Id 12 deleted successfully.",
      "timeStamp": "1709711016152"
    },
    "collectionId": "7",
    "eventType": "reportservice/report/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_REPORTING_ADMIN"
    ],
    "channel": "CSR"
  }
}

DeleteReportProperty

Event Type: reportservice/reportproperty/delete


{
  "version": "0",
  "id": "627d39f5-0a4f-b528-6cad-f4d176e0bb37",
  "detail-type": "reportservice/reportproperty/delete",
  "source": "reportservice",
  "account": "277827593990",
  "time": "2024-03-06T07:42:19Z",
  "region": "us-east-1",
  "resources": [
    
  ],
  "detail": {
    "id": "9",
    "timestamp": 1709710939849,
    "payload": {
      "code": "PROP_DELETED",
      "report": {
        "id": 9,
        "collectionId": 6,
        "name": "Externalevent",
        "description": "Reports",
        "reportProperties": [
          
        ],
        "reportParams": [
          
        ],
        "processorClassName": "",
        "downloadable": false,
        "createdBy": "1",
        "createdTime": 1709710928000,
        "updatedBy": "1",
        "updatedTime": 1709710928000
      }
    },
    "collectionId": "6",
    "eventType": "reportservice/reportproperty/delete",
    "userId": "1",
    "actOnBehalfOfUser": 0,
    "roles": [
      "ROLE_REPORTING_ADMIN"
    ],
    "channel": "CSR"
  }
}

 

Internal Events via RabbitMQ/AWS MQ

The following events communicate with the internal microservices.

List of Events

SL.#NAMEDESCRIPTIONPUBLISH LOCATIONROUTING KEYDURABILITYPAYLOAD TYPE
1Report CreatedThis event will be generated when a report is createdTopic: ReportMsgTopicreport.createdfalseReportPayload
2Report UpdatedThis event will be generated when a report is updatedTopic: ReportMsgTopicreport.updatedfalseReportPayload

Payload Model

ReportPayload

PROPERTYTYPEDESCRIPTIONEXAMPLE
namestringIndicates the name of the report.REPORT_CREATED/REPORT_UPDATED
report.reportIdlongIndicates the ID of the report, which is created or updated.123
report.namestringIndicates the name of the report.totalsale
report.descriptionstringIndicates the description of the report.Total sale report
report.processorClassNamestringIndicates the class name of the custom report processor.ReportClassName
report.downloadablebooleanIndicates whether the report is exportable type or not.TRUE



Revision History
2024-05-24 | SW – Added external event details for release 8.17.4
2019-05-17 | AN – Updated to a new table tool.
2019-04-11 | MA – Page created and content uploaded.