wso2 / carbon-device-mgt

Apache License 2.0
53 stars 113 forks source link

Implemented operation response publishing to analytics #1169

Closed charithag closed 6 years ago

charithag commented 6 years ago

Purpose

This improvement done to publish operation responses to Analytics. This improvement used added config in PR https://github.com/wso2/carbon-device-mgt/pull/1163 to determine required operation responses that needed to be published to analytics.

Goals

Publish responses of specified operations to analytics.

Approach

Intercept operation update method in the device management core and publish operation response as event to the analytics. Implement event receiver and corresponding event stream in analytics to receive events from IoT core.

User stories

User can enable PublishOperationResponse via cdm-config.xml and IoT core will publish operation response events to Analytics. Optionally user can specify required operation responses to be published or select all operation responses to be published.

Release note

Added capability to publish configurable set of operation responses to Analytics from IoT core.

Documentation

https://docs.wso2.com/display/IOTS320/Publishing+Operation+response+to+Analytics

Training

N/A

Certification

N/A

Marketing

N/A

Automation tests

Security checks

Samples

N/A

Related PRs

Migrations (if applicable)

N/A

Test environment

Fedora 23 Linux 4.8.13-100.fc23.x86_64, Oracle JDK 1.8.0_91-b14, H2

Learning

N/A