Skip to content

Commit 300d322

Browse files
committed
Add audit event types
1 parent b96d158 commit 300d322

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/Elasticsearch.Net/Auditing/AuditEvent.cs

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ public enum AuditEvent
2929
NoNodesAttempted,
3030
CancellationRequested,
3131
FailedOverAllNodes,
32+
33+
ProductCheckOnStartup,
34+
ProductCheckSuccess,
35+
ProductCheckFailure
3236
}
3337

3438
internal static class AuditEventExtensions
@@ -61,11 +65,11 @@ public static string GetAuditDiagnosticEventName(this AuditEvent @event)
6165
case NoNodesAttempted: return nameof(NoNodesAttempted);
6266
case CancellationRequested: return nameof(CancellationRequested);
6367
case FailedOverAllNodes: return nameof(FailedOverAllNodes);
68+
case ProductCheckOnStartup: return nameof(ProductCheckOnStartup);
69+
case ProductCheckSuccess: return nameof(ProductCheckSuccess);
70+
case ProductCheckFailure: return nameof(ProductCheckFailure);
6471
default: return @event.GetStringValue(); //still cached but uses reflection
6572
}
6673
}
67-
68-
6974
}
70-
7175
}

0 commit comments

Comments
 (0)