Skip to content

Commit f51a87e

Browse files
khusmenoKubilay
andauthored
better Telemetry When Opening Findings (#142)
Co-authored-by: Kubilay <[email protected]>
1 parent eab2605 commit f51a87e

File tree

1 file changed

+5
-2
lines changed
  • SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing

1 file changed

+5
-2
lines changed

SCSM-Diagnostic-Tool/SourceCode/_2_Analyzing/Analyze.ps1

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -935,12 +935,15 @@ $ShowTheFindingsPS1Content = $ShowTheFindingsPS1Content.Replace("# SMDTSIGN ends
935935
Set-Content -Path (Join-Path -Path (Split-Path $resultFolder -Parent) -ChildPath $findingsPS1_FileName ) -Value $ShowTheFindingsPS1Content
936936
DeleteFileInTargetFolder $findingsHtml_FileName
937937

938-
#WriteTelemetry
939-
AppendOutputToFileInTargetFolder (GetStatInfo).OuterXml StatInfo.xml
940938
$sentByForStatInfo = "Run"
941939
if ( $Script:MyInvocation.UnboundArguments.Contains("-startedByRule") ) {
942940
$sentByForStatInfo = "Rule"
943941
}
942+
(GetStatInfoRoot).SetAttribute("SmdtRunType", $sentByForStatInfo)
943+
944+
#WriteTelemetry
945+
AppendOutputToFileInTargetFolder (GetStatInfo).OuterXml StatInfo.xml
946+
944947
LogStatInfo (GetStatInfo) $sentByForStatInfo
945948

946949
#$ProgressPreference = 'Continue'

0 commit comments

Comments
 (0)