From 0f25496945d2b83282ad27375cb8c061ebaad3a8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Raimund=20Andr=C3=A9e=20=5BMSFT=5D?= Date: Tue, 27 Apr 2021 00:37:02 +0200 Subject: [PATCH] Fixing date conversion issue (#105) * Added user guidance * Casting into string ignores the machines locale and returns the data in en-us format * Added report 'Node Metadata' --- Lab/DscTaggingData/New-DscDataEndpoint.ps1 | 2 +- Lab/Reports/Node Metadata.rdl | 770 +++++++++++++++++++++ 2 files changed, 771 insertions(+), 1 deletion(-) create mode 100644 Lab/Reports/Node Metadata.rdl diff --git a/Lab/DscTaggingData/New-DscDataEndpoint.ps1 b/Lab/DscTaggingData/New-DscDataEndpoint.ps1 index b9d38619..1a1b7e83 100644 --- a/Lab/DscTaggingData/New-DscDataEndpoint.ps1 +++ b/Lab/DscTaggingData/New-DscDataEndpoint.ps1 @@ -89,7 +89,7 @@ function Send-DscTaggingData { Write-Host "DscDataEndpoint uses SQL Server '$sqlServerName'." $Data.psobject.Properties.Remove('RunspaceId') - $Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('Timestamp', (Get-Date))) + $Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('Timestamp', [string](Get-Date))) $Data.psobject.Properties.Add([System.Management.Automation.PSNoteProperty]::new('AgentId', $agentId)) $cmd = "SELECT AgentId FROM dbo.TaggingData WHERE AgentID = '$($Data.AgentId)'" diff --git a/Lab/Reports/Node Metadata.rdl b/Lab/Reports/Node Metadata.rdl new file mode 100644 index 00000000..811c0cb9 --- /dev/null +++ b/Lab/Reports/Node Metadata.rdl @@ -0,0 +1,770 @@ + + + Segoe UI + 0 + + + /DSCDS + None + 8d6afc86-5847-46a7-91e4-637b788e169f + + + + + + DataSource1 + SELECT + TaggingData.AgentId + ,TaggingData.Environment + ,TaggingData.BuildNumber + ,TaggingData.GitCommitId + ,TaggingData.Version + ,TaggingData.BuildDate + ,TaggingData.[Timestamp] + ,TaggingData.Layers +FROM + TaggingData + + + + + + + + + + + + + + + + + + AgentId + System.String + + + Environment + System.String + + + BuildNumber + System.Int32 + + + GitCommitId + System.String + + + Version + System.String + + + BuildDate + System.DateTime + + + Timestamp + System.DateTime + + + Layers + System.String + + + + + + + + + + true + true + + + + + Node Metadata + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + 68.65625mm + + + 23.94167mm + + + 24.47083mm + + + 90.35206mm + + + 31.61458mm + + + 31.61458mm + + + 31.61458mm + + + 168.13961mm + + + + + 6mm + + + + + true + true + + + + + Agent Id + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Environment + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Build Number + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Git Commit Id + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Version + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Build Date + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Timestamp + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + Layers + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 6mm + + + + + true + true + + + + + =Fields!AgentId.Value + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Environment.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!BuildNumber.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!GitCommitId.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Version.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!BuildDate.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Timestamp.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + true + true + + + + + =Fields!Layers.Value + + + + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + + + + + + + + + + + + + + + + + After + + + + + + + DataSet1 + 17.16617mm + 3.67242mm + 12mm + 470.40417mm + 1 + + + + + + 57.15mm + + + + + 474.07658mm + + + 83.66125mm + true + true + + + true + true + + + + + =Globals!ExecutionTime + + + + ExecutionTime + 5.08mm + 101.6mm + 6.35mm + 50.8mm + + + 2pt + 2pt + 2pt + 2pt + + + + + + + + 29.7cm + 21cm + 2cm + 2cm + 2cm + 2cm + 0.13cm +