Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Analytics Configurations:
Analytics contains multiple configurations. we need to add the changes related to National-Dashboard in this dashboard-analytics.
Here is the location : https://github.com/egovernments/configs/tree/qa/egov-dss-dashboards/dashboard-analytics
Below is a list of configurations that need to be changed to run National-Dashboard successfully.

  1. Chart API Configuration

  2. Master Dashboard Configuration

  3. Role Dashboard Mappings Configuration

Description :

Chart API Configuration : 

...

Code Block
"_comment" : "NSS-OVERVIEW",
    
	"todaysCollectionOverview": {
    "chartName": "NATIONAL_DSS_TODAYS_COLLECTION",
    "queries": [
      {
        "module": "PT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"range\":{\"date\":{\"gt\":\"now-20d/d\",\"lte\":\"now\"}}}]}},\"aggs\":{\"latesttodaysDate\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}},\"lastmodifiedbylastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"mustaggs\":[{\"rangetodaysDate\":{\"dateterms\":{\"gtfield\":\"now-1d\/d\",\"ltedate\",\"order\":{\"_term\":\"nowdesc\"}}}]},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}"
      },
       {
        "module": "W&S",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"mustaggs\":[{\"rangetodaysDate\":{\"dateterms\":{\"gtfield\":\"now-1d\/d\",\"ltedate\",\"order\":{\"_term\":\"nowdesc\"}}}]},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}",,\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"mustaggs\":[{\"rangetodaysDate\":{\"dateterms\":{\"gtfield\":\"date\"now-1d\/d,\"order\",:{\"lte_term\":\"nowdesc\"}}}]}},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"mustaggs\":[{\"rangetodaysDate\":{\"dateterms\":{\"gtfield\":\"date\"now-1d\/d,\"order\",:{\"lte_term\":\"nowdesc\"}}}]}},\"aggssize\":{1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"mustaggs\":[{\"rangetodaysDate\":{\"dateterms\":{\"gtfield\":\"date\"now-1d\/d,\"order\",:{\"lte_term\":\"nowdesc\"}}}]}},\"size\":1},\"aggs\":{\"Todays Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}},\"lastUpdatedTime\":{\"terms\":{\"field\":\"lastModifiedTime\",\"order\":{\"_term\":\"desc\"},\"size\":1}}}}}}"
      }
    ],
    "chartType": "metric",
    "valueType": "Amount",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "",
    "TodaysCollection":true,
    "aggregationPaths": [
      "Todays Collection"
    ],
    "insight": {
      "chartResponseMap" : "todaysCollectionOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    },
    "_comment": " "
  },
  
	"totalCollectionOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_COLLECTION",
    "queries": [
      {
        "module": "PT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      },
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "W&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}"
    }
      
    ],
    "chartType": "metric",
    "valueType": "Amount",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "",
    "aggregationPaths": [
      "Total Collection"
    ],
    "insight": {
      "chartResponseMap" : "totalCollectionOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year"
 ,
  },     "_commentisRoundOff": " "
  true
    },
    "_comment": " "
  },
  
  	"targetCollectionvOverview": {
    "chartName": "NATIONAL_DSS_TARGET_COLLECTION",
    "queries": [
      {
        "module": "MASTER",
        "requestQueryMap": "{\"module\" : \"module.keyword\", \"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "master-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Target Collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}"
      }
    ],
    "chartType": "metric",
    "valueType": "amount",
    "action": "",
    "drillChart": "none",
    "documentType": "_doc",
    "aggregationPaths": [
      "Target Collection"
    ],
    "isDayUnit": true,
    "postAggregationTheory" : "repsonseToDifferenceOfDates",
    "insight": {
      "chartResponseMap" : "targetCollectionvOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    },
    "_comment": " "
  },
  	
  	"targetAchievedOverview": {
    "chartName": "NATIONAL_DSS_TARGET_ACHIEVED",
    "queries": [
      {
        "module": "MASTER",
        "requestQueryMap": "{\"state\" : \"state.keyword\", \"module\" : \"module.keyword\", \"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "master-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Actual collection\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}"
      },
      {
        "module": "PT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}"
      },
	      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      },
      {
  },       {"module": "OBPS",
        "moduledateRefField": "WSdate",
        "requestQueryMap": "{\"modulestate\" : \"modulestate.keyword\", \"ulb\" : \"ulb.keyword\",\"state\" : \"state.keyword\"}",
        "dateRefFieldindexName": "date",
        "indexName": "wsobps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelTypetodaysCollectionForPaymentMode\"}}}}}}"
      },
      
{
   ],     "chartTypemodule": "metricFIRENOC",
        "valueTypedateRefField": "percentagedate",
        "drillChartrequestQueryMap": "none{\"state\",     "documentType": "_doc: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "actionindexName": "percentagefirenoc-national-dashboard",
    "aggregationPaths": [       "Total Collection","aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      "Actual},
collection"     ], {
   "insight": {       "chartResponseMapmodule" : "targetAchievedOverviewMC",
        "actiondateRefField" : "differenceOfNumbersdate",
        "upwardIndicatorrequestQueryMap" : "positive{\"state\",       "downwardIndicator: \"state.keyword\",\"ulb\" : "negative\"ulb.keyword\"}",
        "textMessageindexName" : "$indicator$value% than last $insightInterval","mcollect-national-dashboard",
        "aggrQuery": "colorCode{\"aggs\" : {\"#228B22",
      "insightInterval" : "year"
    },
    "_comment": " "
  },
  	
 	"cumulativeCollectionOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION",
    "queries": [AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "PTW&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"stateulb\" : \"stateulb.keyword\",\"ulbward\" : \"ulbward.keyword\"}",
        "indexName": "ptws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"CollectionsTotal Collection\":{\"date_histogramsum\":{\"field\":\"datetodaysCollectionForPaymentChannelType\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}}}"
      },
      {
   }}}}}}"
    }     

    ],
    "chartType": "metric",
    "valueType": "percentage",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "percentage",
    "preActionTheory":{
      "Actual collection":"repsonseToDifferenceOfDates"
    },
    "moduleisRoundOff": "TL",
