PQM Anomaly Finder

Overview

The Process Quality Management (PQM) anomaly finder service helps in monitoring anomalies in process quality and notifies the concerned user groups.

Dependencies

List of services that PQM service depends on:

  • User-Event Service

User-event service api will get the notification for the anomaly .

Deploy the latest build if the service is not there in the environment “egov-user-event-db:v1.2.0-32caf0d992-25” .

Add the changes which are required . For this kindly refer the below pr.

Path :- deploy-as-code/helm/charts/core-services/egov-user-event/Chart.yaml

File :- Refer the pr for the changes

Mdms changes for user-event in mdms and then restart mdms-service.

Path: data/pg/ACCESSCONTROL-ACTIONS-TEST/actions-test.json

https://github.com/egovernments/egov-mdms-data/commit/a1a9dc388b490b210998783578707f6f17dd7c43

Path: data/pg/ACCESSCONTROL-ROLEACTIONS/roleactions.json

https://github.com/egovernments/egov-mdms-data/commit/119f037c96cf13e99937593fc28f252b7f56bdf9

Alert notification format needs to add in localization.

{
  "code": "CREATE_NOTIFICATION",
 "message": "Lab results submitted for plant {Plant Name} for {Output} of {Stage} stage entered   on {Test Submitted Date} is not as per benchmarks.",
"module": "rainmaker-pqm",
"locale": "en_IN"
}
  • Persister

Add below file in the given path and then restart persister service in the respective environment.

Path :- egov-persister/pqm-anomaly-finder-persister.yaml

Persister file link

  • Indexer

Add below file in the given path and then restart indexer service in the respective environment.

Path :- egov-indexer/pqm-anomaly-finder-indexer.yml

Indexer file link

Master Data Types

The following masters need to be created as part of this module:

  • Plant

  • PlantConfig

API Specifications

collection

API Specification

PQM Anomaly Swagger Link

Devops setups for new environment

Add the file which is given below pr in the given path and then start deployment

Path :- deploy-as-code/helm/charts/sanitation/pqm-anomaly-finder

https://github.com/egovernments/DIGIT-DevOps/tree/unified-env/deploy-as-code/helm/charts/sanitation/pqm-anomaly-finder

https://github.com/egovernments/DIGIT-DevOps/blob/unified-env/deploy-as-code/helm/environments/sanitation.yaml#L140C1-L141C1

https://github.com/egovernments/DIGIT-DevOps/blob/unified-env/deploy-as-code/helm/environments/sanitation.yaml#L230C1-L234C26

Path :- build/build-config.yml

https://github.com/egovernments/SANITATION/commit/576b1bb9531a2080e039d17af9d3c6a6c63d76e7

Pqm-Anomaly-Reindexing

For re-indexing refer this link

Kafka Topic Details

Event (In-App) Notification

persist-user-events-async

Anomaly topic for when a test fails

save-pqm-test-anomaly-details

Anomaly topic for when test result not submitted

testResultNotSubmitted-anomaly-topic

Save anomaly topic

create-pqm-anomaly-finder

ER Diagram

Sequence Diagram

Find Anomaly

Last updated

All content on this page by eGov Foundation is licensed under a Creative Commons Attribution 4.0 International License.

Change request #103: Taniya's Nov 8 changes