-
Notifications
You must be signed in to change notification settings - Fork 21
Added EventName property to the PackageValidationAuditEntry #133
Conversation
… distinguish between types of the entries.
@agr, |
|
||
namespace NuGet.Jobs.Validation.Common | ||
{ | ||
public static class ValidationEvent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider turning this into enums
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're concerned about the human readability of having an enum, I would suggest having two fields
{
"ValidatorName": "validator-unzip",
"Message": "Found 4 parts in package.",
"Timestamp": "2017-03-31T22:09:00.7356706+00:00"
"EventId": 1,
"EventName": "BeforeVirusScan"
}
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
@@ -0,0 +1,71 @@ | |||
using System; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Add a copyright header.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Done
|
||
namespace NuGet.Jobs.Validation.Common | ||
{ | ||
public static class ValidationEvent |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If you're concerned about the human readability of having an enum, I would suggest having two fields
{
"ValidatorName": "validator-unzip",
"Message": "Found 4 parts in package.",
"Timestamp": "2017-03-31T22:09:00.7356706+00:00"
"EventId": 1,
"EventName": "BeforeVirusScan"
}
* Added EventName property to the PackageValidationAuditEntry to easier distinguish between types of the entries. * Added copyright header * Changed ValidationEvent to enum.
For the #405.
Needed a way to easily distinguish between audit entries for the monitoring.