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
18 changes: 18 additions & 0 deletions src/Elastic.CommonSchema/AssignableInterfaces.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,12 @@ public interface IUser {
public User? User { get; set; }
}

///<summary> Interface for entities that can assign an IEntity: Cloud, Host, Orchestrator, Service, User</summary>
public interface IEntity {
///<summary>entity</summary>
public Entity? Entity { get; set; }
}

///<summary> Interface for entities that can assign an ICloudOrigin: Cloud</summary>
public interface ICloudOrigin {
///<summary>origin</summary>
Expand Down Expand Up @@ -71,6 +77,12 @@ public interface ICodeSignature {
public CodeSignature? CodeSignature { get; set; }
}

///<summary> Interface for entities that can assign an IEntityTarget: Entity</summary>
public interface IEntityTarget {
///<summary>target</summary>
public EntityTarget? Target { get; set; }
}

///<summary> Interface for entities that can assign an IX509: File</summary>
public interface IX509 {
///<summary>x509</summary>
Expand Down Expand Up @@ -101,6 +113,12 @@ public interface IRisk {
public Risk? Risk { get; set; }
}

///<summary> Interface for entities that can assign an IHostTarget: Host</summary>
public interface IHostTarget {
///<summary>target</summary>
public HostTarget? Target { get; set; }
}

///<summary> Interface for entities that can assign an IVlan: Network</summary>
public interface IVlan {
///<summary>vlan</summary>
Expand Down
14 changes: 11 additions & 3 deletions src/Elastic.CommonSchema/EcsDocument.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ If you wish to submit a PR please modify the original csharp file and submit the
namespace Elastic.CommonSchema
{
///<inheritdoc cref="BaseFieldSet"/>
public partial class EcsDocument : BaseFieldSet , IAs, ICodeSignature, IElf, IGeo, IGroup, IHash, IMacho, IOs, IPe, IRisk, IUser, IVlan, IX509
public partial class EcsDocument : BaseFieldSet , IAs, ICodeSignature, IElf, IEntity, IGeo, IGroup, IHash, IMacho, IOs, IPe, IRisk, IUser, IVlan, IX509
{

/// <summary>
/// Elastic Common Schema version 9.0.0
/// Elastic Common Schema version 9.3.0
/// </summary>
public static string Version => "9.0.0";
public static string Version => "9.3.0";

/// <summary>
/// Container for additional metadata against this event.
Expand Down Expand Up @@ -100,6 +100,10 @@ public partial class EcsDocument : BaseFieldSet , IAs, ICodeSignature, IElf, IGe
[JsonPropertyName("email"), DataMember(Name = "email")]
public Email? Email { get; set; }

///<summary>entity</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }

///<summary>error</summary>
[JsonPropertyName("error"), DataMember(Name = "error")]
public Error? Error { get; set; }
Expand All @@ -116,6 +120,10 @@ public partial class EcsDocument : BaseFieldSet , IAs, ICodeSignature, IElf, IGe
[JsonPropertyName("file"), DataMember(Name = "file")]
public File? File { get; set; }

///<summary>gen_ai</summary>
[JsonPropertyName("gen_ai"), DataMember(Name = "gen_ai")]
public GenAi? GenAi { get; set; }

///<summary>geo</summary>
[JsonPropertyName("geo"), DataMember(Name = "geo")]
public Geo? Geo { get; set; }
Expand Down
75 changes: 70 additions & 5 deletions src/Elastic.CommonSchema/Entities.Generated.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,14 @@ public class CloudOrigin : CloudFieldSet {
public class CloudTarget : CloudFieldSet {
}

///<inheritdoc cref="EntityFieldSet"/>
public class EntityTarget : EntityFieldSet {
}

///<inheritdoc cref="HostFieldSet"/>
public class HostTarget : HostFieldSet {
}

///<inheritdoc cref="ProcessFieldSet"/>
public class ProcessParent : ProcessFieldSet {

Expand Down Expand Up @@ -164,7 +172,14 @@ public class Client : ClientFieldSet , IAs, IGeo, IUser {
}

///<inheritdoc cref="CloudFieldSet"/>
public class Cloud : CloudFieldSet , ICloudOrigin, ICloudTarget {
public class Cloud : CloudFieldSet , IEntity, ICloudOrigin, ICloudTarget {

///<summary>
/// <para><c>cloud.entity</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }

///<summary>
/// <para><c>cloud.origin</c></para>
Expand Down Expand Up @@ -263,6 +278,17 @@ public class Elf : ElfFieldSet {
public class Email : EmailFieldSet {
}

///<inheritdoc cref="EntityFieldSet"/>
public class Entity : EntityFieldSet , IEntityTarget {

///<summary>
/// <para><c>entity.target</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("target"), DataMember(Name = "target")]
public EntityTarget? Target { get; set; }
}

///<inheritdoc cref="ErrorFieldSet"/>
public class Error : ErrorFieldSet {
}
Expand Down Expand Up @@ -321,6 +347,10 @@ public class File : FileFieldSet , IHash, IPe, ICodeSignature, IX509, IElf, IMac
public Macho? Macho { get; set; }
}

///<inheritdoc cref="GenAiFieldSet"/>
public class GenAi : GenAiFieldSet {
}

///<inheritdoc cref="GeoFieldSet"/>
public class Geo : GeoFieldSet {
}
Expand All @@ -334,7 +364,14 @@ public class Hash : HashFieldSet {
}

///<inheritdoc cref="HostFieldSet"/>
public class Host : HostFieldSet , IGeo, IOs, IRisk {
public class Host : HostFieldSet , IGeo, IEntity, IOs, IRisk, IHostTarget {

///<summary>
/// <para><c>host.entity</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }

///<summary>
/// <para><c>host.geo</c></para>
Expand All @@ -356,6 +393,13 @@ public class Host : HostFieldSet , IGeo, IOs, IRisk {
///</summary>
[JsonPropertyName("risk"), DataMember(Name = "risk")]
public Risk? Risk { get; set; }

///<summary>
/// <para><c>host.target</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("target"), DataMember(Name = "target")]
public HostTarget? Target { get; set; }
}

///<inheritdoc cref="HttpFieldSet"/>
Expand Down Expand Up @@ -404,7 +448,14 @@ public class Observer : ObserverFieldSet , IGeo, IOs {
}

///<inheritdoc cref="OrchestratorFieldSet"/>
public class Orchestrator : OrchestratorFieldSet {
public class Orchestrator : OrchestratorFieldSet , IEntity {

///<summary>
/// <para><c>orchestrator.entity</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }
}

///<inheritdoc cref="OrganizationFieldSet"/>
Expand Down Expand Up @@ -616,7 +667,14 @@ public class Server : ServerFieldSet , IAs, IGeo, IUser {
}

///<inheritdoc cref="ServiceFieldSet"/>
public class Service : ServiceFieldSet , IServiceOrigin, IServiceTarget {
public class Service : ServiceFieldSet , IEntity, IServiceOrigin, IServiceTarget {

///<summary>
/// <para><c>service.entity</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }

///<summary>
/// <para><c>service.origin</c></para>
Expand Down Expand Up @@ -727,7 +785,7 @@ public class Url : UrlFieldSet {
}

///<inheritdoc cref="UserFieldSet"/>
public class User : UserFieldSet , IRisk, IGroup, IUserTarget, IUserEffective, IUserChanges {
public class User : UserFieldSet , IEntity, IRisk, IGroup, IUserTarget, IUserEffective, IUserChanges {

///<summary>
/// <para><c>user.group</c></para>
Expand All @@ -736,6 +794,13 @@ public class User : UserFieldSet , IRisk, IGroup, IUserTarget, IUserEffective, I
[JsonPropertyName("group"), DataMember(Name = "group")]
public Group? Group { get; set; }

///<summary>
/// <para><c>user.entity</c></para>
/// <example></example>
///</summary>
[JsonPropertyName("entity"), DataMember(Name = "entity")]
public Entity? Entity { get; set; }

///<summary>
/// <para><c>user.risk</c></para>
/// <example></example>
Expand Down
Loading
Loading