Fix query
This commit is contained in:
parent
d7ca58aa3e
commit
febb8949f4
@ -80,10 +80,6 @@
|
|||||||
"endtime": "{..../Period_not_Global_0.custom.EndDate}",
|
"endtime": "{..../Period_not_Global_0.custom.EndDate}",
|
||||||
"starttime": "{..../Period_not_Global_0.custom.StartDate}"
|
"starttime": "{..../Period_not_Global_0.custom.StartDate}"
|
||||||
},
|
},
|
||||||
"polling": {
|
|
||||||
"enabled": true,
|
|
||||||
"rate": "60"
|
|
||||||
},
|
|
||||||
"queryPath": "Status/Scanner History",
|
"queryPath": "Status/Scanner History",
|
||||||
"returnFormat": "dataset"
|
"returnFormat": "dataset"
|
||||||
},
|
},
|
||||||
@ -1091,21 +1087,20 @@
|
|||||||
},
|
},
|
||||||
"position": {
|
"position": {
|
||||||
"height": 894,
|
"height": 894,
|
||||||
"width": "100%",
|
"width": 1902,
|
||||||
"x": -1
|
"x": -1
|
||||||
},
|
},
|
||||||
"propConfig": {
|
"propConfig": {
|
||||||
"props.query": {
|
"props.data": {
|
||||||
"binding": {
|
"binding": {
|
||||||
"config": {
|
"config": {
|
||||||
"expression": "now(1000)"
|
"parameters": {
|
||||||
|
"endDate": "{..../Period_not_Global_0.custom.EndDate}",
|
||||||
|
"startDate": "{..../Period_not_Global_0.custom.StartDate}"
|
||||||
|
},
|
||||||
|
"queryPath": "Status/Lane Status"
|
||||||
},
|
},
|
||||||
"previewEnabled": false,
|
"type": "query"
|
||||||
"type": "expr"
|
|
||||||
},
|
|
||||||
"onChange": {
|
|
||||||
"enabled": null,
|
|
||||||
"script": "\tfrom system import date\n\t\n\tdef testRow(lane, fullCount, jamCount, fullDuration, jamDuration):\n\t return {\n\t \"value\": {\n\t \"Lane\": lane,\n\t \"FullCount\": fullCount,\n\t \"JamCount\": jamCount,\n\t \"FullDuration\": fullDuration,\n\t \"JamDuration\": jamDuration\n\t }\n\t }\n\t\n\ttry:\n\t data \u003d system.db.runNamedQuery(\n\t \"Status/Lane Status\",\n\t {\n\t \"startDate\": self.parent.parent.parent.getChild(\"Period_not_Global_0\").custom.StartDate,\n\t \"endDate\": self.parent.parent.parent.getChild(\"Period_not_Global_0\").custom.EndDate\n\t }\n\t )\n\t\n\t result \u003d []\n\t for row in data:\n\t result.append(testRow(\n\t row[\"lane\"],\n\t row[\"full_count\"],\n\t row[\"jam_count\"],\n\t row[\"full_duration\"],\n\t row[\"jam_duration\"]\n\t ))\n\t \n\t self.props.data \u003d result\n\t\n\texcept Exception as e:\n\t system.util.getLogger(\"AlarmScript\").error(\"Error: \" + str(e))\n\t self.props.data \u003d []"
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@ -1452,548 +1447,6 @@
|
|||||||
"width": ""
|
"width": ""
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"data": [
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 1,
|
|
||||||
"FullDuration": "00:07:48",
|
|
||||||
"JamCount": 1,
|
|
||||||
"JamDuration": "00:07:48",
|
|
||||||
"Lane": "S02_101CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 6,
|
|
||||||
"FullDuration": "00:28:44",
|
|
||||||
"JamCount": 4,
|
|
||||||
"JamDuration": "00:27:24",
|
|
||||||
"Lane": "S02_102CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_103CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_104CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_105CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_106CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_107CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_108CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_109CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 1,
|
|
||||||
"FullDuration": "00:18:19",
|
|
||||||
"JamCount": 1,
|
|
||||||
"JamDuration": "00:18:19",
|
|
||||||
"Lane": "S02_110CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_111CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_112CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_113CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_114CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_115CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_116CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_117CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_118CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_119CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_120CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_121CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_122CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_123CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_124CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_125CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_126CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_127CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_128CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 2,
|
|
||||||
"FullDuration": "00:00:46",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_129CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 2,
|
|
||||||
"FullDuration": "00:19:03",
|
|
||||||
"JamCount": 1,
|
|
||||||
"JamDuration": "00:00:13",
|
|
||||||
"Lane": "S02_130CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_201CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_202CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_203CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_204CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_205CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_206CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_207CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_208CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_209CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_210CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_211CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_212CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_213CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_214CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_215CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_216CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_217CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_218CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_219CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_220CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_221CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_222CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_223CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_224CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_225CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_226CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_227CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_228CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_229CH"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"value": {
|
|
||||||
"FullCount": 0,
|
|
||||||
"FullDuration": "00:00:00",
|
|
||||||
"JamCount": 0,
|
|
||||||
"JamDuration": "00:00:00",
|
|
||||||
"Lane": "S02_230CH"
|
|
||||||
}
|
|
||||||
}
|
|
||||||
],
|
|
||||||
"filter": {
|
"filter": {
|
||||||
"enabled": true
|
"enabled": true
|
||||||
},
|
},
|
||||||
@ -3909,7 +3362,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "May 29, 2025 9:57 AM",
|
"formattedValue": "May 29, 2025 1:08 PM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 26, 2021",
|
"date": "Mar 26, 2021",
|
||||||
"datetime": "Mar 26, 2021 12:00 AM",
|
"datetime": "Mar 26, 2021 12:00 AM",
|
||||||
@ -3919,9 +3372,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1748500031797
|
1748511500773
|
||||||
],
|
],
|
||||||
"$ts": 1748498231000
|
"$ts": 1748509700000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
@ -4069,7 +3522,7 @@
|
|||||||
},
|
},
|
||||||
"props": {
|
"props": {
|
||||||
"dismissOnSelect": false,
|
"dismissOnSelect": false,
|
||||||
"formattedValue": "May 29, 2025 10:27 AM",
|
"formattedValue": "May 29, 2025 1:38 PM",
|
||||||
"formattedValues": {
|
"formattedValues": {
|
||||||
"date": "Mar 29, 2021",
|
"date": "Mar 29, 2021",
|
||||||
"datetime": "Mar 29, 2021 1:37 PM",
|
"datetime": "Mar 29, 2021 1:37 PM",
|
||||||
@ -4079,9 +3532,9 @@
|
|||||||
"$": [
|
"$": [
|
||||||
"ts",
|
"ts",
|
||||||
192,
|
192,
|
||||||
1748500031797
|
1748511500773
|
||||||
],
|
],
|
||||||
"$ts": 1748500031000
|
"$ts": 1748511500000
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"type": "ia.input.date-time-input"
|
"type": "ia.input.date-time-input"
|
||||||
|
|||||||
@ -128,10 +128,10 @@ Aggregated AS (
|
|||||||
) f ON dl.lane_number = f.lane_number
|
) f ON dl.lane_number = f.lane_number
|
||||||
)
|
)
|
||||||
SELECT
|
SELECT
|
||||||
lane,
|
lane AS Lane,
|
||||||
jam_count,
|
jam_count AS FullCount,
|
||||||
full_count,
|
full_count AS JamCount,
|
||||||
COALESCE(SEC_TO_TIME(jam_duration_seconds), '00:00:00') AS jam_duration,
|
COALESCE(SEC_TO_TIME(jam_duration_seconds), '00:00:00') AS JamDuration,
|
||||||
COALESCE(SEC_TO_TIME(full_duration_seconds), '00:00:00') AS full_duration
|
COALESCE(SEC_TO_TIME(full_duration_seconds), '00:00:00') AS FullDuration
|
||||||
FROM Aggregated
|
FROM Aggregated
|
||||||
ORDER BY lane;
|
ORDER BY lane;
|
||||||
Loading…
x
Reference in New Issue
Block a user