Skip to content

feat: AuditEvent data model (M2-10698) - #2046

Merged
divbzero merged 15 commits into
developfrom
M2-10698-audit-event-model
May 5, 2026
Merged

feat: AuditEvent data model (M2-10698)#2046
divbzero merged 15 commits into
developfrom
M2-10698-audit-event-model

Conversation

@divbzero

@divbzero divbzero commented May 4, 2026

Copy link
Copy Markdown
Contributor

📝 Description

🔗 Jira Ticket M2-10698

Changes include:

  • Define AuditEvent data model
  • Define audit.log stub

This provides a common interface that we can work against for M2-10697, M2-10698, M2-10699, and M2-10700.

✏️ Notes

We try to use standard Elastic Common Schema (ECS) fields where possible.

Comment thread src/apps/audit/service.py
Comment thread src/apps/audit/service.py
I removed by_alias=True in commit f5a8a01 but serialize_by_alias=True
wasn't actually set on PublicModel. Set here on AuditEvent instead.
Comment thread src/apps/audit/domain.py Outdated
Comment thread src/apps/audit/domain.py Outdated

@adeiji adeiji left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It looks good! I do agree with the comment that Sri made about mapping fields as a list.

@sricharan-varanasi sricharan-varanasi left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me!

@divbzero
divbzero merged commit 96d4c62 into develop May 5, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants