3.9 KiB
gantt
title Writing my thesis
dateFormat YYYY-MM-DD H HH
axisFormat %X
BI - Flow - DSI_CPR : 2023-06-11 20:01:58,0:08:08
BI - Flow - DSO_PAS_MDS : 2023-06-11 22:26:41,0:00:00
BI - Flow - DSO_SharedDimensions_Personale : 2023-06-11 22:21:15,0:03:03
BI - Flow - DSO_SharedDimensions_Sikkerhed : 2023-06-11 22:41:49,0:04:04
BI - Flow - DSI_IFDB_BOOKING : 2023-06-11 22:00:00,0:11:11
BI - Flow - DSI_IFDB_PAS_LPR3 : 2023-06-11 22:00:00,0:21:21
BI - Flow - DSO_SharedDimensions_Dimensions_ALLE : 2023-06-11 22:25:54,0:26:26
BI - Flow - DSI_SSI : 2023-06-11 20:01:14,0:02:02
BI - Flow - DSO_PAS_PRE : 2023-06-11 22:25:52,0:00:00
BI - Flow - DSO_SharedDimensions_SKSBrowser : 2023-06-11 22:00:39,0:03:03
BI - Flow - DSI_IFDB_MEDICIN : 2023-06-11 22:00:00,0:13:13
BI - Flow - DSO_SharedDimensions_Bridge_IFDB : 2023-06-11 22:52:16,0:10:10
BI - Flow - DSO_PAS_DIM : 2023-06-11 22:27:25,0:08:08
BI - Flow - DSO_SharedDimensions_Borger : 2023-06-11 22:21:14,0:13:13
BI - Flow - DSI_IFDB_SHARED : 2023-06-11 22:00:00,0:00:00
BI - Flow - Batch Start Daglig kl. 20.00 : 2023-06-11 20:00:00,0:02:02
BI - Flow - DSI_SST : 2023-06-11 20:01:56,0:01:01
BI - Flow - DSO_SharedDimensions_Organisation : 2023-06-11 22:21:12,0:20:20
BI - Flow - DPA_SharedDimensions : 2023-06-11 23:03:04,0:07:07
BI - Flow - DSO_SharedDimensions_Dimensions_PRE : 2023-06-11 22:21:18,0:04:04
BI - Flow - DPA_SharedDimensions_Sikkerhed : 2023-06-11 22:45:54,0:01:01
BI - Flow - DSI_IFDB_PAS_SFI : 2023-06-11 22:00:00,0:05:05
BI - Flow - DSO_PAS_FACT : 2023-06-11 23:03:00,0:47:47
BI - Flow - DSO_SharedDimensions_Shared : 2023-06-11 20:01:29,0:00:00
BI - Flow - DPA_SharedDimensions_Shared : 2023-06-11 20:01:45,0:00:00
BI - Flow - DSI_IFDB_PAS : 2023-06-11 22:00:00,0:14:14
BI - Flow - DSI_LUNAADM : 2023-06-11 20:01:13,0:03:03
titleTopMargin:25,
barHeight:20,
barGap:4,
topPadding:50,
leftPadding:75,
gridLineStartPadding:35,
fontSize:11,
fontFamily:'"Open-Sans", "sans-serif"',
numberSectionStyles:4,
<h1>Welcome to FlaskBlog</h1>
{{ test|safe }}
<script src="https://unpkg.com/mermaid@8.14.0/dist/mermaid.min.js">
mermaid.ganttConfig = {
titleTopMargin: 25,
barHeight: 20,
barGap: 4,
topPadding: 75,
sidePadding: 75,
};
mermaid.initialize({startOnLoad:true});
</script>
DECLARE @ugeDag INT = :dag-- 1 Søndag 7 lørdag DECLARE @stepID INT = :step --default 0 da det giver overordnet flow tid
;WITH ctedateconversion AS(
SELECT PERCENTILE_DISC(0.5) WITHIN GROUP (ORDER BY run_datetime) OVER() AS MedianRun_datetime
, [t].[run_datetime]
, PERCENTILE_DISC(0.5) WITHIN GROUP (ORDER BY [t].[run_duration]) OVER() AS run_duration
FROM
(
SELECT job_name, run_datetime,
SUBSTRING(run_duration, 1, 2) + ':' + SUBSTRING(run_duration, 3, 2) + ':' +
SUBSTRING(run_duration, 5, 2) AS run_duration
from
(
SELECT TOP (@dage)
j.name as job_name,
run_datetime = CONVERT(DATETIME, '1970-01-01') +
(run_time * 9 + run_time % 10000 * 6 + run_time % 100 * 10) / 216e4,
run_duration = RIGHT('000000' + CONVERT(varchar(6), run_duration), 6)
from msdb..sysjobhistory h
inner join msdb..sysjobs j
ON h.job_id = j.job_id
WHERE
[j].[name] LIKE @job AND [h].[step_id]=@stepID
AND DATEPART(WEEKDAY,CONVERT(DATETIME, RTRIM(run_date))
+ (run_time * 9 + run_time % 10000 * 6 + run_time % 100 * 10) / 216e4)=@ugeDag --1 = mandag
ORDER BY [h].[run_date] DESC
) t
) t
) SELECT [ctedateconversion].[MedianRun_datetime] AS MedianRun_datetime_SpecificDate,[ctedateconversion].[run_duration] FROM [ctedateconversion] WHERE [ctedateconversion].[MedianRun_datetime] = [ctedateconversion].[run_datetime] GROUP BY [ctedateconversion].[MedianRun_datetime], [ctedateconversion].[run_duration]''')