true,
    "aggregationPaths": [
      "Total "dateRefField": "date",Collection",
      "Actual collection"
    ],
    "requestQueryMapinsight": "{\"state\{
      "chartResponseMap" : \"state.keyword\targetAchievedOverview",\"ulb\
      "action" : \"ulb.keyword\"}"differenceOfNumbers",
        "indexNameupwardIndicator" : "tl-national-dashboardpositive",
      "downwardIndicator" : "aggrQuery":negative",
      "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}"
      },textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    },
    "_comment": " "
  },
  	
 	"cumulativeCollectionOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION",
    "queries": [
       {
        "module": "WSPT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",\"ward\"
: \"ward.keyword\"}",
        "indexName": "wspt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForConnectionTypetodaysCollectionForUsageCategory\"}}}}}}}}}}"
      },
      {
        "module": "OBPSTL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "obpstl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentModetodaysCollectionForTradeType\"}}}}}}}}"
      },
      {
        "module": "FIRENOCWS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "firenocws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Water\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentModetodaysCollectionForConnectionType\"}}}}}}}}}}"
      },
      {
        "module": "MCOBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "mcollectobps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}}}"
      },
    ],  {
  "chartType": "line",     "valueTypemodule": "amountFIRENOC",
        "actiondateRefField": "date",
        "drillChartrequestQueryMap": "{\"nonestate\",     "documentType": "_doc: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
    "aggregationPaths": [       "Collections"
"indexName": "firenoc-national-dashboard",
   ],     "isCumulativeaggrQuery": true,
    "interval": "month",
    "insight": {
    },
    "_comment": " "
  },
 	
 	"topPerformingStatesOverview": {
    "chartName": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
    "queries": ["{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Collections\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}}}"
      },
      {
        "module": "MASTERMC",
        "requestQueryMapdateRefField": "{\"state\" : \"state.keyword\", \"moduledate",
        "requestQueryMap": "{\"state\" : \"modulestate.keyword\", \"ulb\" : \"ulb.keyword\"}",
        "dateRefFieldindexName": "datemcollect-national-dashboard",
        "indexName": "master-national-dashboard",
        "aggrQueryaggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Target CollectionCollections\":{\"termsdate_histogram\":{\"field\":\"state.keyworddate\",\"sizeinterval\":\"200\",\"order\":{\"Sum\":\"desc\"}}intervalvalue\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporationtodaysCollectionForPaymentMode\"}}}}}}}}"
      },
    ],
 {   "chartType": "line",
    "modulevalueType": "PTamount",
    "action": "",
    "requestQueryMapdrillChart": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
   "none",
    "documentType": "_doc",
    "aggregationPaths": [
      "Collections"
    ],
    "dateRefFieldisCumulative": "date"true,
    "interval": "month",
    "indexNameinsight": "pt-national-dashboard",{
    },
    "aggrQuery_comment": "{\"aggs\":{\"AGGR\":{\"filter\":{\" "
  },
 	
 	"topPerformingStatesOverview": {
    "chartName": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
    "queries": [
      {
        "module": "MASTER",
        "requestQueryMap": "{\"state\" : \"state.keyword\", \"module\" : \"module.keyword\", \"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "master-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"TotalTarget Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategorybudgetProposedForMunicipalCorporation\"}}}}}}}}"
      },
      {
        "module": "TLPT",
        "dateRefFieldrequestQueryMap": "date",
        "requestQueryMap": "{\"{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "tlpt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeTypetodaysCollectionForUsageCategory\"}}}}}}}}"
      },
       {
        "module": "TL",
"WS        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "wstl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelTypetodaysCollectionForTradeType\"}}}}}}}}"
      },
    ],   {
        "chartTypemodule": "performWS",
        "valueTyperequestQueryMap": "{\"percentagestate\",     "drillChart": "none",: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "documentTypedateRefField": "_docdate",
        "actionindexName": "percentagews-national-dashboard",
     "plotLabel   "aggrQuery": "DSS_TARGET_ACHIEVED",
    "order": "desc","{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"desc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}}}"
    "limit": 3, }
   "aggregationPaths": [ ],
    "chartType":  "Total Collectionperform","Target
