From 5fa38eb62797b98e904221bdc41c12aff4712b82 Mon Sep 17 00:00:00 2001 From: Shreya-egov Date: Thu, 14 Dec 2023 18:11:09 +0530 Subject: [PATCH] SM-3522 --- .../dashboard-analytics/ChartApiConfig.json | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json index 2c487b5fd..23ad92b63 100644 --- a/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json +++ b/sanitation/egov-dss-dashboard/dashboard-analytics/ChartApiConfig.json @@ -26495,7 +26495,7 @@ { "module": "PQM", "indexName": "pqm-anomaly-finder", - "aggrQuery": "{\"size\":0,\"aggs\":{\"anomaly_types\":{\"terms\":{\"field\":\"Data.pqmAnomalys.anomalyType.keyword\",\"size\":3}}}}", + "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[{\"term\":{\"Data.tenantId.keyword\":\"pg.testing\"}}]}},\"aggs\":{\"Anomaly_type_lab_results\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"LAB_RESULTS_NOT_AS_PER_BENCHMARK\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"Anomaly_type_test_result_not_submitted\":{\"filter\":{\"bool\":{\"must\":[{\"terms\":{\"Data.pqmAnomalys.anomalyType.keyword\":[\"TEST_RESULT_NOT_SUBMITTED\"]}}]}},\"aggs\":{\"Count\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}},\"TotalAlerts\":{\"value_count\":{\"field\":\"Data.pqmAnomalys.id.keyword\"}}}}}}", "requestQueryMap": "{\"tenantId\" : \"Data.pqmAnomalys.tenantId\"}", "dateRefField": "Data.pqmAnomalys.@timestamp" } @@ -26551,10 +26551,14 @@ "computedFields": [], "isRoundOff": true, "aggregationPaths": [ + "Anomaly_type_test_result_not_submitted", "Anomaly_type_lab_results", "TotalAlerts" ], "pathDataTypeMapping": [ + { + "Anomaly_type_test_result_not_submitted": "number" + }, { "Anomaly_type_lab_results": "number" },