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 application: str [Required]

The application generating this event.

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.

field timestamp_ns: int [Required]

The number of nanoseconds since the unix epoch. This is used as the InfluxDB timestamp.