Skip to content

Commit df1d718

Browse files
Add template context fields for Elastic integration (#6504)
1 parent 427600d commit df1d718

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/Core/AdminConsole/Models/Data/EventIntegrations/IntegrationTemplateContext.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,17 @@ public class IntegrationTemplateContext(EventMessage eventMessage)
2323
public Guid? CollectionId => Event.CollectionId;
2424
public Guid? GroupId => Event.GroupId;
2525
public Guid? PolicyId => Event.PolicyId;
26+
public Guid? IdempotencyId => Event.IdempotencyId;
27+
public Guid? ProviderId => Event.ProviderId;
28+
public Guid? ProviderUserId => Event.ProviderUserId;
29+
public Guid? ProviderOrganizationId => Event.ProviderOrganizationId;
30+
public Guid? InstallationId => Event.InstallationId;
31+
public Guid? SecretId => Event.SecretId;
32+
public Guid? ProjectId => Event.ProjectId;
33+
public Guid? ServiceAccountId => Event.ServiceAccountId;
34+
public Guid? GrantedServiceAccountId => Event.GrantedServiceAccountId;
2635

36+
public string DateIso8601 => Date.ToString("o");
2737
public string EventMessage => JsonSerializer.Serialize(Event);
2838

2939
public User? User { get; set; }

0 commit comments

Comments
 (0)