{
  "annotations": {
    "list": [
      {
        "builtIn": 1,
        "datasource": {
          "type": "grafana",
          "uid": "-- Grafana --"
        },
        "enable": true,
        "hide": true,
        "iconColor": "rgba(0, 211, 255, 1)",
        "name": "Annotations & Alerts",
        "type": "dashboard"
      }
    ]
  },
  "editable": true,
  "fiscalYearStartMonth": 0,
  "graphTooltip": 0,
  "id": 129,
  "links": [
    {
      "asDropdown": true,
      "icon": "external link",
      "includeVars": false,
      "keepTime": false,
      "tags": [],
      "targetBlank": false,
      "title": "dashboards",
      "tooltip": "",
      "type": "dashboards",
      "url": ""
    }
  ],
  "liveNow": false,
  "panels": [
    {
      "datasource": {
        "type": "datasource",
        "uid": "-- Dashboard --"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "light-blue",
            "mode": "shades"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 0,
        "y": 0
      },
      "id": 13,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "distinctCount"
          ],
          "fields": "",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "datasource": {
            "type": "datasource",
            "uid": "-- Dashboard --"
          },
          "panelId": 7,
          "refId": "A"
        }
      ],
      "title": "Devices",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "deviceid_count"
              ]
            }
          }
        },
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "sum"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mssql",
        "uid": "Microsoft SQL Server"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "light-blue",
            "mode": "shades"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 2,
        "y": 0
      },
      "id": 15,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "distinctCount"
          ],
          "fields": "",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "dataset": "playgrounddb2",
          "datasource": {
            "type": "mssql",
            "uid": "Microsoft SQL Server"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\r\n    count(distinct eventname)\r\nFROM\r\n        OPENROWSET(\r\n        BULK 'aggregations/events/*/*/*/*',\r\n        DATA_SOURCE = 'ParquetDataLake',\r\n        FORMAT = 'PARQUET'\r\n    ) AS r\r\nWHERE\r\n    CONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\r\n    AND $__timeFilter(t)\r\n    and\r\n    deviceid in (${device:singlequote})\r\n    and\r\n    message in (${message:singlequote})\r\n    and\r\n    signal in (${signal:singlequote})\r\n    and\r\n    eventname in (${event_name:singlequote})\r\n    and\r\n    eventvalue = 1",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "Types",
      "transformations": [],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "datasource",
        "uid": "-- Dashboard --"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "light-blue",
            "mode": "shades"
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 3,
        "w": 2,
        "x": 4,
        "y": 0
      },
      "id": 14,
      "options": {
        "colorMode": "background_solid",
        "graphMode": "area",
        "justifyMode": "auto",
        "orientation": "auto",
        "reduceOptions": {
          "calcs": [
            "distinctCount"
          ],
          "fields": "",
          "values": true
        },
        "textMode": "auto"
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "datasource": {
            "type": "datasource",
            "uid": "-- Dashboard --"
          },
          "panelId": 7,
          "refId": "A"
        }
      ],
      "title": "Events",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "event_count"
              ]
            }
          }
        },
        {
          "id": "reduce",
          "options": {
            "reducers": [
              "sum"
            ]
          }
        }
      ],
      "type": "stat"
    },
    {
      "datasource": {
        "type": "mssql",
        "uid": "Microsoft SQL Server"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "orange",
            "mode": "fixed"
          },
          "custom": {
            "axisCenteredZero": false,
            "axisColorMode": "text",
            "axisLabel": "",
            "axisPlacement": "auto",
            "barAlignment": 1,
            "drawStyle": "bars",
            "fillOpacity": 0,
            "gradientMode": "none",
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            },
            "insertNulls": 86400000,
            "lineInterpolation": "stepAfter",
            "lineStyle": {
              "fill": "solid"
            },
            "lineWidth": 1,
            "pointSize": 2,
            "scaleDistribution": {
              "type": "linear"
            },
            "showPoints": "auto",
            "spanNulls": false,
            "stacking": {
              "group": "A",
              "mode": "none"
            },
            "thresholdsStyle": {
              "mode": "off"
            }
          },
          "mappings": [],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "red",
                "value": 0.8999
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "18D508A1"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#3d85c6",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2F6913DB"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff9900",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2A896980"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#04b393",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 10,
        "w": 8,
        "x": 6,
        "y": 0
      },
      "id": 2,
      "options": {
        "legend": {
          "calcs": [],
          "displayMode": "list",
          "placement": "bottom",
          "showLegend": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "dataset": "playgrounddb2",
          "datasource": {
            "type": "mssql",
            "uid": "Microsoft SQL Server"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "\r\nSELECT\r\n    t as time,\r\n    eventvalue as val,\r\n    deviceid\r\nFROM\r\n    OPENROWSET(\r\n        BULK 'aggregations/events/*/*/*/*',\r\n        DATA_SOURCE = 'ParquetDataLake',\r\n        FORMAT = 'PARQUET'\r\n    ) AS r\r\nWHERE\r\n    CONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\r\n    AND $__timeFilter(t)\r\n\tand\r\n    deviceid in (${device:singlequote})\r\n    and\r\n    message in (${message:singlequote})\r\n    and\r\n    signal in (${signal:singlequote})\r\n    and\r\n    eventname in (${event_name:singlequote})\r\nORDER BY\r\n    time\r\nOFFSET 0 ROWS;",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "Event Start Timeline",
      "transformations": [
        {
          "id": "partitionByValues",
          "options": {
            "fields": [
              "deviceid"
            ]
          }
        },
        {
          "id": "renameByRegex",
          "options": {
            "regex": "/val\\s/",
            "renamePattern": ""
          }
        }
      ],
      "type": "timeseries"
    },
    {
      "datasource": {
        "type": "mssql",
        "uid": "Microsoft SQL Server"
      },
      "description": "",
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "shades"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [
            {
              "options": {
                "18D508A1": {
                  "color": "#3d85c6",
                  "index": 1
                },
                "2A896980": {
                  "color": "#04b393",
                  "index": 0
                },
                "2F6913DB": {
                  "color": "#ff9900",
                  "index": 2
                }
              },
              "type": "value"
            }
          ],
          "thresholds": {
            "mode": "absolute",
            "steps": [
              {
                "color": "green",
                "value": null
              }
            ]
          }
        },
        "overrides": []
      },
      "gridPos": {
        "h": 10,
        "w": 10,
        "x": 14,
        "y": 0
      },
      "id": 3,
      "options": {
        "basemap": {
          "config": {},
          "name": "Layer 0",
          "opacity": 0.8,
          "type": "osm-standard"
        },
        "controls": {
          "mouseWheelZoom": true,
          "showAttribution": true,
          "showDebug": false,
          "showMeasure": false,
          "showScale": false,
          "showZoom": true
        },
        "layers": [
          {
            "config": {
              "showLegend": false,
              "style": {
                "color": {
                  "field": "deviceid",
                  "fixed": "dark-green"
                },
                "opacity": 0.7,
                "rotation": {
                  "fixed": 0,
                  "max": 360,
                  "min": -360,
                  "mode": "mod"
                },
                "size": {
                  "fixed": 5,
                  "max": 15,
                  "min": 2
                },
                "symbol": {
                  "fixed": "img/icons/marker/circle.svg",
                  "mode": "fixed"
                },
                "text": {
                  "field": "tripstart",
                  "fixed": "",
                  "mode": "fixed"
                },
                "textConfig": {
                  "fontSize": 12,
                  "offsetX": 0,
                  "offsetY": 0,
                  "textAlign": "center",
                  "textBaseline": "middle"
                }
              }
            },
            "filterData": {
              "id": "byRefId",
              "options": "A"
            },
            "location": {
              "latitude": "Latitude",
              "longitude": "Longitude",
              "mode": "coords"
            },
            "name": "Layer 1",
            "tooltip": true,
            "type": "markers"
          }
        ],
        "tooltip": {
          "mode": "details"
        },
        "view": {
          "allLayers": true,
          "id": "fit",
          "lastOnly": false,
          "lat": 0,
          "layer": "Layer 1",
          "lon": 0,
          "padding": 30,
          "zoom": 15
        }
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "dataset": "playgrounddb2",
          "datasource": {
            "type": "mssql",
            "uid": "Microsoft SQL Server"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\r\n    t,\r\n    max(Latitude) as Latitude,\r\n    max(Longitude) as Longitude,\r\n    deviceid,\r\n    eventid\r\nFROM\r\n    OPENROWSET(\r\n        BULK 'aggregations/events/*/*/*/*',\r\n        DATA_SOURCE = 'ParquetDataLake',\r\n        FORMAT = 'PARQUET'\r\n    ) AS r\r\nWHERE\r\n    CONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\r\n    AND $__timeFilter(t)\r\n    and\r\n    deviceid in (${device:singlequote})\r\n    and\r\n    message in (${message:singlequote})\r\n    and\r\n    signal in (${signal:singlequote})\r\n    and\r\n    eventname in (${event_name:singlequote})\r\n    and\r\n    eventvalue = 1\r\nGROUP BY\r\n    t,\r\n    deviceid,\r\n    eventid\r\nORDER BY \r\n    t",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "Event Start Positions",
      "transformations": [],
      "type": "geomap"
    },
    {
      "datasource": {
        "type": "mssql",
        "uid": "Microsoft SQL Server"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "fixedColor": "blue",
            "mode": "fixed"
          },
          "custom": {
            "hideFrom": {
              "legend": false,
              "tooltip": false,
              "viz": false
            }
          },
          "mappings": [],
          "unit": "none"
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "2F6913DB"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#ff9900",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "18D508A1"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#3d85c6",
                  "mode": "fixed"
                }
              }
            ]
          },
          {
            "matcher": {
              "id": "byName",
              "options": "2A896980"
            },
            "properties": [
              {
                "id": "color",
                "value": {
                  "fixedColor": "#04b393",
                  "mode": "fixed"
                }
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 6,
        "x": 0,
        "y": 3
      },
      "id": 7,
      "options": {
        "legend": {
          "displayMode": "table",
          "placement": "right",
          "showLegend": true,
          "values": [
            "value"
          ]
        },
        "pieType": "donut",
        "reduceOptions": {
          "calcs": [
            "lastNotNull"
          ],
          "fields": "",
          "limit": 10,
          "values": true
        },
        "tooltip": {
          "mode": "single",
          "sort": "none"
        }
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "dataset": "playgrounddb2",
          "datasource": {
            "type": "mssql",
            "uid": "Microsoft SQL Server"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "\r\nSELECT\r\n    distinct(deviceid),\r\n    count(distinct deviceid) as deviceid_count, \r\n    count(distinct eventid) as event_count,\r\n    count(distinct eventname) as name_count\r\nFROM\r\n        OPENROWSET(\r\n        BULK 'aggregations/events/*/*/*/*',\r\n        DATA_SOURCE = 'ParquetDataLake',\r\n        FORMAT = 'PARQUET'\r\n    ) AS r\r\nWHERE\r\n\tCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\r\n    AND $__timeFilter(t)\r\n    and\r\n    deviceid in (${device:singlequote})\r\n    and\r\n    message in (${message:singlequote})\r\n    and\r\n    signal in (${signal:singlequote})\r\n    and\r\n    eventname in (${event_name:singlequote})\r\n    and\r\n    eventvalue = 1\r\nGROUP BY \r\n   deviceid",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "Events",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "deviceid",
                "event_count"
              ]
            }
          }
        }
      ],
      "type": "piechart"
    },
    {
      "datasource": {
        "type": "mssql",
        "uid": "Microsoft SQL Server"
      },
      "fieldConfig": {
        "defaults": {
          "color": {
            "mode": "thresholds"
          },
          "custom": {
            "align": "auto",
            "cellOptions": {
              "type": "auto"
            },
            "filterable": true,
            "inspect": false
          },
          "mappings": [],
          "min": -1,
          "thresholds": {
            "mode": "percentage",
            "steps": [
              {
                "color": "green",
                "value": null
              },
              {
                "color": "yellow",
                "value": 40
              },
              {
                "color": "orange",
                "value": 80
              }
            ]
          }
        },
        "overrides": [
          {
            "matcher": {
              "id": "byName",
              "options": "DashboardLink"
            },
            "properties": [
              {
                "id": "links",
                "value": [
                  {
                    "targetBlank": true,
                    "title": "",
                    "url": "${__value.raw}"
                  }
                ]
              }
            ]
          }
        ]
      },
      "gridPos": {
        "h": 7,
        "w": 24,
        "x": 0,
        "y": 10
      },
      "id": 6,
      "options": {
        "cellHeight": "sm",
        "footer": {
          "countRows": false,
          "fields": "",
          "reducer": [
            "sum"
          ],
          "show": false
        },
        "showHeader": true,
        "sortBy": [
          {
            "desc": true,
            "displayName": "t"
          }
        ]
      },
      "pluginVersion": "10.1.5",
      "targets": [
        {
          "dataset": "playgrounddb2",
          "datasource": {
            "type": "mssql",
            "uid": "Microsoft SQL Server"
          },
          "editorMode": "code",
          "format": "table",
          "rawQuery": true,
          "rawSql": "SELECT\r\n    *,\r\n    'd/uds-ev6/uds-ev6/?var-device=' + LOWER(DeviceId) + \r\n    '&from=' + CAST((CAST(DATEDIFF(SECOND, '1970-01-01 00:00:00', t) AS BIGINT) * 1000 + DATEPART(MILLISECOND, t) - 1200000) AS VARCHAR(50)) + \r\n    '&to=' + CAST((CAST(DATEDIFF(SECOND, '1970-01-01 00:00:00', t) AS BIGINT) * 1000 + DATEPART(MILLISECOND, t) + 1200000) AS VARCHAR(50)) AS DashboardLink\r\nFROM\r\n    OPENROWSET(\r\n        BULK 'aggregations/events/*/*/*/*',\r\n        DATA_SOURCE = 'ParquetDataLake',\r\n        FORMAT = 'PARQUET'\r\n    ) AS r\r\nWHERE\r\n\tCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\r\n    AND $__timeFilter(t)\r\n    and\r\n    deviceid in (${device:singlequote})\r\n    and\r\n    message in (${message:singlequote})\r\n    and\r\n    signal in (${signal:singlequote})\r\n    and\r\n    eventname in (${event_name:singlequote})\r\n    AND \r\n    eventvalue = 1\r\n    AND\r\n    eventid in (${event:singlequote})\r\nORDER BY t",
          "refId": "A",
          "sql": {
            "columns": [
              {
                "parameters": [],
                "type": "function"
              }
            ],
            "groupBy": [
              {
                "property": {
                  "type": "string"
                },
                "type": "groupBy"
              }
            ],
            "limit": 50
          }
        }
      ],
      "title": "Event Links",
      "transformations": [
        {
          "id": "filterFieldsByName",
          "options": {
            "include": {
              "names": [
                "t",
                "DashboardLink",
                "EventName",
                "DeviceID",
                "Message",
                "Signal",
                "SignalValue"
              ]
            }
          }
        },
        {
          "disabled": true,
          "id": "groupBy",
          "options": {
            "fields": {
              "DashboardLink": {
                "aggregations": [
                  "last"
                ],
                "operation": "aggregate"
              },
              "deviceid": {
                "aggregations": []
              },
              "duration": {
                "aggregations": [
                  "last"
                ],
                "operation": "aggregate"
              },
              "duration_min": {
                "aggregations": [
                  "last"
                ],
                "operation": "aggregate"
              },
              "tripid": {
                "aggregations": [],
                "operation": "groupby"
              }
            }
          }
        }
      ],
      "type": "table"
    }
  ],
  "refresh": "",
  "schemaVersion": 38,
  "style": "dark",
  "tags": [
    "public",
    "synapse"
  ],
  "templating": {
    "list": [
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT\n    distinct(deviceid)\nFROM\n     OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\nWHERE \nCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\ngroup by\n  deviceid",
        "description": "",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "device",
        "options": [],
        "query": "SELECT\n    distinct(deviceid)\nFROM\n     OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\nWHERE \nCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\ngroup by\n  deviceid",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": " SELECT\n    CONCAT('(','''',eventname, '|', message, '|', signal, '''',')') AS combined_signal\nFROM\n        OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\nWHERE \nCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\nGROUP BY\n    eventname, message, signal",
        "hide": 2,
        "includeAll": true,
        "multi": true,
        "name": "eventname_message_signal",
        "options": [],
        "query": " SELECT\n    CONCAT('(','''',eventname, '|', message, '|', signal, '''',')') AS combined_signal\nFROM\n        OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\nWHERE \nCONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\nGROUP BY\n    eventname, message, signal",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "event_name",
        "options": [],
        "query": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "refresh": 2,
        "regex": "/^([^|]+)/",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "message",
        "options": [],
        "query": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "refresh": 2,
        "regex": "/^(?:${event_name:pipe})\\|([^|]+)/",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": true,
          "text": [
            "All"
          ],
          "value": [
            "$__all"
          ]
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "signal",
        "options": [],
        "query": "SELECT * FROM (VALUES ${eventname_message_signal:csv}) AS t(col1);",
        "refresh": 2,
        "regex": "/^(?:${event_name:pipe})\\|(?:${message:pipe})\\|([^|]+)/",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": false
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT * FROM (VALUES (${device:singlequote})) AS t(col1)",
        "description": "",
        "hide": 0,
        "includeAll": false,
        "multi": true,
        "name": "device_focus",
        "options": [],
        "query": "SELECT * FROM (VALUES (${device:singlequote})) AS t(col1)",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 1,
        "type": "query"
      },
      {
        "current": {
          "selected": false,
          "text": "All",
          "value": "$__all"
        },
        "datasource": {
          "type": "mssql",
          "uid": "Microsoft SQL Server"
        },
        "definition": "SELECT TOP 100 eventid\nFROM (\n    SELECT DISTINCT eventid\n    FROM OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\n    WHERE \n        CONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) \n            BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\n        AND deviceid IN (${device_focus:singlequote})\n        AND message IN (${message:singlequote})\n        AND signal IN (${signal:singlequote})\n        AND eventname IN (${event_name:singlequote})\n        AND eventvalue = 1\n) AS distinct_events;",
        "hide": 0,
        "includeAll": true,
        "multi": true,
        "name": "event",
        "options": [],
        "query": "SELECT TOP 100 eventid\nFROM (\n    SELECT DISTINCT eventid\n    FROM OPENROWSET(\n        BULK 'aggregations/events/*/*/*/*',\n        DATA_SOURCE = 'ParquetDataLake',\n        FORMAT = 'PARQUET'\n    ) AS r\n    WHERE \n        CONCAT(r.filepath(1), '-', r.filepath(2), '-', r.filepath(3)) \n            BETWEEN CONVERT(date, $__timeFrom()) AND CONVERT(date, $__timeTo())\n        AND deviceid IN (${device_focus:singlequote})\n        AND message IN (${message:singlequote})\n        AND signal IN (${signal:singlequote})\n        AND eventname IN (${event_name:singlequote})\n        AND eventvalue = 1\n) AS distinct_events;",
        "refresh": 2,
        "regex": "",
        "skipUrlSync": false,
        "sort": 0,
        "type": "query"
      }
    ]
  },
  "time": {
    "from": "now-90d",
    "to": "now"
  },
  "timepicker": {},
  "timezone": "",
  "title": "event-summary-synapse",
  "uid": "event-summary-synapse",
  "version": 12,
  "weekStart": ""
}