EventPayload

pydantic model safir.metrics.EventPayload

All event payloads should inherit from this.

Parameters:

data (Any)

Show JSON schema
{
   "title": "EventPayload",
   "description": "All event payloads should inherit from this.",
   "type": "object",
   "properties": {}
}

Config:
  • json_encoders: dict = {<class ‘safir.metrics._models.EventDuration’>: <class ‘float’>}

classmethod validate_structure()

Do runtime validation of fields.

Make sure all of the fields are compatible with the backing datastore (InfluxDB at the moment).

Return type:

None