EventMetadata¶
- pydantic model safir.metrics.EventMetadata¶
Common fields for all metrics events.
Contains the minimum required fields. This gets mixed in to a class also containing event payload fields, and then gets shipped to Kafka, by the
EventManager
- Parameters:
data (
Any
)- Fields:
-
field id:
Annotated
[UUID
] [Required]¶ A globally unique value that identifies this event
- Constraints:
uuid_version = 4
-
field timestamp:
AwareDatetime
[Required]¶ The time at which this event occurred, or the time at which this event completed if it is a duration event.