Collection"     ]"valueType": "percentage",
    "insightdrillChart": {"none",
    }"documentType": "_doc",
    "_commentaction": "percentage",
    "plotLabel": "DSS_TARGET_ACHIEVED",
    "order": "desc",
    "limit": 3,
    "isRoundOff": true,
    "aggregationPaths": [
      "Total Collection","Target Collection"
    ],
    "insight": {
    },
    "_comment": " Top Performing States for target achieved"
  },
   
   	"bottomPerformingStatesOverview": {
    "chartName": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
    "queries": [
       {
        "module": "MASTER",
        "requestQueryMap": "{\"state\" : \"state.keyword\", \"module\" : \"module.keyword\", \"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "master-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"Target Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"budgetProposedForMunicipalCorporation\"}}}}}}"
      },
      {
        "module": "PT",
       "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}}}"
      },
      {
        "module": "WS",
       "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Collection\":{\"terms\":{\"field\":\"state.keyword\",\"size\":\"200\",\"order\":{\"Sum\":\"asc\"}},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}}}"
      }
    ],
    "chartType": "perform",
    "valueType": "percentage",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "percentage",
    "plotLabel": "DSS_TARGET_ACHIEVED",
    "order": "asc",
    "limit": 3,
    "isRoundOff": true,
    "aggregationPaths": [
      "Total Collection", "Target Collection"
    ],
    "insight": {
    },
    "_comment": " Bottom Performing States for target achieved"
  },
  
   	"totalCollectionServiceWiseOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION_SERVICE_WISE",
    "queries": [
      {
        "module": "PT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"PT\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"TL\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      },
      {
        "module": "W&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"WS\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}"
      },
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"OBPS\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"FNOC\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"MCOLLECT\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      }
      
    ],
    "chartType": "pie",
    "valueType": "Amount",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "",
    "aggregationPaths": [
      "PT",
      "TL",
      "WS",
      "OBPS",
      "FNOC",
      "MCOLLECT"
    ],
    "insight": {
    },
    "_comment": " "
  },
 	
 	"totalApplicationsOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_APPLICATIONS",
    "queries": [
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysApplicationsulb.keyword\"}}}},\"aggs\":{\"Total ApplicationsintermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\",\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"sum_bucket\":{\"fieldbuckets_path\":\"todaysApplicationsForApplicationTypestate.stateApplications\"}}}}}}"
      },
      {
        "module": "PTFIRENOC",
        "indexNamedateRefField": "pt-national-dashboarddate",
        "aggrQueryrequestQueryMap": "{\"aggsstate\" :{ \"AGGRstate.keyword\":{,\"filterulb\" :{ \"boolulb.keyword\":{}},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"avgbool\":{}},\"fieldaggs\":\"todaysTotalApplications{\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_pathfield\":\"intermediateAggr.applicationstodaysApplicationsForApplicationType\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField":
"date"       },
      {
        "module": "OBPSPT",
        "indexName": "obpspt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"totalappsstate\":{\"filtersterms\":{\"filtersfield\":{\"allstate.keyword\":{},\"match_allaggs\":{}}}},\"aggsintermediateAggrULB\":{\"intermediateAggr\":{\"terms\":{\"field\":\"dateulb.keyword\"},\"aggs\":{\"ocSubmittedintermediateAggrWard\":{\"avgterms\":{\"field\":\"ocSubmittedward.keyword\"}}}},\"Total OC Submitted,\"aggs\":{\"days\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggr.ocSubmitteddate\"}},\"intermediateAggr1aggs\":{\"termsapplications\":{\"fieldavg\":{\"datefield\"},:\"aggstodaysTotalApplications\":{}}}},\"applicationsSubmittedwardapplications\":{\"avgsum_bucket\":{\"fieldbuckets_path\":\"applicationsSubmitteddays.applications\"}}}},\"Total Applications SubmittedulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1intermediateAggrWard.applicationsSubmittedwardapplications\"}}}},\"Total ApplicationsstateApplications\":{\"sum_bucket_script\":{\"buckets_path\":{\"attintermediateAggrULB.ulbApplications\":}}}},\"Total Applications Submitted\",:{\"comsum_bucket\":{\"Total OC Submittedbuckets_path\"},\"script\":\"params.att + params.comstate.stateApplications\"}}}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "W&SOBPS",
        "indexName": "wsobps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysTotalApplicationsulb.keyword\"}}}},\"Total Applicationsaggs\":{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      }
    ],
    "chartType": "metric",
    "valueType": "number",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "",
    "aggregationPaths": [
      "Total Applications"
    ],
    "insight": {
      "chartResponseMap" : "totalApplicationsOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year"
    }
  },\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocSubmitted\":{\"avg\":{\"field\":\"ocSubmitted\"}}}},\"Total OC Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmitted\":{\"avg\":{\"field\":\"applicationsSubmitted\"}}}},\"Total Applications Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.applicationsSubmitted\"}},\"ward Total Applications\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total Applications Submitted\",\"com\":\"Total OC Submitted\"},\"script\":\"params.att + params.com\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.ward Total Applications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "closedApplicationOverviewrequestQueryMap": "{\"state\"     "chartName": "NATIONAL_DSS_CLOSED_APPLICATION: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "queriesdateRefField": ["date"
      },
      {
        "module": "PTW&S",
        "indexName": "ptws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysClosedApplicationsulb.keyword\"}}}},\"Applications Closedaggs\":{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}}}}",
        "requestQueryMap": ",\"aggs\":{\"statedays\" : {\"state.keywordterms\",:{\"ulbfield\" : \"ulb.keyworddate\"}",
        "dateRefField": "date"
      },
      {
        "module": "W&S",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs,\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"wardapplications\":{\"AGGRsum_bucket\":{\"filterbuckets_path\":{\"booldays.applications\":{}}}},\"aggsulbApplications\":{\"intermediateAggrsum_bucket\":{\"termsbuckets_path\":{\"fieldintermediateAggrWard.wardapplications\":\"date\"}}}},\"aggsstateApplications\":{\"applicationssum_bucket\":{\"avgbuckets_path\":{\"fieldintermediateAggrULB.ulbApplications\":\"todaysClosedApplications\"}}}},\"Total Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrstate.applicationsstateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
    ],
 {   "chartType": "metric",
    "modulevalueType": "OBPSnumber",
    "drillChart": "none",
    "indexNamedocumentType": "obps-national-dashboard_doc",
    "action": "",
    "aggrQueryaggregationPaths": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"totalapps\":{\"filters\":{\"filters\":{\"all\":{\"match_all\":{}}}},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocSubmitted\":{\"avg\":{\"field\":\"todaysClosedApplicationsOC\"}}}},\"Total OC Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1[
      "Total Applications"
    ],
    "insight": {
      "chartResponseMap" : "totalApplicationsOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    }
  },
   
    "closedApplicationOverview": {
    "chartName": "NATIONAL_DSS_CLOSED_APPLICATION",
    "queries": [
      {
        "module": "PT",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsSubmittedintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysClosedApplicationsPermitulb.keyword\"}}}},\"Total Applications Closed,\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysClosedApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1days.applicationsSubmittedapplications\"}}}},\"Applications ClosedulbApplications\":{\"sum_bucket_script\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"attsum_bucket\":{\"Total OC Closedbuckets_path\",:\"comintermediateAggrULB.ulbApplications\":}}}},\"Total Applications Closed\"},\"script:{\"sum_bucket\":{\"buckets_path\":\"params.att + params.comstate.stateApplications\"}}}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "FIRENOCW&S",
        "dateRefFieldindexName": "datews-national-dashboard",
        "requestQueryMapaggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\" : {\"state.keywordterms\",:{\"ulbfield\" : \"ulbstate.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{,\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"AGGRintermediateAggrWard\":{\"filterterms\":{\"boolfield\":{}}\"ward.keyword\"},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysClosedApplications\"}}}},\"Applications Closedwardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "OBPS",
        "indexName": "tlobps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysLicenseIssuedWithinSLAulb.keyword\"}}}},\"aggs\"Applications Closed:{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}}}}"
      }
    ],
    "chartType": "metric",
    "valueType": "number",
    "action": "",
    "documentType": "_doc",
    "drillChart": "none",
    "aggregationPaths": [
      "Applications Closed"
    ],
    "insight": {
      "chartResponseMap" : "closedApplicationOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year"
    },
    "_comment": ""
  },
  
  	"slaAchievedOverview": {
    "chartName": "NATIONAL_DSS_SLA_ACHIEVED",
    "queries": [
      {
        "module": "COMMON",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "common-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}}]}},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"slaAchievement\":{\"avg\":{\"field\":\"slaAchievement\"}}}},\"slaAchievement\":{\"avg_bucket\":{\"buckets_path\":\"latest.slaAchievement\"}}}}}}"
      }
    ],
    "chartType": "metric",
    "valueType": "percentage",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "percentage",
    "aggregationPaths": [
      "slaAchievement"
    ],
    "insight": {
      "chartResponseMap" : "slaAchievedOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive,\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocSubmitted\":{\"avg\":{\"field\":\"todaysClosedApplicationsOC\"}}}},\"Total OC Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmitted\":{\"avg\":{\"field\":\"todaysClosedApplicationsPermit\"}}}},\"Total Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.applicationsSubmitted\"}},\"Applications Closed\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total OC Closed\",\"com\":\"Total Applications Closed\"},\"script\":\"params.att + params.com\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.Applications Closed\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "downwardIndicatoraggrQuery" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year"
    },
    "_comment": " SLA Achieved Percentage "
  },
    
   	"citizenRegisteredOverview": {
    "chartName": "NATIONAL_DSS_CITIZEN_REGISTERED",
    "queries": [
      {
        "module": "COMMON",
        "indexName": "common-national-dashboard",
        "aggrQuery": "{\"aggs{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"AGGRfield\":{\"filterulb.keyword\":{},\"boolaggs\":{\"mustintermediateAggrWard\":[{\"termterms\":{\"status.keywordfield\":\"Liveward.keyword\"}}]}},\"aggs\":{\"latestdays\":{\"terms\":{\"field\":\"date\"},\"orderaggs\":{\"_termapplications\":{\"descavg\"},:{\"sizefield\":1},\"aggstodaysClosedApplications\":{}}}},\"totalCitizensCountwardapplications\":{\"avgsum_bucket\":{\"fieldbuckets_path\":\"totalCitizensCountdays.applications\"}}}},\"Citizen RegisteredulbApplications\":{\"avgsum_bucket\":{\"buckets_path\":\"latestintermediateAggrWard.totalCitizensCountwardapplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",,\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}"
      },
 "dateRefField": "date"       }
{
   ],     "chartTypemodule": "metricTL",
        "valueTypedateRefField": "numberdate",
        "actionrequestQueryMap": "{\",state\"     "documentType": "_doc: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
    "drillChart": "none",
      "aggregationPathsindexName": [
      "Citizen Registered""tl-national-dashboard",
    ],     "insightaggrQuery": {
      "chartResponseMap" : "citizenRegisteredOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year"
    },
    "_comment": " totalApplication is the chartId"
  },

 	"totalApplication&ClosedApplicationOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_APPLICATION_&_CLOSED_APPLICATION",
    "queries": [
      {
        "module": "PT",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}}"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"Total Applicationdays\":{\"date_histogramterms\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggrapplications\":{\"termsavg\":{\"field\":\"datetodaysLicenseIssuedWithinSLA\"}}}},\"aggswardapplications\":{\"applicationssum_bucket\":{\"avgbuckets_path\":{\"fielddays.applications\":\"todaysTotalApplications\"}}}}},\"Total ApplicationsulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrintermediateAggrWard.applicationswardapplications\"}}}},\"Closed ApplicationstateApplications\":{\"datesum_histogrambucket\":{\"fieldbuckets_path\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysClosedApplications\"}}}},\"Total ApplicationsintermediateAggrULB.ulbApplications\"}}}},\"Applications Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrstate.applicationsstateApplications\"}}}}}}}}","
      }
    ],
    "requestQueryMapchartType": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}metric",
    "valueType": "number",
    "action": "",
    "documentType": "_doc",
    "dateRefFielddrillChart": "datenone",
    "aggregationPaths": [
},      "Applications Closed"
{    ],
    "moduleinsight": "TL",
 {
      "chartResponseMap" : "closedApplicationOverview",
      "dateRefFieldaction" : "datedifferenceOfNumbers",
      "upwardIndicator" : "requestQueryMap": "{\"state\positive",
      "downwardIndicator" : \"state.keyword\negative",\"ulb\
      "textMessage" : \"ulb.keyword\"}""$indicator$value% than last $insightInterval",
        "indexNamecolorCode" : "tl-national-dashboard#228B22",
        "aggrQueryinsightInterval" : "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.applications\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"year",
      "isRoundOff": true
    },
    "_comment": ""
  },
  
  	"slaAchievedOverview": {
    "chartName": "NATIONAL_DSS_SLA_ACHIEVED",
    "queries": [
      {
        "module": "COMMON",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "common-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}}]}},\"aggs\":{\"latest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"applicationsslaAchieve\":{\"avg\":{\"field\":\"todaysLicenseIssuedWithinSLAslaAchievement\"}}}},\"Total ApplicationsslaAchievement\":{\"sumavg_bucket\":{\"buckets_path\":\"intermediateAggrlatest.applicationsslaAchieve\"}}}}}}}}"
      },
    ],
 {      "chartType": "metric",
    "modulevalueType": "W&Spercentage",
    "drillChart": "none",
    "indexNamedocumentType": "ws-national-dashboard_doc",
        "aggrQueryaction": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.applications\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"}percentage",
    "isRoundOff": true,		
    "aggregationPaths": [
      "slaAchievement"
    ],
    "insight": {
      "chartResponseMap" : "slaAchievedOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    },
    "_comment": " SLA Achieved Percentage "
  },
    
   	"citizenRegisteredOverview": {
    "chartName": "NATIONAL_DSS_CITIZEN_REGISTERED",
    "queries": [
      {
        "module": "COMMON",
        "indexName": "common-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must\":[{\"term\":{\"status.keyword\":\"Live\"}}]}},\"aggs\":{\"intermediateAggrlatest\":{\"terms\":{\"field\":\"date\",\"order\":{\"_term\":\"desc\"},\"size\":1},\"aggs\":{\"applicationstotalCitizensCount\":{\"avg\":{\"field\":\"todaysClosedApplicationstotalCitizensCount\"}}}},\"TotalCitizen ApplicationsRegistered\":{\"sumavg_bucket\":{\"buckets_path\":\"intermediateAggrlatest.applicationstotalCitizensCount\"}}}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
    ],
 {   "chartType": "metric",
    "modulevalueType": "OBPSnumber",
    "action": "",
    "indexNamedocumentType": "obps-national-dashboard_doc",
    "drillChart": "none",
    "aggrQueryaggregationPaths": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocSubmitted\":{\"avg\":{\"field\":\"ocSubmitted\"}}}},\"Total OC Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1\":{\"terms[
      "Citizen Registered"
    ],
    "insight": {
      "chartResponseMap" : "citizenRegisteredOverview",
      "action" : "differenceOfNumbers",
      "upwardIndicator" : "positive",
      "downwardIndicator" : "negative",
      "textMessage" : "$indicator$value% than last $insightInterval",
      "colorCode" : "#228B22",
      "insightInterval" : "year",
      "isRoundOff": true
    },
    "_comment": " totalApplication is the chartId"
  },

 	"totalApplication&ClosedApplicationOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_APPLICATION_&_CLOSED_APPLICATION",
    "queries": [
      {
        "module": "PT",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"applicationsSubmittedstate\":{\"avgterms\":{\"field\":\"applicationsSubmittedstate.keyword\"}}}},\"aggs\"Total Applications Submitted:{\"intermediateAggrULB\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggr1ulb.applicationsSubmittedkeyword\"}},\"Total Applicationsaggs\":{\"bucket_scriptintermediateAggrWard\":{\"buckets_pathterms\":{\"attfield\":\"Total Applications Submittedward.keyword\"},\"comaggs\":{\"days\"Total OC Submitted:{\"terms\"},:{\"scriptfield\":\"params.att + params.comdate\"}}}},\"Closed Application,\"aggs\":{\"applications\":{\"date_histogramavg\":{\"field\":\"datetodaysTotalApplications\"}}}},\"intervalwardapplications\":{\"intervalvaluesum_bucket\"},:{\"aggsbuckets_path\":{\"days.applications\"}}}},\"intermediateAggrulbApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"dateintermediateAggrWard.wardapplications\"}}}},\"aggsstateApplications\":{\"ocSubmittedsum_bucket\":{\"avgbuckets_path\":{\"field\":\"todaysClosedApplicationsOCintermediateAggrULB.ulbApplications\"}}}},\"Total OC ClosedallApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrstate.ocSubmittedstateApplications\"}}}},\"intermediateAggr1Closed Application\":{\"termsdate_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"applicationsSubmittedstate\":{\"avgterms\":{\"field\":\"todaysClosedApplicationsPermitstate.keyword\"}}}},\"Total Applications Closed,\"aggs\":{\"intermediateAggrULB\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggr1ulb.applicationsSubmittedkeyword\"}},\"Applications Closedaggs\":{\"bucket_scriptintermediateAggrWard\":{\"buckets_pathterms\":{\"attfield\":\"Total OC Closedward.keyword\"},\"aggs\":{\"comdays\":{\"Total Applications Closedterms\"},:{\"scriptfield\":\"params.att + params.comdate\"}}}}}}}}",
        "requestQueryMap": ",\"aggs\":{\"stateapplications\" : {\"state.keywordavg\",:{\"ulbfield\" : \"ulb.keywordtodaysClosedApplications\"}",
        "dateRefField": "date"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}}}",
        "aggrQueryrequestQueryMap": "{\"aggsstate\" :{ \"AGGRstate.keyword\":{,\"filterulb\" :{ \"boolulb.keyword\"}":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date,
        "dateRefField": "date"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"intervalulb\" : \"intervalvalueulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"Total ApplicationsAGGR\":{\"sumfilter\":{\"fieldbool\":{}},\"todaysApplicationsForApplicationTypeaggs\"}}}},:{\"ClosedTotal Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysClosedApplicationsulb.keyword\"}}}},\"Applications Closedaggs\":{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}}}}}}"
      }  
    
    ],
    "chartType": "line",
    "valueType": "number",
    "action": "",
    "drillChart": "none",
    "documentType": "_doc",
    "aggregationPaths": [
      "Total Application",
      "Closed Application"
    ],
    "isCumulative": false,
    "interval": "month",
    "insight": {
    },
    "_comment": " "
  },
    
  	"topPerformingStatesCompletionRateOverview": {
    "chartName": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_COMPLETION_RATE",
    "queries": [
     {
        "module": "PT",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Completed Within SLAstate\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"sumintermediateAggrULB\":{\"sumterms\":{\"field\":\"assessedPropertiesForUsageCategoryulb.keyword\"}}}},,\"aggs\":{\"TotalintermediateAggrWard\":{\"terms\":{\"field\":\"stateward.keyword\"},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplicationstodaysLicenseIssuedWithinSLA\"}}}},\"Total Applicationswardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}}}}}}"
      },
      {
          "module": "TL",
          "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}}}"
      },
      {
        "dateRefFieldmodule": "dateW&S",

         "indexName": "tlws-national-dashboard",
          "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total IssuedApplication\":{\"termsdate_histogram\":{\"field\":\"date\",\"interval\":\"state.keywordintervalvalue\"},\"aggs\":{\"intermediateAggrstate\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsintermediateAggrULB\":{\"avgterms\":{\"field\":\"todaysLicenseIssuedWithinSLAulb.keyword\"}}}},\"aggs\"Completed Within SLA:{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.applicationskeyword\"}}}},\"Total Licensesaggs\":{\"days\":{\"terms\":{\"field\":\"state.keyworddate\"},\"aggs\":{\"intermediateAggrapplications\":{\"termsavg\":{\"field\":\"datetodaysTotalApplications\"}}}},\"wardapplications\":{\"aggssum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"avgsum_bucket\":{\"fieldbuckets_path\":\"todaysApplicationsintermediateAggrWard.wardapplications\"}}}},\"Total ApplicationsstateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrintermediateAggrULB.applicationsulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}},\"
       },
       {
         "module": "WS",
         "requestQueryMap": "Closed Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"state\" : {\"state.keywordterms\",:{\"ulbfield\" : \"ulbstate.keyword\"}",
         "dateRefField": "date",
         "indexName": "ws-national-dashboard",
         "aggrQuery": "{\"aggs,\"aggs\":{\"intermediateAggrULB\":{\"AGGRterms\":{\"filterfield\":{\"boolulb.keyword\":{}},\"aggs\":{\"CompletedintermediateAggrWard\":{\"terms\":{\"field\":\"stateward.keyword\"},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLAtodaysClosedApplications\"}}}},\"Completed Within SLAwardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}},\"TotalulbApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"stateintermediateAggrWard.keywordwardapplications\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"}}},\"aggsstateApplications\":{\"applicationssum_bucket\":{\"avgbuckets_path\":{\"field\":\"todaysTotalApplicationsintermediateAggrULB.ulbApplications\"}}}},\"Total ApplicationsallApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrstate.applicationsstateApplications\"}}}}}}}}"
      },
      {          "module": "OBPS",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",

        "dateRefField": "date",
      },
      {
        "module": "OBPS",
        "indexName": "obps-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"Completeddate_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocWithinSlaocSubmitted\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLAOCocSubmitted\"}}}},\"Total OC within slaSubmitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocWithinSlaocSubmitted\"}},\"intermediateAggr1\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"permitWithinSlaapplicationsSubmitted\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLAPermitapplicationsSubmitted\"}}}},\"Total PermitApplications within slaSubmitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.permitWithinSlaapplicationsSubmitted\"}},\"Completedward WithinTotal SLAApplications\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total PermitApplications within slaSubmitted\",\"com\":\"Total OC within slaSubmitted\"},\"script\":\"params.att + params.com\"}}}},\"TotalulbApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"state.keywordintermediateAggrWard.ward Total Applications\"}}}},\"aggsstateApplications\":{\"intermediateAggrsum_bucket\":{\"termsbuckets_path\":{\"fieldintermediateAggrULB.ulbApplications\":\"date\"}}}},\"aggsallApplications\":{\"ocSubmittedsum_bucket\":{\"avgbuckets_path\":{\"fieldstate.stateApplications\":\"ocSubmitted\"}}}},\"TotalClosed OC SubmittedApplication\":{\"sumdate_buckethistogram\":{\"buckets_path\"field\":\"date\",\"interval\":\"intermediateAggr.ocSubmittedintervalvalue\"}},\"aggs\"intermediateAggr1:{\"state\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationsSubmittedintermediateAggrULB\":{\"avgterms\":{\"field\":\"applicationsSubmittedulb.keyword\"}}}},\"Total Applications Submitted,\"aggs\":{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggr1ward.applicationsSubmittedkeyword\"}},\"Total Applicationsaggs\":{\"bucket_scriptintermediateAggr\":{\"buckets_pathterms\":{\"attfield\":\"Total Applications Submitteddate\"},\"comaggs\":{\"ocSubmitted\":{\"Total OC Submittedavg\"},:{\"scriptfield\":\"params.att + params.comtodaysClosedApplicationsOC\"}}}}}}}}"
      },
      {
         "module": "FIRENOC",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "firenoc-national-dashboard",
         "aggrQuery": "{\"aggs,\"Total OC Closed\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmitted\":{\"AGGRavg\":{\"filterfield\":{\"booltodaysClosedApplicationsPermit\":{}}}},\"aggs\":{\"Completed Within SLATotal Applications Closed\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"stateintermediateAggr1.keywordapplicationsSubmitted\"}},\"aggsApplications Closed\":{\"intermediateAggrbucket_script\":{\"termsbuckets_path\":{\"fieldatt\":\"dateTotal OC Closed\"},\"aggscom\":{\"applicationsTotal Applications Closed\":{},\"avgscript\":{\"field\":\"todaysCompletedApplicationsWithinSLA\"params.att + params.com\"}}}},\"Completed Within SLAulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrintermediateAggrWard.applicationsApplications Closed\"}}}},\"Total ApplicationsstateApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"stateintermediateAggrULB.keywordulbApplications\"}}}},\"aggsallApplications\":{\"sum_bucket\":{\"sumbuckets_path\":{\"field\":\"todaysApplicationsForApplicationTypestate.stateApplications\"}}}}}}}}",
      }  "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
    ],     "chartTypedateRefField": "performdate",
     "valueType": "percentage" },
    "drillChart": "none", {
   "documentType": "_doc",     "actionmodule": "percentageFIRENOC",
        "plotLabeldateRefField": "DSS_COMPLETION_RATEdate",
        "orderrequestQueryMap": "{\"descstate\", :    "limit": 3,
    "aggregationPaths": [\"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "Completed Within SLA",
      "Total Applications"
indexName": "firenoc-national-dashboard",
   ],     "insightaggrQuery": {
    },
    "_comment": " Top Performing STATES for Completion rate"
  },
 
  	"bottomPerformingStatesCompletionRateOverview": {
    "chartName": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_COMPLETION_RATE",
    "queries": [
      {
        "module": "PT",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}}"{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Total Applications\":{\"sum\":{\"field\":\"todaysApplicationsForApplicationType\"}}}},\"Closed Application\":{\"date_histogram\":{\"field\":\"date\",\"interval\":\"intervalvalue\"},\"aggs\":{\"Completed Within SLAstate\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"sumintermediateAggrULB\":{\"sumterms\":{\"field\":\"assessedPropertiesForUsageCategoryulb.keyword\"}}}},\"Totalaggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"stateward.keyword\"},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplicationstodaysClosedApplications\"}}}},\"Total Applicationswardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}}}}}}"
      },
      {
          "module": "TL",
          "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",,\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"allApplications\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}}}"
      }  
    ],
    "dateRefFieldchartType": "dateline",
    "valueType": "number",
    "indexNameaction": "tl-national-dashboard",
    "drillChart": "none",
    "aggrQuerydocumentType": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total Issued\":{\"terms\":{\"field\":"_doc",
    "aggregationPaths": [
      "Total Application",
      "Closed Application"
    ],
    "isCumulative": false,
    "interval": "month",
    "insight": {
    },
    "_comment": " "
  },
    
  	"topPerformingStatesCompletionRateOverview": {
    "chartName": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_COMPLETION_RATE",
    "queries": [
      {
        "module": "PT",
        "requestQueryMap": "{\"state\" : \"state.keyword\"},\"aggsulb\" :{ \"intermediateAggr\":{\"terms\":{\"field\":\"date\"},ulb.keyword\"}",
        "dateRefField": "date",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"applicationsAGGR\":{\"avgfilter\":{\"fieldbool\":{}},\"todaysLicenseIssuedWithinSLAaggs\"}}}},:{\"Completed Within SLA\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrstate.applicationskeyword\"}}}},\"Total Licensesaggs\":{\"termssum\":{\"fieldsum\":{\"state.keywordfield\"},:\"aggsassessedPropertiesForUsageCategory\":{}}}},\"intermediateAggrTotal Applications\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"applicationssum\":{\"avgsum\":{\"field\":\"todaysApplicationspropertiesRegisteredForFinancialYear\"}}}},\"Total Applications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.applications\"}}}}}}}}"
       },
       {
         "module": "WS",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "ws-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Completed Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrintermediateAggrULB\":{\"terms\":{\"field\":\"dateulb.keyword\"},\"aggs\":{\"applicationsintermediateAggrWard\":{\"avgterms\":{\"field\":\"todaysCompletedApplicationsWithinSLAward.keyword\"}}}},\"aggs\"Completed Within SLA:{\"days\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggr.applicationsdate\"}}}},\"Totalaggs\":{\"termsapplications\":{\"fieldavg\":{\"state.keywordfield\"},:\"aggstodaysCompletedApplicationsWithinSLA\":{}}}},\"intermediateAggrwardapplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"datedays.applications\"}}}},\"aggsulbApplications\":{\"applicationssum_bucket\":{\"avgbuckets_path\":{\"fieldintermediateAggrWard.wardapplications\":\"todaysTotalApplications\"}}}},\"Total ApplicationsstateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrintermediateAggrULB.applicationsulbApplications\"}}}}}}}}"
      },
      {
         "module": "OBPS",
         "requestQueryMap": "{\"state\" : ,\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"ulbaggs\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "obps-national-dashboard",
         "aggrQuery": "{\"aggsintermediateAggrULB\":{\"AGGRterms\":{\"filterfield\":{\"boolulb.keyword\":{}},\"aggs\":{\"CompletedintermediateAggrWard\":{\"terms\":{\"field\":\"stateward.keyword\"},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocWithinSlaapplications\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLAOCtodaysTotalApplications\"}}}},\"Total OC within slawardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.ocWithinSlaapplications\"}}}},\"intermediateAggr1ulbApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"dateintermediateAggrWard.wardapplications\"}}}},\"aggsstateApplications\":{\"permitWithinSlasum_bucket\":{\"avgbuckets_path\":{\"field\":\"todaysCompletedApplicationsWithinSLAPermit\"intermediateAggrULB.ulbApplications\"}}}}}}}}},\"Total Permit within sla\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.permitWithinSla\"}},\"Completed Within SLA\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total Permit within sla\",\"com\":\"Total OC within sla\"},\"script\":\"params.att + params.com\"}}}},\"Total"
      },
      {
          "module": "TL",
          "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
          "dateRefField": "date",
          "indexName": "tl-national-dashboard",
          "aggrQuery": "{\"aggs\":{\"termsAGGR\":{\"fieldfilter\":{\"state.keywordbool\":{}},\"aggs\":{\"intermediateAggrCompleted Within SLA\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"ocSubmittedintermediateAggrULB\":{\"avgterms\":{\"field\":\"ocSubmittedulb.keyword\"}}}},\"Total OC Submitted,\"aggs\":{\"intermediateAggrWard\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrward.ocSubmittedkeyword\"}},\"intermediateAggr1aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmittedapplications\":{\"avg\":{\"field\":\"applicationsSubmittedtodaysLicenseIssuedWithinSLA\"}}}},\"Total Applications Submittedwardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1days.applicationsSubmittedapplications\"}}}},\"Total ApplicationsulbApplications\":{\"sum_bucket_script\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\"att:{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications Submitted\":{\"terms\",:{\"comfield\":\"Total OC Submittedstate.keyword\"},\"script\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"params.att + params.comtodaysTradeLicensesForStatus\"}}}}}}}}"
       },
       {
         "module": "FIRENOCOBPS",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "firenocobps-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"CompletedLicenses Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrTotal Permits\":{\"termssum\":{\"field\":\"datepermitsIssuedForRiskType\"},\"aggs}}},\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLAapplicationsSubmitted\"}}}},\"Completed Within SLAwardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}},\"Total ApplicationsulbApplications\":{\"termssum_bucket\":{\"fieldbuckets_path\":\"stateintermediateAggrWard.keywordwardapplications\"}}}},\"aggsSum\":{\"sum_bucket\":{\"sumbuckets_path\":{\"fieldintermediateAggrULB.ulbApplications\":\"todaysApplicationsForApplicationType\"}}}}}}}}"
       },
       {
    ],     "chartTypemodule": "performFIRENOC",
         "valueTyperequestQueryMap": "percentage{\"state\",     "drillChart": "none: \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
    "documentType": "_doc",     "actiondateRefField": "percentagedate",
    "plotLabel": "DSS_COMPLETION_RATE",     "orderindexName": "ascfirenoc-national-dashboard",
    "limit": 3,    "aggrQuery": "aggregationPaths": [
     "Completed Within SLA",
      "Total Applications"
    ],
    "insight": {
    },
    "_comment": " Bottom Performing STATES for Completion rate"
  },  
  
  	"totalApplicationServiceWiseOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_APPLICATIONS_SERVICE_WISE",
    "queries": [
       {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : {\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Completed Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs,\"aggs\":{\"intermediateAggrWard\":{\"AGGRterms\":{\"filterfield\":{\"boolward.keyword\":{}},\"aggs\":{\"intermediateAggrdays\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplicationstodaysCompletedApplicationsWithinSLA\"}}}},\"TLwardapplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrdays.applications\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR,\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Sum\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"terms\":{\"filterfield\":{\"boolstate.keyword\":{}},\"aggs\":{\"FNOCsum\":{\"sum\":{\"field\":\"todaysApplicationsForApplicationType\"}}}}}}}}"
      },
      {
    ],
    "modulechartType": "PTperform",
    "valueType": "percentage",
    "indexNamedrillChart": "pt-national-dashboardnone",
    "documentType": "_doc",
    "aggrQueryaction": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"PT\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.applications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
 "percentage",
    "plotLabel": "DSS_COMPLETION_RATE",
    "order": "desc",
    "limit": 3,
    "isRoundOff": true,
    "aggregationPaths": [
      "Completed Within SLA",
      "dateRefField":Total Applications"date"
      }],
    "insight": {
{    },
    "module_comment": "OBPS", Top Performing STATES for Completion rate"
   "indexName": "obps-national-dashboard},
 
  	"bottomPerformingStatesCompletionRateOverview": {
    "chartName": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_COMPLETION_RATE",
    "queries": [
      {
        "module": "PT",
        "aggrQueryrequestQueryMap": "{\"aggsstate\" :{ \"AGGRstate.keyword\":{,\"filterulb\" :{ \"boolulb.keyword\"}":{}},\"aggs\":{\"totalapps\":{\"filters,
        "dateRefField": "date",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"filtersAGGR\":{\"allfilter\":{\"match_allbool\":{}}}},\"aggs\":{\"intermediateAggrCompleted Within SLA\":{\"terms\":{\"field\":\"datestate.keyword\"},\"aggs\":{\"ocSubmittedsum\":{\"avgsum\":{\"field\":\"ocSubmittedassessedPropertiesForUsageCategory\"}}}},\"Total OC SubmittedApplications\":{\"sum_bucketterms\":{\"buckets_pathfield\":\"intermediateAggrstate.ocSubmittedkeyword\"}},\"intermediateAggr1aggs\":{\"termssum\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmitted\":{\"avg\"sum\":{\"field\":\"applicationsSubmittedpropertiesRegisteredForFinancialYear\"}}}},\"Total Applications Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.applicationsSubmitted\"}},\"OBPS\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total Applications Submitted\",\"com\":\"Total OC Submitted\"},\"script\":\"params.att + params.com\"}}}}}}}}",}}}}"
      },
      {
         "module": "WS",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date"
      },
 
    {         "module": "W&S",
        "indexName": "ws-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"intermediateAggrCompleted Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLA\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\"todaysTotalApplications:\"intermediateAggrWard.wardapplications\"}}}},\"WS\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.applications\"}}}}}}\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}}}}}}"
      },
      {
          "module": "TL",
          "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
          "dateRefField": "date",
          "indexName": "tl-national-dashboard",
          "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Completed Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysLicenseIssuedWithinSLA\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"Sum\":{\"sum\":{\"field\":\"todaysTradeLicensesForStatus\"}}}}}}}}"
       },
       {
         "module": "OBPS",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "obps-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{\"must_not\":[]}},\"aggs\":{\"Licenses Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"Total Permits\":{\"sum\":{\"field\":\"permitsIssuedForRiskType\"}}}},\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"applicationsSubmitted\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Sum\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}}}}}}"
       },
       {
         "module": "FIRENOC",
         "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
         "dateRefField": "date",
         "indexName": "firenoc-national-dashboard",
         "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Completed Within SLA\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysCompletedApplicationsWithinSLA\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"Sum\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"Total Applications\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"sum\":{\"sum\":{\"field\":\"todaysApplicationsForApplicationType\"}}}}}}}}"
      }
    ],
    "chartType": "perform",
    "valueType": "percentage",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "percentage",
    "plotLabel": "DSS_COMPLETION_RATE",
    "order": "asc",
    "limit": 3,
    "isRoundOff": true,
    "aggregationPaths": [
     "Completed Within SLA",
      "Total Applications"
    ],
    "insight": {
    },
    "_comment": " Bottom Performing STATES for Completion rate"
  },  
  
  	"totalApplicationServiceWiseOverview": {
    "chartName": "NATIONAL_DSS_TOTAL_APPLICATIONS_SERVICE_WISE",
    "queries": [
       {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"TL\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"FNOC\":{\"sum\":{\"field\":\"todaysApplicationsForApplicationType\"}}}}}}"
      },
      {
        "module": "PT",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"PT\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "OBPS",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"intermediateAggr\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"ocSubmitted\":{\"avg\":{\"field\":\"ocSubmitted\"}}}},\"Total OC Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr.ocSubmitted\"}},\"intermediateAggr1\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applicationsSubmitted\":{\"avg\":{\"field\":\"applicationsSubmitted\"}}}},\"Total Applications Submitted\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggr1.applicationsSubmitted\"}},\"ward Total Applications\":{\"bucket_script\":{\"buckets_path\":{\"att\":\"Total Applications Submitted\",\"com\":\"Total OC Submitted\"},\"script\":\"params.att + params.com\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.ward Total Applications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"OBPS\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      },
      {
        "module": "W&S",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"state\":{\"terms\":{\"field\":\"state.keyword\"},\"aggs\":{\"intermediateAggrULB\":{\"terms\":{\"field\":\"ulb.keyword\"},\"aggs\":{\"intermediateAggrWard\":{\"terms\":{\"field\":\"ward.keyword\"},\"aggs\":{\"days\":{\"terms\":{\"field\":\"date\"},\"aggs\":{\"applications\":{\"avg\":{\"field\":\"todaysTotalApplications\"}}}},\"wardapplications\":{\"sum_bucket\":{\"buckets_path\":\"days.applications\"}}}},\"ulbApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrWard.wardapplications\"}}}},\"stateApplications\":{\"sum_bucket\":{\"buckets_path\":\"intermediateAggrULB.ulbApplications\"}}}},\"WS\":{\"sum_bucket\":{\"buckets_path\":\"state.stateApplications\"}}}}}}",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}",
        "dateRefField": "date"
      }
    ],
    "chartType": "pie",
    "valueType": "number",
    "action": "",
    "documentType": "_doc",
    "drillChart": "none",
    "aggregationPaths": [
      "PT",
      "TL",
      "WS",
      "OBPS",
      "FNOC"
    ],
    "insight": {
    },
    "_comment": " totalApplication is the chartId"
  },
  "totalNonTaxCollection": {
    "chartName": "DSS_TOTAL_NON_TAX_COLLECTION",
    "queries": [
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "W&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}"
      },
      {
        "module": "BIRTH",
        "indexName": "birth-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      },
      {
        "module": "DEATH",
        "indexName": "death-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      }
    ],
    "chartType": "metric",
    "valueType": "amount",
    "action": "",
    "drillChart": "none",
    "aggregationPaths": [
      "Total_Non_Tax_Collection"
    ],
    "insight": {
      "chartResponseMap": "totalNonTaxCollection",
      "action": "differenceOfNumbers",
      "upwardIndicator": "positive",
      "downwardIndicator": "negative",
      "textMessage": "$indicator$value% than last $insightInterval",
      "colorCode": "#228B22",
      "insightInterval": "year",
      "isRoundOff": true
    },
    "_comment": "Total Non Tax Collection"
  },
  "nonTaxRevenueContribution": {
    "chartName": "DSS_NON_TAX_REVENUE_CONTRIBUTION",
    "queries": [
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "W&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}"
      },
      {
        "module": "BIRTH",
        "indexName": "birth-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      },
      {
        "module": "DEATH",
        "indexName": "death-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"Total_Non_Tax_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      },
      {
        "module": "PT",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "pt-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForUsageCategory\"}}}}}}"
      },
      {
        "module": "TL",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "tl-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForTradeType\"}}}}}}"
      },
      {
        "module": "OBPS",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "obps-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "FIRENOC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "firenoc-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "MC",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "mcollect-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentMode\"}}}}}}"
      },
      {
        "module": "W&S",
        "dateRefField": "date",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "indexName": "ws-national-dashboard",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForPaymentChannelType\"}}}}}}"
      },
      {
        "module": "BIRTH",
        "indexName": "birth-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      },
      {
        "module": "DEATH",
        "indexName": "death-cert-national-dashboard",
        "requestQueryMap": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\",\"ward\" : \"ward.keyword\"}",
        "aggrQuery": "{\"aggs\":{\"AGGR\":{\"filter\":{\"bool\":{}},\"aggs\":{\"ND_Total_Collection\":{\"sum\":{\"field\":\"todaysCollectionForChannel\"}}}}}}",
        "dateRefField": "date"
      }
    ],
    "chartType": "metric",
    "valueType": "percentage",
    "drillChart": "none",
    "documentType": "_doc",
    "action": "percentage",
    "isRoundOff": true,
    "aggregationPaths": [
      "Total_Non_Tax_Collection",
      "ND_Total_Collection"
    ],
    "insight": {
      "chartResponseMap": "totalNonTaxContribution",
      "action": "differenceOfNumbers",
      "upwardIndicator": "positive",
      "downwardIndicator": "negative",
      "textMessage": "$indicator$value% than last $insightInterval",
      "colorCode": "#228B22",
      "insightInterval": "year",
      "isRoundOff": true
    },
    "_comment": "Total non tax collection"
  }

Click here to check the complete configuration

Master Dashboard Configuration:

Master Dashboard Configuration is the main configuration which defines as which are the Dashboards which are to be painted on screen. 

It includes all the Visualizations, their groups, the charts which comes within them and even their dimensions as what should be their height and width.

Code Block
 {
      "name": "NATIONAL_OVERVIEW_DASHBOARD",
      "id": "national-overview",
      "isActive": "",
        "requestQueryMapstyle": "{\"state\" : \"state.keyword\",\"ulb\" : \"ulb.keyword\"}"",
      "visualizations": [
        {
          "name": "NATIONAL_DSS_REVENUE",
          "dateRefFieldvizArray": "date" [
          }  {
         ],     "chartTypeid": "pie"111,
      "valueType        "name": "numberNATIONAL_DSS_OVERVIEW",
              "actionvizType": "metric-collection",
              "documentTypenoUnit": "_doc"true,
    "drillChart": "none",          "isCollapsible": false,
              "aggregationPathscharts": [
      "PT",        "TL",  {
    "WS",       "OBPS",       "FNOCid": "todaysCollectionOverview",
   ],     "insight": {     },    "name": "_comment": " totalApplication is the chartId"NATIONAL_DSS_TOTAL_COLLECTION_TODAY",
       },   

Click here to check the complete configuration

Master Dashboard Configuration:

Master Dashboard Configuration is the main configuration which defines as which are the Dashboards which are to be painted on screen. 

It includes all the Visualizations, their groups, the charts which comes within them and even their dimensions as what should be their height and width.

Code Block
 {       "namecode": "NATIONAL_OVERVIEW_DASHBOARD",
       "id           "chartType": "national-overview",
       "isActive": "",           "filter": {"styletitle": "TODAY"},
       "visualizations": [           "headers": []
{           "name": "NATIONAL_DSS_REVENUE",    },
      "vizArray": [         {
   {               "id": 111,"totalCollectionOverview",
                  "name": "NATIONAL_DSS_OVERVIEWTOTAL_COLLECTION",
                  "vizTypecode": "metric-collection",
                  "noUnitchartType": true"metric",
                  "isCollapsiblefilter": false"",
                  "chartsheaders": []
                },
                {
                  "id": "todaysCollectionOverviewtargetCollectionvOverview",
                  "name": "NATIONAL_DSS_TOTALTARGET_COLLECTION_TODAY",
                  "code": "",
                  "chartType": "metric",
                  "filter": {"title": "TODAY"},
                  "headers": []
                },
                {
                  "id": "totalCollectionOverviewtargetAchievedOverview",
                  "name": "NATIONAL_DSS_TOTALTARGET_COLLECTIONACHIEVED",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                },
                {
                  "id": "targetCollectionvOverviewtotalNonTaxCollection",
                  "name": "NATIONALDSS_TOTAL_DSSNON_TARGETTAX_COLLECTION",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                },
                {
                  "id": "targetAchievedOverviewnonTaxRevenueContribution",
                  "name": "NATIONALDSS_NON_DSSTAX_TARGETREVENUE_ACHIEVEDCONTRIBUTION",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 112,
              "name": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION",
              "dimensions": {
                "height": 350,
                "width": 7
              },
              "vizType": "chart",
              "label": "",
              "noUnit": true,
              "isCollapsible": false,
              "charts": [
                {
                  "id": "cumulativeCollectionOverview",
                  "name": "Weekly",
                  "code": "",
                  "chartType": "line",
                  "filter": "",
                  "headers": []
                }
              ]
            }
          ]
        },
        {
          "row": 2,
          "name": "NATIONAL_DSS_REVENUE",
          "vizArray": [
               {
              "id": 121,
              "name": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION_SERVICE_WISE",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "chart",
              "noUnit": true,
              "isCollapsible": false,
              "charts": [
                {
                  "id": "totalCollectionServiceWiseOverview",
                  "name": "NATIONAL_DSS_TOTAL_CUMULATIVE_COLLECTION_SERVICE_WISE",
                  "code": "",
                  "chartType": "donut",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 122,
              "name": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "performing-metric",
              "noUnit": false,
              "isCollapsible": false,
              "label": "",
              "charts": [
                {
                  "id": "topPerformingStatesOverview",
                  "name": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
                  "code": "",
                  "chartType": "bar",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 123,
              "name": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "performing-metric",
              "noUnit": false,
              "isCollapsible": false,
              "charts": [
                {
                  "id": "bottomPerformingStatesOverview",
                  "name": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_TARGET_ACHIEVEMENT",
                  "code": "",
                  "chartType": "bar",
                  "filter": "",
                  "headers": []
                }
              ]
            }
          ]
        },
        {
          "row": 3,
          "name": "NATIONAL_DSS_SERVICE",
          "vizArray": [
            {
              "id": 131,
              "name": "NATIONAL_DSS_OVERVIEW",
              "dimensions": {
                "height": 450,
                "width": 5
              },
              "vizType": "metric-collection",
              "isCollapsible": false,
              "label": "",
              "charts": [
                {
                  "id": "totalApplicationsOverview",
                  "name": "NATIONAL_DSS_TOTAL_APPLICATION",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                },
                {
                  "id": "closedApplicationOverview",
                  "name": "NATIONAL_DSS_CLOSED_APPLICATION",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                },
                {
                  "id": "slaAchievedOverview",
                  "name": "NATIONAL_DSS_SLA_ACHIEVED",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                },
                {
                  "id": "citizenRegisteredOverview",
                  "name": "NATIONAL_DSS_CITIZEN_REGISTERED",
                  "code": "",
                  "chartType": "metric",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 132,
              "name": "NATIONAL_DSS_TOTAL_APPLICATION_&_CLOSED_APPLICATION",
              "dimensions": {
                "height": 450,
                "width": 7
              },
              "vizType": "chart",
              "isCollapsible": false,
              "charts": [
                {
                  "id": "totalApplication&ClosedApplicationOverview",
                  "name": "NATIONAL_DSS_TOTAL_APPLICATION_&_CLOSED_APPLICATION",
                  "code": "",
                  "chartType": "line",
                  "filter": "",
                  "headers": []
                }
              ]
            }
          ]
        },
        {
          "row": 4,
          "name": "NATIONAL_DSS_SERVICE",
          "vizArray": [
                {
              "id": 141,
              "name": "NATIONAL_DSS_TOTAL_APPLICATIONS_SERVICE_WISE",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "chart",
              "isCollapsible": false,
              "charts": [
                {
                  "id": "totalApplicationServiceWiseOverview",
                  "name": "NATIONAL_DSS_TOTAL_APPLICATIONS_SERVICE_WISE",
                  "code": "",
                  "chartType": "donut",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 142,
              "name": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_COMPLETION_RATE",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "performing-metric",
              "isCollapsible": false,
              "label": "",
              "charts": [
                {
                  "id": "topPerformingStatesCompletionRateOverview",
                  "name": "NATIONAL_DSS_TOP_3_PERFORMING_STATES_COMPLETION_RATE",
                  "code": "",
                  "chartType": "bar",
                  "filter": "",
                  "headers": []
                }
              ]
            },
            {
              "id": 143,
              "name": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_COMPLETION_RATE",
              "dimensions": {
                "height": 250,
                "width": 4
              },
              "vizType": "performing-metric",
              "isCollapsible": false,
              "charts": [
                {
                  "id": "bottomPerformingStatesCompletionRateOverview",
                  "name": "NATIONAL_DSS_BOTTOM_3_PERFORMING_STATES_COMPLETION_RATE",
                  "code": "",
                  "chartType": "bar",
                  "filter": "",
                  "headers": []
                }
              ]
            }
          ]
        }
      ]
    }

...

Overview graph contains multiple data information as below in the selected time period.

  • Today’s Collection on : This represents the aggregated data of today’s collection amount from the module PropertyTax, TradeLicense, Water&Sewerage, FireNoc, OBPS, MCollect.

  •  Total Collection : This represents the aggregated total collection amount from the module PropertyTax, TradeLicense, Water&Sewerage, FireNoc, OBPS, MCollect.

  • Target Collection : This represents the aggregated target collection amount from the module, PropertyTax, TradeLicense, Water&Sewerage.

  • Target Achievement : This represents the aggregated target achieved in percentage. This is calculated by formula- (Total Collection(PT, TL, W&S)/Target Collection(PT, TL, W&S))*100%

...

  • Total Non-Tax Collection : This is the sum of all non-tax revenue collections such as ( Trade licenses , Building plan approval , miscellaneous receipts , etc..)

  • Total Non-Tax Revenue Contribution : This represents the percentage contribution of the total non-tax revenue over total revenue. This is calculated by the formula - (Total non-tax collected/Total revenue collected) x 100

...

Total Cumulative Collection:

...