events
最后更新
luxonis_ml.telemetry.events类
TelemetryEvent
方法
create
Python
1def create(*, name: str, properties: dict[str, Any], context: dict[str, Any], distinct_id: str | None = None, schema_version: int = 1) -> TelemetryEvent:name(str): 事件名称。properties(dict[str, Any]): 净化后的事件属性。context(dict[str, Any]): 要附加到事件的合并上下文。distinct_id(str | None): 可选的后端身份覆盖。schema_version(int): 事件模式版本。
TelemetryEvent: 带有 UTC 时间戳的遥测事件。
to_payload
Python
1def to_payload(self) -> dict[str, Any]: