diff --git a/src/main/resources/schema/SMF_ChartApiConfig.json b/src/main/resources/schema/SMF_ChartApiConfig.json index e563d4471eeb398389ff222342fbbc689d00e5b7..9f88db62e122e59f3e00c0dab647eb7b7f11e879 100644 --- a/src/main/resources/schema/SMF_ChartApiConfig.json +++ b/src/main/resources/schema/SMF_ChartApiConfig.json @@ -7,7 +7,7 @@ "requestQueryMap": "{\r\n \"ts\" : \"timestamp\"}", "dateRefField": "timestamp", "indexName": "fs-forms-data", - "esInstance": "QUADNARY", + "esInstance": "PRIMARY", "aggrQuery": "{\"aggs\":{\"Application Status\":{\"terms\":{\"field\":\"status.keyword\",\"size\":10}}}}" } ], @@ -27,5 +27,34 @@ "alwaysView": "", "insight": {}, "_comment": " " + }, + "applicationSubmissionTrend": { + "chartName": "Application Submission Trend", + "queries": [ + { + "module": "COMMON", + "requestQueryMap": "{\r\n \"ts\" : \"timestamp\"}", + "dateRefField": "timestamp", + "indexName": "fs-forms-data", + "esInstance": "PRIMARY", + "aggrQuery": "{\"aggs\":{\"Application Submission Trend\":{\"date_histogram\":{\"field\":\"timestamp\",\"interval\":\"week\"},\"aggs\":{\"count\":{\"cardinality\":{\"field\":\"_id\"}}}}}}" + } + ], + "chartType": "line", + "resultType": "value", + "valueType": "number", + "isDecimal": true, + "action": "", + "filter": "", + "drillChart": "none", + "documentType": "_doc", + "aggregationPaths": [ + "Application Submission Trend" + ], + "isCumulative": false, + "interval": "day", + "alwaysView": "", + "insight": {}, + "_comment": " " } } \ No newline at end of file diff --git a/src/main/resources/schema/SMF_MasterDashboardConfig.json b/src/main/resources/schema/SMF_MasterDashboardConfig.json index 460ac8c6eadb66236e9130f14bbcce29363f89a0..b552616e47d690fdce8d6ba567ea2f7fb76ecfce 100644 --- a/src/main/resources/schema/SMF_MasterDashboardConfig.json +++ b/src/main/resources/schema/SMF_MasterDashboardConfig.json @@ -27,7 +27,7 @@ "vizArray": [ { "id": 111, - "name": "Overview", + "name": "Application Status Count", "dimensions": { "height": 250, "width": 4 @@ -45,6 +45,27 @@ "headers": [] } ] + }, + { + "id": 111, + "name": "Application Submission Trend", + "dimensions": { + "height": 250, + "width": 4 + }, + "vizType": "bar", + "noUnit": true, + "isCollapsible": false, + "charts": [ + { + "id": "applicationSubmissionTrend", + "name": "Application Submission Trend", + "code": "", + "chartType": "line", + "filter": "", + "headers": [] + } + ] } ] }