Skip to main content

Data Publishing

The Data Publishing feature gathers and monitors data in regard to the APIs invoked through WSO2 Open Banking. WSO2 Open Banking Business Intelligence Toolkit captures the data through Identity Server and API Manager servers and process them. You can summarize data in a way that banks can generate reports and summaries according to your open banking requirements. See the following diagram to understand how WSO2 Open Banking has implemented data publishing. data-publishing-overview

WSO2 Open Banking Business Intelligence accelerates the data publishing functions on top of the base product, WSO2 Streaming Integrator and captures the following types of data from WSO2 Open Banking Identity Server and WSO2 Open Banking API Management instances.

  • Performance and availability: Understands and monitors the availability and performance of the supported APIs.
  • Adoption: Identifies the effectiveness of how a bank adopted open banking to their legacy systems.
  • Data: The efficacy of the open banking standards as a part of ongoing standards management activity.

WSO2 Open Banking Identity Server and WSO2 Open Banking API Manager send the captured data to WSO2 Open Banking Business Intelligence. Thrift is the standard protocol for data publishing although WSO2 Open Banking Business Intelligence supports other protocols such as HTTP, gRPC, or any other data publishing protocol.

WSO2 Streaming Integrator stores the published data in a database so that you can create a Siddhi Application to summarize the data. Let’s see the common data elements that WSO2 Open Banking Identity Server publishes to WSO2 Open Banking Business Intelligence:

Publishable DataDescriptionExample
timestamp : longThe timestamp parameter of the publishing function.1613327314
authenticationApproach: stringApproach used for the authentication.redirect
userId: stringID of the user[email protected] / [email protected]
authenticationStatus: stringAuthentication status.AuthenticationSuccessful, AuthenticationFailed, AuthenticationAttempted
authenticationStep : stringThe type of authentication step as enabled in the WSO2 Identity Server Management Console.identifier-first authentication

Following are the data elements that WSO2 API Manager publishes to WSO2 Open Banking Business Intelligence:

Publishable DataDescriptionExample
http_method : stringThe HTTP method to use during the endpoint invocation./POST
userAgent : stringClient device of the user.curl/7.68.0
electedResource : stringAPI endpoint./account-access-consents
apiName : stringAPI name of the elected resource.AccountAndTransactionAPI
apiSpecVersion : stringVersion of the API.v1
clientId : stringClient identifier of the application3nzwb1VuaUISzujNe6QjDxlgnCka
consentId : stringIdentifier for a consent initiation request.ffd2e946-acd0-49c9-9d45-d5983781f4b5
consumerId: stringThe email of the TPP[email protected]
timestamp : longThe timestamp parameter of the publishing function.1560832453
statusCode : intStatus code of the consent.200
messageId : stringThe status message responded to the status code.Ok
responsePayloadSize : longSize of the response payload.76
requestTimestamp: stringTime when the request is made.2021-04-02T06:19:07.146Z
backendLatency: longLatency of the backend.923
requestMediationLatency: longThe time taken for the request mediation. (backendStartTime - requestInTime2594
responseLatency: longThe time duration between the request is sent and the response is received.3659
responseMediationLatency: longThe time taken for the response mediation. (responseMediationTime - backendTime)142

Data Summarization​

You can write a summarization script for the data stored using Siddhi Applications. For more information, see the WSO2 Streaming Integrator documentation on Summarizing Data.

Was this page helpful?