From 7401ede25eccccb0dabd3046aa56c8d48dec3fe4 Mon Sep 17 00:00:00 2001 From: alessio-acitelli <97529051+alessio-acitelli@users.noreply.github.com> Date: Mon, 3 Mar 2025 16:49:53 +0100 Subject: [PATCH] fix: [PAGOPA-2703] Minor fix on FDR1 dashboard (#2844) * [PAGOPA-2703] minor fix on FDR1 dashboard * fix escape --------- Co-authored-by: Andrea D. <117269497+andrea-deri@users.noreply.github.com> Co-authored-by: Jacopo Carlini Co-authored-by: Francesco Cesareo --- src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl b/src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl index 6546aa99f..ea8b1493e 100644 --- a/src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl +++ b/src/domains/fdr-app/dashboard/dashboard-apim-fdr.tpl @@ -1351,7 +1351,7 @@ }, { "name": "Query", - "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend outcome = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n", + "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend outcome = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n", "isOptional": true }, { @@ -1535,7 +1535,7 @@ "flowId": "261px", "errorMessage": "464px" }, - "Query": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend errorMessage = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n", + "Query": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [registerFdrForValidation]\"\n| extend errorMessage = extract(\"End process \\\\[registerFdrForValidation\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n", "ControlType": "AnalyticsGrid", "PartTitle": "KO on register for validation", "PartSubTitle": "register-for-validation" @@ -1594,7 +1594,7 @@ }, { "name": "Query", - "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [nodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[nodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n", + "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n", "isOptional": true }, { @@ -1712,7 +1712,7 @@ }, { "name": "Query", - "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n", + "value": "let threshold = 0.99;\ntraces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend outcome = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\]\", 1, message)\n| summarize\n Total=count(),\n Success=count(outcome == \"OK\")\n by bin(timestamp, 5m)\n| extend availability=toreal(Success) / Total\n| project timestamp, availability, watermark=threshold\n| render timechart with (xtitle = \"time\", ytitle= \"availability(%)\")\n\n", "isOptional": true }, { @@ -1780,7 +1780,7 @@ "flowId": "271px", "timestamp": "139px" }, - "Query": "traces\n//| where timestamp > ago(10m)\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend errorMessage = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n", + "Query": "traces\n//| where timestamp > ago(10m)\n| where cloud_RoleName == \"fdr-nodo\"\n| where message startswith \"End process [NodoInviaFlussoRendicontazioneFTP]\"\n| extend errorMessage = extract(\"End process \\\\[NodoInviaFlussoRendicontazioneFTP\\\\] -> \\\\[(.*?)\\\\](.*?)$\", 2, message)\n| where errorMessage != \"\"\n| extend flowId = customDimensions[\"fdr\"]\n| extend sessionId = customDimensions[\"sessionId\"]\n| order by timestamp desc \n| project timestamp, flowId, errorMessage, sessionId\n\n", "ControlType": "AnalyticsGrid", "PartTitle": "KO on nodoInviaFlussoRendicontazioneFTP", "PartSubTitle": "nodo-invia-flusso-rendicontazione-FTP"