teedy-statistics/sismics-teedy.json

5985 lines
185 KiB
JSON

{
"__inputs": [
{
"name": "DS_THINGS.FABLABCHEMNITZ.DE",
"label": "things.fablabchemnitz.de",
"description": "",
"type": "datasource",
"pluginId": "postgres",
"pluginName": "PostgreSQL"
}
],
"__requires": [
{
"type": "grafana",
"id": "grafana",
"name": "Grafana",
"version": "7.3.7"
},
{
"type": "panel",
"id": "graph",
"name": "Graph",
"version": ""
},
{
"type": "datasource",
"id": "postgres",
"name": "PostgreSQL",
"version": "1.0.0"
},
{
"type": "panel",
"id": "singlestat",
"name": "Singlestat",
"version": ""
},
{
"type": "panel",
"id": "table",
"name": "Table",
"version": ""
},
{
"type": "panel",
"id": "table-old",
"name": "Table (old)",
"version": ""
}
],
"annotations": {
"list": [
{
"$$hashKey": "object:883",
"builtIn": 1,
"datasource": "-- Grafana --",
"enable": true,
"hide": true,
"iconColor": "rgba(0, 211, 255, 1)",
"name": "Annotations & Alerts",
"type": "dashboard"
}
]
},
"editable": true,
"gnetId": null,
"graphTooltip": 0,
"id": null,
"links": [],
"panels": [
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 0
},
"id": 43,
"panels": [
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 1
},
"id": 44,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"$$hashKey": "object:667",
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:693",
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"$$hashKey": "object:694",
"text": "*.zip",
"value": "application/zip"
},
{
"$$hashKey": "object:695",
"text": "*.pdf",
"value": "application/pdf"
},
{
"$$hashKey": "object:696",
"text": "*.png",
"value": "image/png"
},
{
"$$hashKey": "object:697",
"text": "*.csv",
"value": "text/csv"
},
{
"$$hashKey": "object:698",
"text": "*.txt",
"value": "text/plain"
},
{
"$$hashKey": "object:699",
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"$$hashKey": "object:700",
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"$$hashKey": "object:701",
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n D.doc_title_c as \"Gerät/Maschine\"\nFROM t_document AS D\nJOIN t_document_tag AS DT ON D.doc_id_c = DT.dot_iddocument_c\nJOIN t_tag AS T ON T.tag_id_c = DT.dot_idtag_c\nWHERE\n D.doc_deletedate_d IS NULL AND\n T.tag_name_c in ('Nutzungsgebühr')AND\n DT.dot_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Geräte/Maschine mit Nutzungsgebühren",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 1
},
"id": 47,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"$$hashKey": "object:667",
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:693",
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"$$hashKey": "object:694",
"text": "*.zip",
"value": "application/zip"
},
{
"$$hashKey": "object:695",
"text": "*.pdf",
"value": "application/pdf"
},
{
"$$hashKey": "object:696",
"text": "*.png",
"value": "image/png"
},
{
"$$hashKey": "object:697",
"text": "*.csv",
"value": "text/csv"
},
{
"$$hashKey": "object:698",
"text": "*.txt",
"value": "text/plain"
},
{
"$$hashKey": "object:699",
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"$$hashKey": "object:700",
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"$$hashKey": "object:701",
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n D.doc_title_c as \"Gerät/Maschine\",\n T.tag_name_c as \"Aktueller Zustand\"\nFROM t_document AS D\nJOIN t_document_tag AS DT ON D.doc_id_c = DT.dot_iddocument_c\nJOIN t_tag AS T ON T.tag_id_c = DT.dot_idtag_c\nWHERE\n T.tag_name_c in ('außer_Betrieb', 'defekt', 'in_Reparatur', 'unbenutzt_unbekannt', 'eingeschränkt_beschädigt', 'verloren_vermisst', 'unvollständig') AND\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Ungepflegtes",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 14
},
"id": 45,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 0,
"desc": false
},
"styles": [
{
"$$hashKey": "object:3397",
"alias": "Nr",
"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": "row_number",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT ROW_NUMBER() OVER(), * FROM \n (SELECT\n D.doc_title_c as \"Gerät/Maschine\",\n T.tag_name_c as \"Stufe/Nutzungsberechtigung\"\n FROM t_document AS D\n JOIN t_document_tag AS DT ON D.doc_id_c = DT.dot_iddocument_c\n JOIN t_tag AS T ON T.tag_id_c = DT.dot_idtag_c\n WHERE\n (T.tag_name_c IN ('Nutzungsberechtigung') OR /*in parent*/\n T.tag_name_c IN (SELECT /*or in children*/\n T.tag_name_c\n FROM t_tag\n JOIN (SELECT \n tag_id_c, tag_name_c \n FROM t_tag \n WHERE \n tag_name_c = 'Nutzungsberechtigung' AND\n t_tag.tag_deletedate_d IS NULL\n ) AS PARENT ON PARENT.tag_id_c = t_tag.tag_idparent_c\n WHERE t_tag.tag_deletedate_d IS NULL)\n ) AND \n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL AND\n T.tag_deletedate_d IS NULL\n ORDER BY T.tag_name_c\n ) AS res\n;\n",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Nutzungsberechtigungen",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 14
},
"id": 63,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 0,
"desc": false
},
"styles": [
{
"$$hashKey": "object:3397",
"alias": "Nr",
"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": "row_number",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*get documents with defined IDs*/\nSELECT\n D.doc_title_c AS \"Titel\",\n count(*) AS \"Duplikate\"\nFROM t_document AS D\nWHERE\n D.doc_deletedate_d IS NULL\nGROUP BY D.doc_title_c\nHAVING count(*) > 1\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Namensduplikate",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 0,
"y": 27
},
"id": 61,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"$$hashKey": "object:859",
"alias": "",
"align": "right",
"colorMode": null,
"colors": [
"rgba(245, 54, 54, 0.9)",
"rgba(237, 129, 40, 0.89)",
"rgba(50, 172, 45, 0.97)"
],
"dateFormat": "DD.MM.YYYY HH:MM:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Masse (Tonnen)",
"thresholds": [],
"type": "number",
"unit": "masst"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n Werkstattbereich AS \"Werkstattbereich\",\n SUM (\"Gewicht (kg)\"::FLOAT / 1000) AS \"Masse (Tonnen)\"\n FROM (SELECT DISTINCT\n CASE WHEN WB.\"Werkstattbereich\" IS NULL\n THEN 'Keinem Bereich zugeordnet'\n ELSE CONCAT('Bereich: ', WB.\"Werkstattbereich\" )\n END AS Werkstattbereich,\n \"Gewicht (kg)\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n FULL JOIN (SELECT \n doc_id_c,\n dme_value_c AS \"Gewicht (kg)\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'Gewicht (kg)') AS RES1 ON RES1.doc_id_c = t_document.doc_id_c\n FULL JOIN (SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c AS \"Werkstattbereich\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_name_c IN (\n WITH RECURSIVE BEREICHE AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Werkstattbereich'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN BEREICHE s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t BEREICHE\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS WB ON WB.doc_id_c = t_document.doc_id_c\n WHERE \n \"Gewicht (kg)\" IS NOT NULL AND\n t_document.doc_deletedate_d IS NULL AND\n t_tag.tag_deletedate_d IS NULL AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS RES\nGROUP BY Werkstattbereich\nUNION\nSELECT\n 'Gesamt',\n SUM (\"Gewicht (kg)\"::FLOAT / 1000) AS \"Masse (Tonnen)\"\nFROM (SELECT DISTINCT\n \"Gewicht (kg)\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n FULL JOIN (SELECT \n doc_id_c,\n dme_value_c AS \"Gewicht (kg)\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'Gewicht (kg)') AS RES1 ON RES1.doc_id_c = t_document.doc_id_c \n FULL JOIN (SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c AS \"Werkstattbereich\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_name_c IN (\n WITH RECURSIVE BEREICHE AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Werkstattbereich'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN BEREICHE s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t BEREICHE\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS WB ON WB.doc_id_c = t_document.doc_id_c\n WHERE \n \"Gewicht (kg)\" IS NOT NULL AND\n t_document.doc_deletedate_d IS NULL AND\n t_tag.tag_deletedate_d IS NULL AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS RES\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Werkstattbereiche und Masseverteilung",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 27
},
"id": 58,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"$$hashKey": "object:667",
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:693",
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"$$hashKey": "object:694",
"text": "*.zip",
"value": "application/zip"
},
{
"$$hashKey": "object:695",
"text": "*.pdf",
"value": "application/pdf"
},
{
"$$hashKey": "object:696",
"text": "*.png",
"value": "image/png"
},
{
"$$hashKey": "object:697",
"text": "*.csv",
"value": "text/csv"
},
{
"$$hashKey": "object:698",
"text": "*.txt",
"value": "text/plain"
},
{
"$$hashKey": "object:699",
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"$$hashKey": "object:700",
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"$$hashKey": "object:701",
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n t_document.doc_title_c as \"Gerät/Maschine\"\nFROM t_document\nWHERE\n t_document.doc_deletedate_d IS NULL\n\nEXCEPT\n\nSELECT DISTINCT\n t_document.doc_title_c as \"Gerät/Maschine\"\nFROM t_document\nJOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\nJOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\nWHERE\n (t_tag.tag_name_c IN ('Werkstattbereich') OR /*in parent*/\n t_tag.tag_name_c IN (SELECT /*or in children*/\n t_tag.tag_name_c\n FROM t_tag\n JOIN (SELECT \n tag_id_c, tag_name_c \n FROM t_tag \n WHERE \n tag_name_c = 'Werkstattbereich' AND\n t_tag.tag_deletedate_d IS NULL\n ) AS PARENT ON PARENT.tag_id_c = t_tag.tag_idparent_c\n WHERE t_tag.tag_deletedate_d IS NULL)) AND \n t_document_tag.dot_deletedate_d IS NULL AND\n t_document.doc_deletedate_d IS NULL AND\n t_tag.tag_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Gegenstände ohne festgelegten Ort",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 17,
"w": 12,
"x": 0,
"y": 40
},
"id": 64,
"links": [],
"options": {
"showHeader": false
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "WITH RECURSIVE BEREICHE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n\tWHERE\n\t\ttag_name_c = 'Werkstattbereich' AND\n\t\tt_tag.tag_deletedate_d IS NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN BEREICHE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL\n) SELECT\n\t*\nFROM\n\tBEREICHE;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Werkstattbereiche (rekursiv) - Test",
"type": "table"
},
{
"cacheTimeout": null,
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 4,
"w": 12,
"x": 12,
"y": 40
},
"id": 51,
"links": [],
"options": {
"showHeader": false
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT * FROM (SELECT\n dme_value_c::int\nFROM t_document AS D\nFULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\nFULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\nWHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n M.dme_value_c IS NOT NULL AND\n N.met_name_c = 'id'\nORDER BY dme_value_c DESC\nLIMIT 1) AS MINIMUM\n\nunion\n\nSELECT * FROM (SELECT\n dme_value_c::int\nFROM t_document AS D\nFULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\nFULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\nWHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n M.dme_value_c IS NOT NULL AND\n N.met_name_c = 'id'\nORDER BY dme_value_c ASC\nLIMIT 1) AS MAXIMUM\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "IDs - Minimum und Maximum (für manuelle Vergabe)",
"type": "table"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 13,
"w": 12,
"x": 12,
"y": 44
},
"id": 53,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"$$hashKey": "object:859",
"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": "DD.MM.YYYY HH:MM:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Datum",
"thresholds": [],
"type": "date",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n t_document.doc_title_c as \"Gerät/Maschine\",\n t_document.doc_createdate_d AS \"Datum\"\nFROM t_document\nWHERE\n t_document.doc_deletedate_d IS NULL\nORDER BY t_document.doc_createdate_d ASC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Neuestes Inventar",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 11,
"w": 24,
"x": 0,
"y": 57
},
"id": 48,
"links": [],
"pageSize": 5,
"showHeader": true,
"sort": {
"col": 2,
"desc": true
},
"styles": [
{
"$$hashKey": "object:781",
"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": "DD.MM.YYYY HH:MM:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Zeitstempel/Datum",
"thresholds": [],
"type": "date",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": " SELECT\n t_document.doc_title_c AS \"Titel\",\n t_comment.com_content_c AS \"Kommentar\",\n t_comment.com_createdate_d AS \"Zeitstempel/Datum\",\n t_user.use_username_c AS \"Nutzer\"\n FROM t_comment\n JOIN t_user ON t_comment.com_iduser_c = t_user.use_id_c\n JOIN t_document ON t_comment.com_iddoc_c = t_document.doc_id_C\n WHERE\n t_document.doc_deletedate_d IS NULL AND\n t_comment.com_deletedate_d IS NULL AND\n t_user.use_username_c != 'guest'\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Neueste Kommentare",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Für einen funktionierendes Mapping aus Metadaten-IDs und Dokumenten IDs sollte jedes Objekt eine eindeutige Integer-ID haben, damit die Inventaraufkleber funktionieren",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 12,
"w": 8,
"x": 0,
"y": 68
},
"id": 50,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": null,
"desc": false
},
"styles": [
{
"$$hashKey": "object:1237",
"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": "id",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:1258",
"text": "NULL",
"value": "null"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\",\n \"id\"\nFROM t_document AS D\n JOIN (\n SELECT\n doc_id_c,\n dme_value_c::INT AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'id' AND\n dme_value_c IN ( /*find Duplicates*/\n SELECT\n dme_value_c AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n (N.met_name_c = 'id' OR N.met_name_c IS NULL)\n GROUP BY \"id\"\n HAVING count(*) > 1)\n ) AS RES ON RES.doc_id_c = D.doc_id_c\nWHERE\n D.doc_deletedate_d IS NULL\n; ",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Duplicate IDs",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 12,
"w": 16,
"x": 8,
"y": 68
},
"id": 52,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": null,
"desc": false
},
"styles": [
{
"$$hashKey": "object:1237",
"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": "id",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:1258",
"text": "NULL",
"value": "null"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*get documents with defined IDs*/\nSELECT \n ROW_NUMBER() OVER() AS \"Nr.\",\n * \nFROM (\n SELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\",\n \"id\",\n \"Eigentümer\"\n FROM t_document AS D\nFULL JOIN (\n SELECT \n doc_id_c, dme_value_c AS \"Eigentümer\" \n FROM t_document AS D \n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c \n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c \n WHERE \n D.doc_deletedate_d IS NULL AND \n N.met_deletedate_d IS NULL AND \n N.met_name_c = 'Eigentümer') AS RES2 ON RES2.doc_id_c = D.doc_id_c\n FULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c::INT AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'id') AS RES ON RES.doc_id_c = D.doc_id_c \n WHERE\n D.doc_deletedate_d IS NULL\n ) AS RES\n ORDER BY \"id\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Gesamtliste (für Export)",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 12,
"w": 16,
"x": 8,
"y": 80
},
"id": 65,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": null,
"desc": false
},
"styles": [
{
"$$hashKey": "object:1237",
"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": "id",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:1258",
"text": "NULL",
"value": "null"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*get documents with defined IDs*/\nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\",\n \"id\"\nFROM t_document AS D\nFULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c::INT AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NOT NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'id') AS RES ON RES.doc_id_c = D.doc_id_c \nWHERE\n D.doc_deletedate_d IS NOT NULL\n\nEXCEPT\n \nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\",\n \"id\"\nFROM t_document AS D\nFULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c::INT AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NOT NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'id') AS RES ON RES.doc_id_c = D.doc_id_c \nWHERE\n D.doc_deletedate_d IS NOT NULL AND\n \"id\" IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Gelöschte Objekte (mit IDs)",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 15,
"w": 24,
"x": 0,
"y": 92
},
"id": 60,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 3,
"desc": false
},
"styles": [
{
"$$hashKey": "object:1237",
"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": "id",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:1258",
"text": "NULL",
"value": "null"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT \n doc_title_c AS \"Titel\", \n doc_publisher_c AS \"Verleger\", \n \"ISBN-13\", \n \"Erscheinungsdatum\", \n \"Autoren/Herausgeber\" \nFROM t_document AS D \nFULL JOIN t_document_tag ON D.doc_id_c = t_document_tag.dot_iddocument_c\nFULL JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c \nFULL JOIN (\n SELECT \n doc_id_c, \n dme_value_c AS \"ISBN-13\" \n FROM t_document AS D \n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c \n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c \n WHERE \n D.doc_deletedate_d IS NULL AND \n N.met_deletedate_d IS NULL AND \n N.met_name_c = 'ISBN-13') AS RES1 ON RES1.doc_id_c = D.doc_id_c \nFULL JOIN (\n SELECT \n doc_id_c, dme_value_c AS \"Erscheinungsdatum\" \n FROM t_document AS D \n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c \n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c \n WHERE \n D.doc_deletedate_d IS NULL AND \n N.met_deletedate_d IS NULL AND \n N.met_name_c = 'Erscheinungsdatum') AS RES2 ON RES2.doc_id_c = D.doc_id_c \nFULL JOIN (\n SELECT \n doc_id_c, \n dme_value_c AS \"Autoren/Herausgeber\" \n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND \n N.met_deletedate_d IS NULL AND \n N.met_name_c = 'Autoren/Herausgeber') AS RES3 ON RES3.doc_id_c = D.doc_id_c \nWHERE \n t_tag.tag_name_c in ('Literatur') AND \n t_tag.tag_deletedate_d IS NULL AND\n t_document_tag.dot_deletedate_d IS NULL AND \n D.doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Literaturliste",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Unter Umständen hat ein Objekt mehrere Stromquellen. In diesem Fall kann das Objekt u.U. mehrfach in der Liste auftauchen!",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 107
},
"id": 46,
"links": [],
"pageSize": 10,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"$$hashKey": "object:5448",
"alias": "Nr",
"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": "row_number",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"$$hashKey": "object:5479",
"alias": "Gerät/Maschine",
"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": "titel",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"$$hashKey": "object:5519",
"alias": "Werkstattbereich",
"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": "werkstattbereich",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"$$hashKey": "object:5540",
"alias": "Betriebsmittelart",
"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": "betriebsmittelart",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"$$hashKey": "object:5580",
"alias": "Stromversorgung",
"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": "strom",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:5662",
"text": "230V Schuko 3-polig",
"value": "230V_Schuko_3-polig"
},
{
"$$hashKey": "object:5664",
"text": "230V 2-polig",
"value": "230V_2-polig"
},
{
"$$hashKey": "object:5666",
"text": "CEE Drehstrom",
"value": "CEE_Drehstrom"
},
{
"$$hashKey": "object:231",
"text": "in Teedy ergänzen",
"value": "null"
}
]
},
{
"$$hashKey": "object:5622",
"alias": "Schutzklasse",
"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": "schutzklasse",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"$$hashKey": "object:271",
"text": "in Teedy zu ergänzen",
"value": "null"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*Warnung. Diese SQL-Abfrage muss mit der Tag-Struktur synchron gehalten werden, da Verschachtelungen und Änderungen nicht automatisch erkannt werden*/\nSELECT \n ROW_NUMBER() OVER() AS \"Nr.\", \n * \nFROM (\n SELECT DISTINCT\n \"id\",\n t_document.doc_title_c AS Titel,\n WB.\"Werkstattbereich\" AS Werkstattbereich,\n BA.\"Betriebsmittelart\" AS Betriebsmittelart,\n AN.\"Strom\" AS Strom,\n SS.\"Schutzklasse\" AS Schutzklasse,\n \"Nennleistung (W)\"::FLOAT,\n \"Gewicht (kg)\"::FLOAT\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n FULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c AS \"Gewicht (kg)\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'Gewicht (kg)') AS RES1 ON RES1.doc_id_c = t_document.doc_id_c\n FULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c AS \"Nennleistung (W)\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'Nennleistung (W)') AS RES2 ON RES2.doc_id_c = t_document.doc_id_c\n FULL JOIN (\n SELECT\n doc_id_c,\n dme_value_c AS \"id\"\n FROM t_document AS D\n FULL JOIN t_document_metadata AS M ON M.dme_iddocument_c = D.doc_id_c\n FULL JOIN t_metadata AS N ON M.dme_idmetadata_c = N.met_id_c\n WHERE\n D.doc_deletedate_d IS NULL AND\n N.met_deletedate_d IS NULL AND\n N.met_name_c = 'id') AS RES3 ON RES3.doc_id_c = t_document.doc_id_c \n FULL JOIN (\n SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c as \"Strom\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_name_c IN (\n WITH RECURSIVE RES AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Strom'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN RES s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t RES\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS AN on AN.doc_id_c = t_document.doc_id_c\n FULL JOIN (\n SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c as \"Betriebsmittelart\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_name_c IN (\n WITH RECURSIVE RES AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Betriebsmittelart'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN RES s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t RES\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS BA on BA.doc_id_c = t_document.doc_id_c\n FULL JOIN (\n SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c as \"Schutzklasse\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_name_c IN (\n WITH RECURSIVE RES AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Schutzklasse'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN RES s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t RES\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS SS on SS.doc_id_c = t_document.doc_id_c\n FULL JOIN (\n SELECT\n t_document.doc_id_c,\n t_tag.tag_name_c as \"Werkstattbereich\"\n FROM t_document\n JOIN t_document_tag ON t_document.doc_id_c = t_document_tag.dot_iddocument_c\n JOIN t_tag ON t_tag.tag_id_c = t_document_tag.dot_idtag_c\n WHERE\n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_name_c IN (\n WITH RECURSIVE RES AS (SELECT\n t_tag.tag_id_c,\n t_tag.tag_idparent_c,\n t_tag.tag_name_c\n FROM t_tag WHERE tag_name_c = 'Werkstattbereich'\n UNION\tSELECT\n e.tag_id_c,\n e.tag_idparent_c,\n e.tag_name_c\n FROM t_tag AS e INNER JOIN RES s ON s.tag_id_c = e.tag_idparent_c\n ) SELECT tag_name_c FROM\t RES\n ) AND\n t_document_tag.dot_deletedate_d IS NULL\n ) AS WB on WB.doc_id_c = t_document.doc_id_c\n WHERE\n (AN.\"Strom\" IS NOT NULL OR\n SS.\"Schutzklasse\" IS NOT NULL OR\n BA.\"Betriebsmittelart\" IS NOT NULL) AND \n t_tag.tag_deletedate_d IS NULL\n ORDER BY titel ASC) AS res\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Prüfliste DGUV-3 (kann Duplikate und nicht zu prüfende Batterie-Geräte enthalten!)",
"transform": "table",
"type": "table-old"
}
],
"title": "Inventar",
"type": "row"
},
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 1
},
"id": 22,
"panels": [
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 0,
"y": 2
},
"id": 5,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_document\nWHERE doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Dokumente",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 3,
"y": 2
},
"id": 4,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_file\nWHERE fil_deletedate_d IS NULL \n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Dateien",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 6,
"y": 2
},
"id": 3,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_user\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Benutzer",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 9,
"y": 2
},
"id": 10,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_authentication_token\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Auth Tokens",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 12,
"y": 2
},
"id": 6,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_comment\nWHERE com_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Kommentare",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 15,
"y": 2
},
"id": 8,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_audit_log\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Audit Einträge",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 18,
"y": 2
},
"id": 2,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_tag\nWHERE tag_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Tags",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 2
},
"id": 11,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_share\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Shares",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 0,
"y": 5
},
"id": 31,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT COUNT(*) from t_document where doc_deletedate_d IS NOT NULL",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Gelöschte Dokumente",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 3,
"y": 5
},
"id": 35,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT COUNT(*) from t_file where fil_deletedate_d IS NOT NULL",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Gelöschte Dateien",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 6,
"y": 5
},
"id": 17,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\nCOUNT(*)\nFROM\n t_user\nWHERE use_totpkey_c IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Benutzer ohne 2FA",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 9,
"y": 5
},
"id": 32,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT COUNT\n (*) \nFROM t_file \nWHERE \n fil_iddoc_c IS NULL AND \n fil_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Dateien in Schnellablage",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "first"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 12,
"y": 5
},
"id": 37,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_comment\nWHERE com_deletedate_d IS NOT NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Gelöschte Kommentare",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Der Tag, an dem die Instanz online ging",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 15,
"y": 5
},
"id": 29,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n TO_CHAR(log_createdate_d::DATE, 'DD.MM.YYYY HH:mm:ss')\nFROM\n t_audit_log\n LIMIT 1\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Erster Audit Eintrag",
"type": "singlestat",
"valueFontSize": "50%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "first"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 18,
"y": 5
},
"id": 36,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*)\nFROM\n t_tag\nWHERE tag_deletedate_d IS NOT NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Gelöschte Tags",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 5
},
"id": 14,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*get the database name by checking access permissions and check it's database size*/\nSELECT \n pg_size_pretty(pg_database_size(table_catalog) ) AS \"Datenbankgröße\"\nFROM information_schema.table_privileges\nWHERE\n table_name = 't_acl' AND\n privilege_type = 'SELECT'\nLIMIT 1\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Datenbankgröße",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "first"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 3,
"y": 8
},
"id": 16,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\nCOUNT(*)\nFROM\n t_file\nWHERE fil_content_c IS NOT NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "OCR indexierte Dateien",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "first"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Tags which have children but no parent",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 18,
"y": 8
},
"id": 66,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "WITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE \n t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\tCOUNT(tag_name_c)\nFROM\n\tTAGTREE\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Root Tags",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
},
{
"cacheTimeout": null,
"colorBackground": false,
"colorValue": false,
"colors": [
"#299c46",
"rgba(237, 129, 40, 0.89)",
"#d44a3a"
],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Tags which have parents",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"format": "none",
"gauge": {
"maxValue": 100,
"minValue": 0,
"show": false,
"thresholdLabels": false,
"thresholdMarkers": true
},
"gridPos": {
"h": 3,
"w": 3,
"x": 21,
"y": 8
},
"id": 67,
"interval": null,
"links": [],
"mappingType": 1,
"mappingTypes": [
{
"name": "value to text",
"value": 1
},
{
"name": "range to text",
"value": 2
}
],
"maxDataPoints": 100,
"nullPointMode": "connected",
"nullText": null,
"postfix": "",
"postfixFontSize": "50%",
"prefix": "",
"prefixFontSize": "50%",
"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": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "WITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NOT NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\tCOUNT(tag_name_c)\nFROM\n\tTAGTREE\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": "",
"timeFrom": null,
"timeShift": null,
"title": "Parent Tags",
"type": "singlestat",
"valueFontSize": "80%",
"valueMaps": [
{
"op": "=",
"text": "N/A",
"value": "null"
}
],
"valueName": "avg"
}
],
"title": "Allgemein",
"type": "row"
},
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 2
},
"id": 26,
"panels": [
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 10,
"w": 5,
"x": 0,
"y": 3
},
"id": 19,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"text": "*.zip",
"value": "application/zip"
},
{
"text": "*.pdf",
"value": "application/pdf"
},
{
"text": "*.png",
"value": "image/png"
},
{
"text": "*.csv",
"value": "text/csv"
},
{
"text": "*.txt",
"value": "text/plain"
},
{
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n fil_mimetype_c AS \"Dateityp\"\nFROM t_file\nWHERE fil_deletedate_d IS NULL\nGROUP BY fil_mimetype_c\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dateien nach Dateityp",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 10,
"w": 5,
"x": 5,
"y": 3
},
"id": 15,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"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": 0,
"mappingType": 1,
"pattern": "Anzahl",
"thresholds": [],
"type": "number",
"unit": "none"
},
{
"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": 0,
"mappingType": 1,
"pattern": "Jahr",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_file AS F\nFULL JOIN t_document AS D ON D.doc_id_c = F.fil_iddoc_c\nWHERE F.fil_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dateien pro Jahr (nach Dokumentendatum)",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 10,
"w": 5,
"x": 10,
"y": 3
},
"id": 13,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"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": 0,
"mappingType": 1,
"pattern": "Anzahl",
"thresholds": [],
"type": "number",
"unit": "none"
},
{
"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": 0,
"mappingType": 1,
"pattern": "Jahr",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM fil_createdate_d) AS \"Jahr\"\nFROM t_file\nWHERE fil_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dateien pro Jahr (nach Erstelldatum)",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 10,
"w": 5,
"x": 15,
"y": 3
},
"id": 33,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"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": 0,
"mappingType": 1,
"pattern": "Anzahl",
"thresholds": [],
"type": "number",
"unit": "none"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT \n COUNT(*) AS \"Anzahl\",\n use_username_c AS \"Benutzer\"\nFROM t_file as T\nJOIN t_user AS U ON U.use_id_c = t.fil_iduser_c\nWHERE \n fil_iddoc_c IS NULL AND \n fil_deletedate_d IS NULL\nGROUP BY \"Benutzer\"\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dateien pro Benutzer in Schnellablage",
"transform": "table",
"type": "table-old"
}
],
"title": "Dateien",
"type": "row"
},
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 3
},
"id": 24,
"panels": [
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 5,
"x": 0,
"y": 13
},
"id": 20,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"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": 0,
"mappingType": 1,
"pattern": "Anzahl",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"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": "SORTY_HIDDEN",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"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": "Monat",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Januar",
"value": "1"
},
{
"text": "Februar",
"value": "2"
},
{
"text": "März",
"value": "3"
},
{
"text": "April",
"value": "4"
},
{
"text": "Mai",
"value": "5"
},
{
"text": "Juni",
"value": "6"
},
{
"text": "Juli",
"value": "7"
},
{
"text": "August",
"value": "8"
},
{
"text": "September",
"value": "9"
},
{
"text": "Oktober",
"value": "10"
},
{
"text": "November",
"value": "11"
},
{
"text": "Dezember",
"value": "12"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n CONCAT(EXTRACT(YEAR FROM doc_createdate_d), lpad(extract(month from doc_createdate_d)::text, 2, '0')) AS \"SORTY_HIDDEN\",\n EXTRACT(MONTH FROM doc_createdate_d) AS \"Monat\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"SORTY_HIDDEN\", \"Monat\", \"Jahr\"\nORDER BY \"SORTY_HIDDEN\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente pro Jahr und Monat",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 5,
"x": 5,
"y": 13
},
"id": 40,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"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": 0,
"mappingType": 1,
"pattern": "Anzahl",
"thresholds": [],
"type": "number",
"unit": "short"
},
{
"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": "SORTY_HIDDEN",
"thresholds": [],
"type": "hidden",
"unit": "short"
},
{
"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": "Monat",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Januar",
"value": "1"
},
{
"text": "Februar",
"value": "2"
},
{
"text": "März",
"value": "3"
},
{
"text": "April",
"value": "4"
},
{
"text": "Mai",
"value": "5"
},
{
"text": "Juni",
"value": "6"
},
{
"text": "Juli",
"value": "7"
},
{
"text": "August",
"value": "8"
},
{
"text": "September",
"value": "9"
},
{
"text": "Oktober",
"value": "10"
},
{
"text": "November",
"value": "11"
},
{
"text": "Dezember",
"value": "12"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n EXTRACT(YEAR FROM doc_createdate_d) AS \"Jahr\"\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"Jahr\"\nORDER BY \"Jahr\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente pro Jahr",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 9,
"x": 10,
"y": 13
},
"id": 18,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"text": "*.zip",
"value": "application/zip"
},
{
"text": "*.pdf",
"value": "application/pdf"
},
{
"text": "*.png",
"value": "image/png"
},
{
"text": "*.csv",
"value": "text/csv"
},
{
"text": "*.txt",
"value": "text/plain"
},
{
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n tag_name_c AS \"Tag\"--,\n --CASE \n -- WHEN tag_idparent_c IS NULL\n -- THEN 'Parent'\n -- ELSE 'Child'\n --END AS \"Verschachtelung\"\nFROM t_tag AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n T.tag_deletedate_d IS NULL AND\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\nGROUP BY tag_name_c, tag_idparent_c\nORDER BY \"Anzahl\" DESC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente nach Tag-Häufigkeit",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 8,
"w": 5,
"x": 19,
"y": 13
},
"id": 34,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Sprache",
"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": "doc_language_c",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Deutsch",
"value": "deu"
},
{
"text": "Englisch",
"value": "eng"
},
{
"text": "Französisch",
"value": "fra"
},
{
"text": "Italienisch",
"value": "ita"
},
{
"text": "Spanisch",
"value": "spa"
},
{
"text": "Portugisisch",
"value": "por"
},
{
"text": "Polnisch",
"value": "pol"
},
{
"text": "Russisch",
"value": "rus"
},
{
"text": "Ukrainisch",
"value": "ukr"
},
{
"text": "Arabisch",
"value": "ara"
},
{
"text": "Indisch",
"value": "hin"
},
{
"text": "Chinesisch (vereinfacht)",
"value": "chi_sim"
},
{
"text": "Chinesisch (traditionell)",
"value": "chi_tra"
},
{
"text": "Japanisch",
"value": "jpn"
},
{
"text": "Thailändisch",
"value": "tha"
},
{
"text": "Koreanisch",
"value": "kor"
},
{
"text": "Holländisch",
"value": "nld"
},
{
"text": "Türkisch",
"value": "tur"
},
{
"text": "Hebräisch",
"value": "heb"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT \n COUNT(*) AS \"Anzahl\",\n use_username_c AS \"Benutzer\"\nFROM t_document AS D\nJOIN t_user AS U ON U.use_id_c = D.doc_iduser_c\nWHERE doc_deletedate_d IS NULL\nGROUP BY \"Benutzer\"\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente nach Benutzer",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 6,
"w": 5,
"x": 19,
"y": 21
},
"id": 30,
"links": [],
"pageSize": null,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"alias": "Sprache",
"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": "doc_language_c",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Deutsch",
"value": "deu"
},
{
"text": "Englisch",
"value": "eng"
},
{
"text": "Französisch",
"value": "fra"
},
{
"text": "Italienisch",
"value": "ita"
},
{
"text": "Spanisch",
"value": "spa"
},
{
"text": "Portugisisch",
"value": "por"
},
{
"text": "Polnisch",
"value": "pol"
},
{
"text": "Russisch",
"value": "rus"
},
{
"text": "Ukrainisch",
"value": "ukr"
},
{
"text": "Arabisch",
"value": "ara"
},
{
"text": "Indisch",
"value": "hin"
},
{
"text": "Chinesisch (vereinfacht)",
"value": "chi_sim"
},
{
"text": "Chinesisch (traditionell)",
"value": "chi_tra"
},
{
"text": "Japanisch",
"value": "jpn"
},
{
"text": "Thailändisch",
"value": "tha"
},
{
"text": "Koreanisch",
"value": "kor"
},
{
"text": "Holländisch",
"value": "nld"
},
{
"text": "Türkisch",
"value": "tur"
},
{
"text": "Hebräisch",
"value": "heb"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"Anzahl\",\n doc_language_c\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nGROUP BY doc_language_c\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente nach Sprache",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 12,
"w": 24,
"x": 0,
"y": 27
},
"id": 12,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 1,
"desc": true
},
"styles": [
{
"$$hashKey": "object:405",
"alias": "Dokument ID",
"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": "doc_id_c",
"thresholds": [],
"type": "string",
"unit": "short"
},
{
"$$hashKey": "object:433",
"alias": "Titel",
"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": "doc_title_c",
"thresholds": [],
"type": "string",
"unit": "short"
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n doc_id_c,\n doc_title_c\nFROM t_document\nWHERE doc_deletedate_d IS NULL\nEXCEPT\nSELECT\n t_file.fil_iddoc_c,\n t_document.doc_title_c\nFROM t_file\nJOIN t_document ON t_document.doc_id_c = t_file.fil_iddoc_c\nWHERE\n t_file.fil_deletedate_d IS NULL AND\n t_file.fil_iddoc_c IS NOT NULL /*might have been deleted already*/\nGROUP BY t_file.fil_iddoc_c, t_document.doc_title_c\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente ohne Dateien (Leerdokumente)",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 39
},
"id": 41,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"text": "*.zip",
"value": "application/zip"
},
{
"text": "*.pdf",
"value": "application/pdf"
},
{
"text": "*.png",
"value": "image/png"
},
{
"text": "*.csv",
"value": "text/csv"
},
{
"text": "*.txt",
"value": "text/plain"
},
{
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*Entferne alle diese Dokumente aus der Gesamtdokumenteliste*/\nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\"\nFROM t_document AS D\nWHERE\n D.doc_deletedate_d IS NULL\nEXCEPT \n/*dann finde alle Dokumente, die Tags haben. Übrig bleiben dann nur die Dokumente, die keine Tags haben*/\nSELECT\n D.doc_id_c AS \"Dokument ID\",\n D.doc_title_c AS \"Titel\"\nFROM t_tag AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n T.tag_deletedate_d IS NULL AND\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente ohne Tags",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 14,
"w": 24,
"x": 0,
"y": 53
},
"id": 59,
"links": [],
"pageSize": 12,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "Dateityp",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "*.jpeg",
"value": "image/jpeg"
},
{
"text": "*.zip",
"value": "application/zip"
},
{
"text": "*.pdf",
"value": "application/pdf"
},
{
"text": "*.png",
"value": "image/png"
},
{
"text": "*.csv",
"value": "text/csv"
},
{
"text": "*.txt",
"value": "text/plain"
},
{
"text": "*.pptx",
"value": "application/vnd.openxmlformats-officedocument.presentationml.presentation"
},
{
"text": "*.docx",
"value": "application/vnd.openxmlformats-officedocument.wordprocessingml.document"
},
{
"text": "unzuordenbar",
"value": "application/octet-stream"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n sha_createdate_d AS \"Freigabedatum\",\n sha_name_c AS \"Freigabename\",\n doc_title_C AS \"Dokument\"\nFROM t_share\nJOIN t_acl ON t_acl.acl_targetid_c = t_share.sha_id_c\nJOIN t_document ON t_document.doc_id_c = t_acl.acl_sourceid_c\nWHERE\n sha_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Dokumente mit Freigaben",
"transform": "table",
"type": "table-old"
},
{
"aliasColors": {},
"bars": false,
"cacheTimeout": null,
"dashLength": 10,
"dashes": false,
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {},
"links": []
},
"overrides": []
},
"fill": 4,
"fillGradient": 5,
"gridPos": {
"h": 8,
"w": 24,
"x": 0,
"y": 67
},
"hiddenSeries": false,
"id": 38,
"legend": {
"avg": true,
"current": false,
"max": true,
"min": true,
"show": true,
"total": true,
"values": true
},
"lines": true,
"linewidth": 4,
"links": [],
"nullPointMode": "null",
"options": {
"alertThreshold": true
},
"percentage": false,
"pluginVersion": "7.3.7",
"pointradius": 2,
"points": false,
"renderer": "flot",
"seriesOverrides": [
{
"alias": "Dokumente",
"color": "#1F60C4"
},
{
"alias": "Dateien",
"color": "#F2CC0C"
}
],
"spaceLength": 10,
"stack": false,
"steppedLine": false,
"targets": [
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS \"value\",\n 'Dokumente' AS \"metric\",\n TO_DATE(CONCAT(lpad(extract(YEAR from doc_createdate_d)::text, 4, '0'), lpad(extract(MONTH from doc_createdate_d)::text, 2, '0')), 'YYYYMM') AS time\nFROM t_document\nWHERE \n doc_deletedate_d IS NULL\nGROUP BY time\nORDER BY time ASC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
},
{
"format": "time_series",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(*) AS value,\n 'Dateien' AS metric,\n TO_DATE(CONCAT(lpad(extract(YEAR from doc_createdate_d)::text, 4, '0'), lpad(extract(MONTH from doc_createdate_d)::text, 2, '0')), 'YYYYMM') AS time\nFROM t_file AS F\nFULL JOIN t_document AS D ON D.doc_id_c = F.fil_iddoc_c\nWHERE\n fil_deletedate_d IS NULL\nGROUP BY time\nORDER BY time ASC\n;",
"refId": "B",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"thresholds": [],
"timeFrom": null,
"timeRegions": [],
"timeShift": null,
"title": "Dokumente und Dateien pro Jahr und Monat",
"tooltip": {
"shared": true,
"sort": 0,
"value_type": "individual"
},
"type": "graph",
"xaxis": {
"buckets": null,
"mode": "time",
"name": null,
"show": true,
"values": []
},
"yaxes": [
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
},
{
"format": "short",
"label": null,
"logBase": 1,
"max": null,
"min": null,
"show": true
}
],
"yaxis": {
"align": false,
"alignLevel": null
}
}
],
"title": "Dokumente",
"type": "row"
},
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 4
},
"id": 69,
"panels": [
{
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Tags, die zu keinem Dokument zugewiesen sind. Hier tauchen nicht die Tags auf, die Kindelemente haben, da diese die interne Verschachtelungsstruktur vorgeben.",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 14
},
"id": 55,
"options": {
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "tag_name_c"
}
]
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*Bekomme alle vorhandenen Tags (außer deren Elternelemente - diese sollten nicht gelöscht werden, da sie die Strukturanordnung vorgeben)*/\nWITH RECURSIVE TAGTREE AS (\n\tSELECT\n\t\tt_tag.tag_id_c,\n\t\tt_tag.tag_idparent_c,\n t_tag.tag_name_c\n\tFROM\n\t\tt_tag\n WHERE t_tag.tag_deletedate_d IS NULL AND\n t_tag.tag_idparent_c IS NOT NULL\n\tUNION\n\t\tSELECT\n\t\t\te.tag_id_c,\n\t\t\te.tag_idparent_c,\n e.tag_name_c\n FROM\n\t\t\tt_tag AS e\n\t\tINNER JOIN TAGTREE s ON s.tag_id_c = e.tag_idparent_c\n WHERE \n e.tag_deletedate_d IS NULL AND\n e.tag_idparent_c IS NULL\n) SELECT\n\ttag_name_c\nFROM\n\tTAGTREE\n\nEXCEPT\n\n/*Bekomme alle Dokumente und die verwendeten Tags. Filtere die unique tags daraus*/\nSELECT DISTINCT\n T.tag_name_c\nFROM TAGTREE AS T\nJOIN t_document_tag AS DT ON DT.dot_idtag_c = T.tag_id_c\nJOIN t_document AS D ON D.doc_id_c = DT.dot_iddocument_c\nWHERE\n DT.dot_deletedate_d IS NULL AND\n D.doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Ungenutzte Tags",
"type": "table"
},
{
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "Diese Ansicht sollte besser in ein Pivot überführt werden (Pro User/Gruppe eine Spalte statt Zeile) -> https://stackoverflow.com/questions/15745042/efficiently-convert-rows-to-columns-in-sql-server",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 27
},
"id": 70,
"options": {
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "tag_name_c"
}
]
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n T.tag_name_c \"Tag\",\n A.acl_perm_c AS \"Permission\",\n COALESCE(U.use_username_c, G.grp_name_c) AS \"User/Group\" /*if first is null use the next one*/\nFROM t_tag AS T \nJOIN t_acl AS A ON A.acl_sourceid_c = T.tag_id_c\nLEFT JOIN t_user AS U ON U.use_id_c = A.acl_targetid_c\nLEFT JOIN t_group AS G ON G.grp_id_c = A.acl_targetid_c\nWHERE \n T.tag_deletedate_d IS NULL AND\n A.acl_deletedate_d IS NULL AND\n U.use_disabledate_d IS NULL AND\n G.grp_deletedate_d IS NULL\nORDER BY tag_name_c\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Tags und zugeordnete ACLs",
"type": "table"
},
{
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"description": "",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 40
},
"id": 57,
"options": {
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "tag_name_c"
}
]
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n T.tag_name_c \"Tag\",\n U.use_username_c \"Ersteller\"\nFROM t_tag AS T\nLEFT JOIN t_user AS U ON U.use_id_c = T.tag_iduser_c\nWHERE \n tag_deletedate_d IS NULL\nORDER BY tag_iduser_c ASC\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Tags und deren Eigentümer/Ersteller",
"type": "table"
},
{
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {
"align": null,
"filterable": false
},
"mappings": [],
"thresholds": {
"mode": "absolute",
"steps": [
{
"color": "green",
"value": null
},
{
"color": "red",
"value": 80
}
]
}
},
"overrides": []
},
"gridPos": {
"h": 13,
"w": 24,
"x": 0,
"y": 53
},
"id": 56,
"options": {
"showHeader": true,
"sortBy": [
{
"desc": false,
"displayName": "Child"
}
]
},
"pluginVersion": "7.3.7",
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n COUNT(T.tag_name_c),\n C.tag_name_c AS \"Child\",\n T.tag_name_c AS \"Parent\"\nFROM t_tag AS T \nJOIN t_acl AS A ON A.acl_sourceid_c = T.tag_id_c\nLEFT JOIN t_user AS U ON U.use_id_c = A.acl_targetid_c\nLEFT JOIN t_group AS G ON G.grp_id_c = A.acl_targetid_c\nLEFT JOIN t_tag AS C ON C.tag_idparent_c =T.tag_id_c \nWHERE \n T.tag_deletedate_d IS NULL AND\n A.acl_deletedate_d IS NULL AND\n U.use_disabledate_d IS NULL AND\n G.grp_deletedate_d IS NULL\nGROUP BY C.tag_name_c, T.tag_name_c\nORDER BY COUNT(T.tag_name_c)\n\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Tags und ACL-Häufigkeiten",
"type": "table"
}
],
"title": "Tags",
"type": "row"
},
{
"collapsed": true,
"datasource": null,
"gridPos": {
"h": 1,
"w": 24,
"x": 0,
"y": 5
},
"id": 28,
"panels": [
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 15
},
"id": 7,
"links": [],
"pageSize": 15,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "DD.MM.YYYY HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Zeitstempel",
"thresholds": [],
"type": "date",
"unit": "short"
},
{
"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": "Typ",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Erstellt",
"value": "CREATE"
},
{
"text": "Aktualisiert",
"value": "UPDATE"
},
{
"text": "Gelöscht",
"value": "DELETE"
}
]
},
{
"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": "Kategorie",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Datei",
"value": "File"
},
{
"text": "Berechtigung",
"value": "Acl"
},
{
"text": "Dokument",
"value": "Document"
},
{
"text": "Tag",
"value": "Tag"
},
{
"text": "Workflow Model",
"value": "RouteModel"
},
{
"text": "Workflow",
"value": "Route"
},
{
"text": "Gruppe",
"value": "Group"
},
{
"text": "Benutzer",
"value": "User"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "SELECT\n --A.log_id_c\n --A.log_identitiy_c\n A.log_createdate_d AS \"Zeitstempel\",\n --A.log_iduser_c AS \"Benutzer\",\n U.use_username_c AS \"Benutzer\",\n A.log_classentity_c AS \"Kategorie\",\n A.log_type_c AS \"Typ\",\n A.log_message_c AS \"Nachricht\"\nFROM\n t_audit_log AS A\nJOIN t_user AS U ON U.use_id_c = A.log_iduser_c\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Audit Log",
"transform": "table",
"type": "table-old"
},
{
"cacheTimeout": null,
"columns": [],
"datasource": "${DS_THINGS.FABLABCHEMNITZ.DE}",
"fieldConfig": {
"defaults": {
"custom": {}
},
"overrides": []
},
"fontSize": "100%",
"gridPos": {
"h": 16,
"w": 24,
"x": 0,
"y": 31
},
"id": 39,
"links": [],
"pageSize": 15,
"showHeader": true,
"sort": {
"col": 0,
"desc": true
},
"styles": [
{
"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": "DD.MM.YYYY HH:mm:ss",
"decimals": 2,
"mappingType": 1,
"pattern": "Zeitstempel",
"thresholds": [],
"type": "date",
"unit": "short"
},
{
"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": "Typ",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Erstellt",
"value": "CREATE"
},
{
"text": "Aktualisiert",
"value": "UPDATE"
},
{
"text": "Gelöscht",
"value": "DELETE"
}
]
},
{
"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": "Kategorie",
"thresholds": [],
"type": "string",
"unit": "short",
"valueMaps": [
{
"text": "Datei",
"value": "File"
},
{
"text": "Berechtigung",
"value": "Acl"
},
{
"text": "Dokument",
"value": "Document"
},
{
"text": "Tag",
"value": "Tag"
},
{
"text": "Workflow Model",
"value": "RouteModel"
},
{
"text": "Workflow",
"value": "Route"
},
{
"text": "Gruppe",
"value": "Group"
},
{
"text": "Benutzer",
"value": "User"
}
]
}
],
"targets": [
{
"format": "table",
"group": [],
"metricColumn": "none",
"rawQuery": true,
"rawSql": "/*title which contain doubled whitespaces*/\nSELECT\n doc_title_c\nFROM t_document\nWHERE\n LENGTH(RTRIM(LTRIM(doc_title_c))) <> LENGTH(doc_title_c) OR\n doc_title_c LIKE '% %' AND\n doc_deletedate_d IS NULL\n;",
"refId": "A",
"select": [
[
{
"params": [
"value"
],
"type": "column"
}
]
],
"timeColumn": "time",
"where": [
{
"name": "$__timeFilter",
"params": [],
"type": "macro"
}
]
}
],
"timeFrom": null,
"timeShift": null,
"title": "Ugly Documents (Duplicate whitespaces in titles)",
"transform": "table",
"type": "table-old"
}
],
"title": "Audit",
"type": "row"
}
],
"refresh": false,
"schemaVersion": 26,
"style": "dark",
"tags": [],
"templating": {
"list": []
},
"time": {
"from": "2019-04-05T00:00:00.000Z",
"to": "now"
},
"timepicker": {
"refresh_intervals": [
"5s",
"10s",
"30s",
"1m",
"5m",
"15m",
"30m",
"1h",
"2h",
"1d"
]
},
"timezone": "",
"title": "Teedy (Inventar)",
"uid": "BG7qRlZRz",
"version": 109
}