This repository was archived by the owner on Jul 30, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added EventName property to the PackageValidationAuditEntry (#133)
* Added EventName property to the PackageValidationAuditEntry to easier distinguish between types of the entries. * Added copyright header * Changed ValidationEvent to enum.
- Loading branch information
Showing
8 changed files
with
100 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,68 @@ | ||
// Copyright (c) .NET Foundation. All rights reserved. | ||
// Licensed under the Apache License, Version 2.0. See License.txt in the project root for license information. | ||
|
||
namespace NuGet.Jobs.Validation.Common | ||
{ | ||
public enum ValidationEvent | ||
{ | ||
/// <summary> | ||
/// Virus scan request is about to be sent | ||
/// </summary> | ||
BeforeVirusScanRequest, | ||
|
||
/// <summary> | ||
/// The validation queue item was deadlettered after several attempts of processing | ||
/// </summary> | ||
Deadlettered, | ||
|
||
/// <summary> | ||
/// The detail item passed with a <see cref="PackageNotClean"/> result | ||
/// </summary> | ||
NotCleanReason, | ||
|
||
/// <summary> | ||
/// Virus scan service reported package as clean | ||
/// </summary> | ||
PackageClean, | ||
|
||
/// <summary> | ||
/// Packages download was successful | ||
/// </summary> | ||
PackageDownloaded, | ||
|
||
/// <summary> | ||
/// Virus scan service reported package as not clean | ||
/// </summary> | ||
PackageNotClean, | ||
|
||
/// <summary> | ||
/// Virus scan service reported its failure to scan package (it does *not* mean package is not clean) | ||
/// </summary> | ||
ScanFailed, | ||
|
||
/// <summary> | ||
/// The detail item passed with <see cref="ScanFailed"/> result | ||
/// </summary> | ||
ScanFailureReason, | ||
|
||
/// <summary> | ||
/// An exception was thrown during validator execution | ||
/// </summary> | ||
ValidatorException, | ||
|
||
/// <summary> | ||
/// The virus scan request was submitted | ||
/// </summary> | ||
VirusScanRequestSent, | ||
|
||
/// <summary> | ||
/// Sending the virus scanning request had failed | ||
/// </summary> | ||
VirusScanRequestFailed, | ||
|
||
/// <summary> | ||
/// Package was successfully unzipped | ||
/// </summary> | ||
UnzipSucceeeded, | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters