Grafana dashboard: Covid-19 Italy
Description: Covid 19 spread in Italy using daily report from Protezione Civile repository.

This dashboard shows data about spread of Covid-19 in Italy using the daily report published by [Dipartimento della Protezione Civile](https://github.com/pcm-dpc/COVID-19).

User can select a Region to see the details.

There a lot of metric, the user can choose a subset and plot only the required ones.
For each metric, will be shown the time series with the moving average over 5 and 30 days.

You can find more details in my public GitHub repository [nick990/grafana-dashboards](https://github.com/nick990/grafana-dashboards) in folder `covid19-italy` (TAG `v2.0.0`).

## Quickstart
Follow the instructions in **Readme** in order to create the DB SQL and to populate it.

{
  "__inputs": [
    {
      "name": "DS_MICROSOFT_SQL SERVER",
      "label": "Microsoft SQL Server",
      "description": "",
      "type": "datasource",
      "pluginId": "mssql",
      "pluginName": "Microsoft SQL Server"
    }
  ],
  "__requires": [
    {
      "type": "panel",
      "id": "bargauge",
      "name": "Bar Gauge",
      "version": ""
    },
    {
      "type": "grafana",
      "id": "grafana",
      "name": "Grafana",
      "version": "6.7.1"
    },
    {
      "type": "panel",
      "id": "graph",
      "name": "Graph",
      "version": ""
    },
    {
      "type": "datasource",
      "id": "mssql",
      "name": "Microsoft SQL Server",
      "version": "1.0.0"
    },
    {
      "type": "panel",
      "id": "singlestat",
      "name": "Singlestat",
      "version": ""
    },
    {
      "type": "panel",
      "id": "table",
      "name": "Table",
      "version": ""
    },
    {
      "type": "panel",
      "id": "text",
      "name": "Text",
      "version": ""
    }
  ],
  "annotations": {
    "list": [
      {
        "$$hashKey": "object:1478",
        "builtIn": 1,
        "datasource": "-- Grafana --",
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "gnetId": 12152,
  "graphTooltip": 0,
  "id": null,
  "iteration": 1587561944864,
  "links": [],
  "panels": [
    {
      "cacheTimeout": null,
      "content": "\nData updated to the **$last_date**",
      "datasource": "${DS_MICROSOFT_SQL SERVER}",
      "gridPos": {
        "h": 2,
        "w": 24,
        "x": 0,
        "y": 0
      },
      "id": 7,
      "links": [],
      "mode": "markdown",
      "pluginVersion": "6.7.1",
      "timeFrom": null,
      "timeShift": null,
      "title": "",
      "type": "text"
    },
    {
      "collapsed": true,
      "datasource": "${DS_MICROSOFT_SQL SERVER}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 2
      },
      "id": 22,
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#3274D9",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 0,
            "y": 3
          },
          "id": 2,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Total cases",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": true,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntotalpositivecases\nfrom pcm_dpc_italy\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#3274D9",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 4,
            "y": 3
          },
          "id": 167,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Current cases",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": true,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ncurrentpositivecases\nfrom pcm_dpc_italy\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#E02F44",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 8,
            "y": 3
          },
          "id": 4,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Deaths",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ndeaths\nfrom pcm_dpc_italy\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#E02F44",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": 2,
          "description": "Deaths / Total cases",
          "format": "percent",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 12,
            "y": 3
          },
          "id": 105,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Mortality rate",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ndeaths * 100.0 / totalPositiveCases\nfrom pcm_dpc_italy\nwhere ts = $last_ts",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#56A64B",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 3
          },
          "id": 5,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Recovered",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\nrecovered\nfrom pcm_dpc_italy\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "gridPos": {
            "h": 18,
            "w": 8,
            "x": 0,
            "y": 10
          },
          "id": 60,
          "options": {
            "displayMode": "gradient",
            "fieldOptions": {
              "calcs": [
                "sum"
              ],
              "defaults": {
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "blue",
                      "value": null
                    }
                  ]
                }
              },
              "limit": 30,
              "overrides": [],
              "values": true
            },
            "orientation": "horizontal",
            "showUnfilled": true
          },
          "pluginVersion": "6.7.1",
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n1586004872 as time,\nregionname,\ntotalpositivecases\nfrom pcm_dpc_regions\nwhere ts = $last_ts\norder by totalpositivecases desc\n\n\n\n",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Total cases by Region",
          "type": "bargauge"
        },
        {
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "gridPos": {
            "h": 18,
            "w": 8,
            "x": 8,
            "y": 10
          },
          "id": 61,
          "options": {
            "displayMode": "gradient",
            "fieldOptions": {
              "calcs": [
                "sum"
              ],
              "defaults": {
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "red",
                      "value": null
                    }
                  ]
                }
              },
              "limit": 30,
              "overrides": [],
              "values": true
            },
            "orientation": "horizontal",
            "showUnfilled": true
          },
          "pluginVersion": "6.7.1",
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n1586004872 as time,\nregionname,\ndeaths\nfrom pcm_dpc_regions\nwhere ts = $last_ts\norder by totalpositivecases desc\n\n\n",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Deaths by Region",
          "type": "bargauge"
        },
        {
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "gridPos": {
            "h": 18,
            "w": 8,
            "x": 16,
            "y": 10
          },
          "id": 62,
          "options": {
            "displayMode": "gradient",
            "fieldOptions": {
              "calcs": [
                "sum"
              ],
              "defaults": {
                "mappings": [],
                "thresholds": {
                  "mode": "absolute",
                  "steps": [
                    {
                      "color": "green",
                      "value": null
                    }
                  ]
                }
              },
              "limit": 30,
              "overrides": [],
              "values": true
            },
            "orientation": "horizontal",
            "showUnfilled": true
          },
          "pluginVersion": "6.7.1",
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n1586004872 as time,\nregionname,\nrecovered\nfrom pcm_dpc_regions\nwhere ts = $last_ts\norder by recovered desc\n\n\n",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Recovered by Region",
          "type": "bargauge"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#F2CC0C",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": null,
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 0,
            "y": 28
          },
          "id": 8,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Tests performed",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntestsperformed\nfrom pcm_dpc_italy\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#F2CC0C",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": 2,
          "description": "Tests performed / Total cases",
          "format": "percent",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 4,
            "y": 28
          },
          "id": 156,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Positive tests rate",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntotalPositiveCases * 100.0 / testsperformed\nfrom pcm_dpc_italy\nwhere ts = $last_ts",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "columns": [],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fontSize": "100%",
          "gridPos": {
            "h": 12,
            "w": 24,
            "x": 0,
            "y": 35
          },
          "id": 64,
          "pageSize": null,
          "showHeader": true,
          "sort": {
            "col": 0,
            "desc": false
          },
          "styles": [
            {
              "$$hashKey": "object:988",
              "alias": "Time",
              "align": "",
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "pattern": "Time",
              "type": "date"
            },
            {
              "$$hashKey": "object:134",
              "alias": "",
              "align": "auto",
              "colorMode": null,
              "colors": [
                "rgba(245, 54, 54, 0.9)",
                "rgba(237, 129, 40, 0.89)",
                "rgba(50, 172, 45, 0.97)"
              ],
              "dateFormat": "YYYY-MM-DD HH:mm:ss",
              "decimals": 2,
              "mappingType": 1,
              "pattern": "",
              "thresholds": [],
              "type": "number",
              "unit": "short"
            }
          ],
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "\n\nselect\nregionName as Region,\ncurrentPositiveCases as \"Current positives cases\",\ntotalPositiveCases as \"Total positive cases\",\ntestsPerformed as \"Tests performed\",\ndeaths as \"Deaths\",\nrecovered as \"Recovered\",\nhomeConfinement as \"Home confinement\",\ntotalHospitalised as  \"Total Hospitalises\",\nhospitalisedWithSymptoms as \"Hospitalised with symptoms\",\nintensiveCare as \"Intensive Care\"\nfrom pcm_dpc_regions\nwhere ts = 1587427200000\norder by regionname desc",
              "refId": "A"
            }
          ],
          "timeFrom": null,
          "timeShift": null,
          "title": "Regions details",
          "transform": "table",
          "type": "table"
        }
      ],
      "title": "Italy - global report",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_MICROSOFT_SQL SERVER}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 3
      },
      "id": 24,
      "panels": [
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 4
          },
          "hiddenSeries": false,
          "id": 10,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": "metric",
          "repeatDirection": "v",
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Total Positive Cases",
              "value": "totalPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 19
          },
          "hiddenSeries": false,
          "id": 202,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "New Positive Cases",
              "value": "newPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 34
          },
          "hiddenSeries": false,
          "id": 203,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Current Positive Cases",
              "value": "currentPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 49
          },
          "hiddenSeries": false,
          "id": 204,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "New Current Positive Cases",
              "value": "newCurrentPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 64
          },
          "hiddenSeries": false,
          "id": 205,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Deaths",
              "value": "deaths"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 79
          },
          "hiddenSeries": false,
          "id": 206,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Recovered",
              "value": "recovered"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 94
          },
          "hiddenSeries": false,
          "id": 207,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Home Confinement",
              "value": "homeConfinement"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 109
          },
          "hiddenSeries": false,
          "id": 208,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Total Hospitalised",
              "value": "totalHospitalised"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 124
          },
          "hiddenSeries": false,
          "id": 209,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Hospitalised With Symptoms",
              "value": "hospitalisedWithSymptoms"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 139
          },
          "hiddenSeries": false,
          "id": 210,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Intensive Care",
              "value": "intensiveCare"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 154
          },
          "hiddenSeries": false,
          "id": 211,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 10,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Tests Performed",
              "value": "testsPerformed"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_italy\nwhere $__unixEpochFilter(ts/1000)\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_italy \n\twhere $__unixEpochFilter(ts/1000)\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "Italy - daily data",
      "type": "row"
    },
    {
      "collapsed": true,
      "datasource": "${DS_MICROSOFT_SQL SERVER}",
      "gridPos": {
        "h": 1,
        "w": 24,
        "x": 0,
        "y": 4
      },
      "id": 36,
      "panels": [
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#3274D9",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 0,
            "y": 5
          },
          "id": 179,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Total cases",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": true,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntotalpositivecases\nfrom pcm_dpc_regions\nwhere regionname = '$region'\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#3274D9",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 4,
            "y": 5
          },
          "id": 181,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Current cases",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": true,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ncurrentpositivecases\nfrom pcm_dpc_regions\nwhere regionname = '$region'\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#E02F44",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 8,
            "y": 5
          },
          "id": 183,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Deaths",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ndeaths\nfrom pcm_dpc_regions\nwhere regionname = '$region'",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#E02F44",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": 2,
          "description": "Deaths / Total cases",
          "format": "percent",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 12,
            "y": 5
          },
          "id": 185,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Mortality rate",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ndeaths * 100.0 / totalPositiveCases\nfrom pcm_dpc_regions\nwhere ts = $last_ts\nand regionname = '$region'",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#56A64B",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 8,
            "x": 16,
            "y": 5
          },
          "id": 187,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Recovered",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\nrecovered\nfrom pcm_dpc_regions\nwhere regionname = '$region'\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#F2CC0C",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": null,
          "format": "none",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 0,
            "y": 12
          },
          "id": 189,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Tests performed",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntestsperformed\nfrom pcm_dpc_regions\nwhere regionname = '$region'\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "cacheTimeout": null,
          "colorBackground": false,
          "colorPrefix": false,
          "colorValue": true,
          "colors": [
            "#F2CC0C",
            "rgba(237, 129, 40, 0.89)",
            "#d44a3a"
          ],
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "decimals": 2,
          "description": "Tests performed / Total cases",
          "format": "percent",
          "gauge": {
            "maxValue": 100,
            "minValue": 0,
            "show": false,
            "thresholdLabels": false,
            "thresholdMarkers": true
          },
          "gridPos": {
            "h": 7,
            "w": 4,
            "x": 4,
            "y": 12
          },
          "id": 191,
          "interval": null,
          "links": [],
          "mappingType": 1,
          "mappingTypes": [
            {
              "$$hashKey": "object:57",
              "name": "value to text",
              "value": 1
            },
            {
              "$$hashKey": "object:58",
              "name": "range to text",
              "value": 2
            }
          ],
          "maxDataPoints": 100,
          "nullPointMode": "connected",
          "nullText": null,
          "pluginVersion": "6.7.1",
          "postfix": "",
          "postfixFontSize": "50%",
          "prefix": "Positive tests rate",
          "prefixFontSize": "70%",
          "rangeMaps": [
            {
              "from": "null",
              "text": "N/A",
              "to": "null"
            }
          ],
          "sparkline": {
            "fillColor": "rgba(31, 118, 189, 0.18)",
            "full": false,
            "lineColor": "rgb(31, 120, 193)",
            "show": false,
            "ymax": null,
            "ymin": null
          },
          "tableColumn": "",
          "targets": [
            {
              "alias": "",
              "format": "table",
              "rawSql": "select\ntotalPositiveCases * 100.0 / testsperformed\nfrom pcm_dpc_regions\nwhere ts = $last_ts\nand regionname = '$region'\n",
              "refId": "A"
            }
          ],
          "thresholds": "",
          "timeFrom": null,
          "timeShift": null,
          "title": "",
          "type": "singlestat",
          "valueFontSize": "70%",
          "valueMaps": [
            {
              "$$hashKey": "object:60",
              "op": "=",
              "text": "N/A",
              "value": "null"
            }
          ],
          "valueName": "current"
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 19
          },
          "hiddenSeries": false,
          "id": 48,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": "metric",
          "repeatDirection": "v",
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Total Positive Cases",
              "value": "totalPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 34
          },
          "hiddenSeries": false,
          "id": 212,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "New Positive Cases",
              "value": "newPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 49
          },
          "hiddenSeries": false,
          "id": 213,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Current Positive Cases",
              "value": "currentPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 64
          },
          "hiddenSeries": false,
          "id": 214,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "New Current Positive Cases",
              "value": "newCurrentPositiveCases"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 79
          },
          "hiddenSeries": false,
          "id": 215,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Deaths",
              "value": "deaths"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 94
          },
          "hiddenSeries": false,
          "id": 216,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Recovered",
              "value": "recovered"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 109
          },
          "hiddenSeries": false,
          "id": 217,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Home Confinement",
              "value": "homeConfinement"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 124
          },
          "hiddenSeries": false,
          "id": 218,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Total Hospitalised",
              "value": "totalHospitalised"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 139
          },
          "hiddenSeries": false,
          "id": 219,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Hospitalised With Symptoms",
              "value": "hospitalisedWithSymptoms"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 154
          },
          "hiddenSeries": false,
          "id": 220,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Intensive Care",
              "value": "intensiveCare"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        },
        {
          "aliasColors": {},
          "bars": false,
          "dashLength": 10,
          "dashes": false,
          "datasource": "${DS_MICROSOFT_SQL SERVER}",
          "fill": 1,
          "fillGradient": 0,
          "gridPos": {
            "h": 15,
            "w": 24,
            "x": 0,
            "y": 169
          },
          "hiddenSeries": false,
          "id": 221,
          "legend": {
            "alignAsTable": true,
            "avg": true,
            "current": true,
            "max": true,
            "min": true,
            "show": true,
            "total": true,
            "values": true
          },
          "lines": true,
          "linewidth": 1,
          "nullPointMode": "null",
          "options": {
            "dataLinks": []
          },
          "percentage": false,
          "pointradius": 2,
          "points": true,
          "renderer": "flot",
          "repeat": null,
          "repeatDirection": "v",
          "repeatIteration": 1587561944859,
          "repeatPanelId": 48,
          "scopedVars": {
            "metric": {
              "selected": false,
              "text": "Tests Performed",
              "value": "testsPerformed"
            }
          },
          "seriesOverrides": [
            {
              "$$hashKey": "object:809",
              "alias": "Moving AVG 5",
              "dashes": true,
              "points": false
            },
            {
              "$$hashKey": "object:816",
              "alias": "Moving AVG 30",
              "dashes": true,
              "points": false
            }
          ],
          "spaceLength": 10,
          "stack": false,
          "steppedLine": false,
          "targets": [
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "select\n  ts as time,\n  ${metric:csv} as \"Daily data\"\nfrom pcm_dpc_regions\nwhere $__unixEpochFilter(ts/1000)\nand regionname='$region'\norder by ts",
              "refId": "A"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 5 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 5\"\nfrom T2\norder by date",
              "refId": "B"
            },
            {
              "alias": "",
              "format": "time_series",
              "rawSql": "with T1 as (\n\tselect\n\t\tROW_NUMBER() OVER (ORDER BY ts ASC) RowNumber,\n\t\tcast(dateadd(second,ts/1000,'19700101') as date) as Date,\n\t\tsum(${metric:csv}) as ${metric:csv}\n\tfrom pcm_dpc_regions\n\twhere $__unixEpochFilter(ts/1000)\n\tand regionname='$region'\n\tgroup by ts\n),\nT2 as (\n\tselect\n\tRowNumber,\n\tdate,\n\tavg(${metric:csv}) over (order by date asc rows 30 PRECEDING ) as MAVG\n\tfrom T1\n)\nselect\n\tdate as time,\n\tIIF(RowNumber > 4, MAVG, NULL) \"Moving AVG 30\"\nfrom T2\norder by date",
              "refId": "C"
            }
          ],
          "thresholds": [],
          "timeFrom": null,
          "timeRegions": [],
          "timeShift": null,
          "title": "$metric",
          "tooltip": {
            "shared": true,
            "sort": 0,
            "value_type": "individual"
          },
          "type": "graph",
          "xaxis": {
            "buckets": null,
            "mode": "time",
            "name": null,
            "show": true,
            "values": []
          },
          "yaxes": [
            {
              "$$hashKey": "object:247",
              "format": "none",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            },
            {
              "$$hashKey": "object:248",
              "format": "short",
              "label": "",
              "logBase": 1,
              "max": null,
              "min": null,
              "show": true
            }
          ],
          "yaxis": {
            "align": false,
            "alignLevel": null
          }
        }
      ],
      "title": "$region - details",
      "type": "row"
    }
  ],
  "refresh": false,
  "schemaVersion": 22,
  "style": "dark",
  "tags": [],
  "templating": {
    "list": [
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_MICROSOFT_SQL SERVER}",
        "definition": "SELECT top 1 convert(varchar(10),cast(dateadd(second,ts/1000,'19700101') as date)) from covid_data.dbo.pcm_dpc_italy order by ts desc",
        "hide": 2,
        "includeAll": false,
        "index": -1,
        "label": null,
        "multi": false,
        "name": "last_date",
        "options": [],
        "query": "SELECT top 1 convert(varchar(10),cast(dateadd(second,ts/1000,'19700101') as date)) from covid_data.dbo.pcm_dpc_italy order by ts desc",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_MICROSOFT_SQL SERVER}",
        "definition": "SELECT readableName __text, columnName __value \nFROM (VALUES\n\t('totalPositiveCases','Total Positive Cases'),\n\t('newPositiveCases','New Positive Cases'),\n\t('currentPositiveCases', 'Current Positive Cases'),\n\t('newCurrentPositiveCases','New Current Positive Cases'),\n\t('deaths','Deaths'),\n\t('recovered', 'Recovered'),\n\t('homeConfinement','Home Confinement'),\n\t('totalHospitalised','Total Hospitalised'),\n\t('hospitalisedWithSymptoms','Hospitalised With Symptoms'),\n\t('intensiveCare','Intensive Care'),\n\t('testsPerformed','Tests Performed')\n\t) t1 (columnName,readableName) ",
        "hide": 0,
        "includeAll": true,
        "index": -1,
        "label": "Metric",
        "multi": true,
        "name": "metric",
        "options": [],
        "query": "SELECT readableName __text, columnName __value \nFROM (VALUES\n\t('totalPositiveCases','Total Positive Cases'),\n\t('newPositiveCases','New Positive Cases'),\n\t('currentPositiveCases', 'Current Positive Cases'),\n\t('newCurrentPositiveCases','New Current Positive Cases'),\n\t('deaths','Deaths'),\n\t('recovered', 'Recovered'),\n\t('homeConfinement','Home Confinement'),\n\t('totalHospitalised','Total Hospitalised'),\n\t('hospitalisedWithSymptoms','Hospitalised With Symptoms'),\n\t('intensiveCare','Intensive Care'),\n\t('testsPerformed','Tests Performed')\n\t) t1 (columnName,readableName) ",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_MICROSOFT_SQL SERVER}",
        "definition": "SELECT regionName FROM pcm_dpc_regions ORDER BY regionName",
        "hide": 0,
        "includeAll": false,
        "index": -1,
        "label": "Region",
        "multi": false,
        "name": "region",
        "options": [],
        "query": "SELECT regionName FROM pcm_dpc_regions ORDER BY regionName",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      },
      {
        "allValue": null,
        "current": {},
        "datasource": "${DS_MICROSOFT_SQL SERVER}",
        "definition": "select top 1 ts from pcm_dpc_regions order by ts desc",
        "hide": 2,
        "includeAll": false,
        "index": -1,
        "label": null,
        "multi": false,
        "name": "last_ts",
        "options": [],
        "query": "select top 1 ts from pcm_dpc_regions order by ts desc",
        "refresh": 1,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "tagValuesQuery": "",
        "tags": [],
        "tagsQuery": "",
        "type": "query",
        "useTags": false
      }
    ]
  },
  "time": {
    "from": "now-90d",
    "to": "now"
  },
  "timepicker": {
    "refresh_intervals": [
      "5s",
      "10s",
      "30s",
      "1m",
      "5m",
      "15m",
      "30m",
      "1h",
      "2h",
      "1d"
    ]
  },
  "timezone": "",
  "title": "Covid-19 Italy",
  "uid": "uqKK313Wk",
  "variables": {
    "list": []
  },
  "version": 2,
  "description": "Covid 19 spread in Italy using daily report from Protezione Civile repository."
}