Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand All @@ -10,21 +9,21 @@ public class BcdeExecutionTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "BcdeExecution";

public string Command { get; set; }
public string? Command { get; set; }

public int? ExitCode { get; set; }

public int? HiddenExitCode { get; set; }

public string UnhandledException { get; set; }
public string? UnhandledException { get; set; }

public string Arguments { get; set; }
public string? Arguments { get; set; }

public string ErrorMessage { get; set; }
public string? ErrorMessage { get; set; }

public string AgentOSMeaningfulDetails { get; set; }
public string? AgentOSMeaningfulDetails { get; set; }

public string AgentOSDescription { get; set; }
public string? AgentOSDescription { get; set; }

public static async Task<TReturn> TrackAsync<TReturn>(
Func<BcdeExecutionTelemetryRecord, CancellationToken, Task<TReturn>> functionToTrack,
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand All @@ -8,15 +7,15 @@ public class CommandLineInvocationTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "CommandLineInvocation";

public string PathThatWasRan { get; set; }
public string? PathThatWasRan { get; set; }

public string Parameters { get; set; }
public string? Parameters { get; set; }

public int? ExitCode { get; set; }

public string StandardError { get; set; }
public string? StandardError { get; set; }

public string UnhandledException { get; set; }
public string? UnhandledException { get; set; }

internal void Track(CommandLineExecutionResult result, string path, string parameters)
{
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System;
Expand All @@ -7,7 +6,7 @@ public class DependencyGraphTranslationRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DependencyGraphTranslationRecord";

public string DetectorId { get; set; }
public string? DetectorId { get; set; }

public TimeSpan? TimeToAddRoots { get; set; }

Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

using System.Runtime.CompilerServices;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DetectorExecutionTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DetectorExecution";

public string DetectorId { get; set; }
public string? DetectorId { get; set; }

public int? DetectedComponentCount { get; set; }

Expand All @@ -15,7 +14,7 @@ public class DetectorExecutionTelemetryRecord : BaseDetectionTelemetryRecord

public bool IsExperimental { get; set; }

public string ExperimentalInformation { get; set; }
public string? ExperimentalInformation { get; set; }

public string AdditionalTelemetryDetails { get; set; }
public string? AdditionalTelemetryDetails { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceImageExistsLocallyTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DockerServiceImageExistsLocally";

public string Image { get; set; }
public string? Image { get; set; }

public string ImageInspectResponse { get; set; }
public string? ImageInspectResponse { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceInspectImageTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DockerServiceInspectImage";

public string Image { get; set; }
public string? Image { get; set; }

public string BaseImageDigest { get; set; }
public string? BaseImageDigest { get; set; }

public string BaseImageRef { get; set; }
public string? BaseImageRef { get; set; }

public string ImageInspectResponse { get; set; }
public string? ImageInspectResponse { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceSystemInfoTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DockerServiceSystemInfo";

public string SystemInfo { get; set; }
public string? SystemInfo { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DockerService";

public string Image { get; set; }
public string? Image { get; set; }

public string Command { get; set; }
public string? Command { get; set; }

public string Container { get; set; }
public string? Container { get; set; }

public string Stdout { get; set; }
public string? Stdout { get; set; }

public string Stderr { get; set; }
public string? Stderr { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class DockerServiceTryPullImageTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "DockerServiceTryPullImage";

public string Image { get; set; }
public string? Image { get; set; }

public string CreateImageProgress { get; set; }
public string? CreateImageProgress { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class FailedParsingFileRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "FailedParsingFile";

public string DetectorId { get; set; }
public string? DetectorId { get; set; }

public string FilePath { get; set; }
public string? FilePath { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }

public string StackTrace { get; set; }
public string? StackTrace { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,11 +1,10 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "GoGraph";

public string ProjectRoot { get; set; }
public string? ProjectRoot { get; set; }

public bool IsGoAvailable { get; set; }

Expand All @@ -17,9 +16,9 @@ public class GoGraphTelemetryRecord : BaseDetectionTelemetryRecord

public bool DidGoCliCommandFail { get; set; }

public string GoCliCommandError { get; set; }
public string? GoCliCommandError { get; set; }

public string GoModVersion { get; set; }
public string? GoModVersion { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class GoReplaceTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "GoReplace";

public string GoModPathAndVersion { get; set; }
public string? GoModPathAndVersion { get; set; }

public string GoModReplacement { get; set; }
public string? GoModReplacement { get; set; }

public string ExceptionMessage { get; set; }
public string? ExceptionMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class InvalidParseVersionTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "InvalidParseVersion";

public string DetectorId { get; set; }
public string? DetectorId { get; set; }

public string FilePath { get; set; }
public string? FilePath { get; set; }

public string Version { get; set; }
public string? Version { get; set; }

public string MaxVersion { get; set; }
public string? MaxVersion { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorImageDetectionFailed : BaseDetectionTelemetryRecord
{
public override string RecordName => "LinuxContainerDetectorImageDetectionFailed";

public string ImageId { get; set; }
public string? ImageId { get; set; }

public string Message { get; set; }
public string? Message { get; set; }

public string ExceptionType { get; set; }
public string? ExceptionType { get; set; }

public string StackTrace { get; set; }
public string? StackTrace { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,17 +1,16 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorLayerAwareness : BaseDetectionTelemetryRecord
{
public override string RecordName => "LinuxContainerDetectorLayerAwareness";

public string BaseImageRef { get; set; }
public string? BaseImageRef { get; set; }

public string BaseImageDigest { get; set; }
public string? BaseImageDigest { get; set; }

public int? BaseImageLayerCount { get; set; }

public int? LayerCount { get; set; }

public string BaseImageLayerMessage { get; set; }
public string? BaseImageLayerMessage { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorMissingRepoNameAndTagRecord : BaseDetectionTelemetryRecord
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorMissingVersion : BaseDetectionTelemetryRecord
{
public override string RecordName { get; } = "MissingVersion";

public string Distribution { get; set; }
public string? Distribution { get; set; }

public string Release { get; set; }
public string? Release { get; set; }

public string[] PackageNames { get; set; }
public string[]? PackageNames { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxContainerDetectorUnsupportedOs : BaseDetectionTelemetryRecord
{
public override string RecordName => "LinuxContainerDetectorUnsupportedOs";

public string Os { get; set; }
public string? Os { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxScannerSyftTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "LinuxScannerSyftTelemetry";

public string Components { get; set; }
public string? Components { get; set; }

public string Exception { get; set; }
public string? Exception { get; set; }

public string ComponentsRemoved { get; set; }
public string? ComponentsRemoved { get; set; }
}
Original file line number Diff line number Diff line change
@@ -1,19 +1,18 @@
#nullable disable
namespace Microsoft.ComponentDetection.Common.Telemetry.Records;

public class LinuxScannerTelemetryRecord : BaseDetectionTelemetryRecord
{
public override string RecordName => "LinuxScannerTelemetry";

public string ImageToScan { get; set; }
public string? ImageToScan { get; set; }

public string ScanStdOut { get; set; }
public string? ScanStdOut { get; set; }

public string ScanStdErr { get; set; }
public string? ScanStdErr { get; set; }

public string FailedDeserializingScannerOutput { get; set; }
public string? FailedDeserializingScannerOutput { get; set; }

public bool SemaphoreFailure { get; set; }

public string ScannerVersion { get; set; }
public string? ScannerVersion { get; set; }
}
Loading
Loading