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": {}
}

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