delta_trace_db.query.cause.temporal_trace.temporal_trace

Classes

TemporalTrace([nodes])

(en) This class records the "time trail" of an event.

class delta_trace_db.query.cause.temporal_trace.temporal_trace.TemporalTrace(nodes: List[TimestampNode] | None = None)

Bases: CloneableFile

(en) This class records the “time trail” of an event. This allows you to track transmissions, even when communication paths are relayed. This can be used in the future to communicate between planets, etc.

(ja) イベントの「時間の軌跡」を記録するクラスです。 これを利用することで、通信経路をリレーする場合も含め、転送を追跡できます。 これは将来的に惑星間通信などが必要になってもそのまま利用できるようになっています。

Parameters:

nodes (Optional[List[TimestampNode]]) – A chain of timestamps, which stores timestamps in route order.

class_name = 'TemporalTrace'
clone() TemporalTrace

(en) Returns a deep copy of this object.

(ja) このオブジェクトのディープコピーを返します。

property finalized_at: datetime | None

(en) The time when the last event was recorded. Usually returns the time when it reached the endpoint server.

(ja) 最後のイベントが記録された時刻です。 通常はエンドポイントサーバー到達時点の時刻を返します。

classmethod from_dict(src: Dict[str, Any]) TemporalTrace

(en) Restore this object from the dictionary.

(ja) このオブジェクトを辞書から復元します。

Parameters:

src (Dict[str, Any]) – A dictionary made with to_dict of this class.

Returns:

復元されたオブジェクト

Return type:

CloneableFile

property initiated_at: datetime | None

(en) The time when the first event occurred. Usually returns the time when the data was sent on the frontend device.

(ja) 最初のイベントが発生した時刻です。 通常はフロントエンドデバイスにおけるデータ送信時の時刻を返します。

to_dict() Dict[str, Any]

(en) Convert the object to a dictionary. The returned dictionary can only contain primitive types, null, lists or maps with only primitive elements. If you want to include other classes, the target class should inherit from this class and chain calls to_dict.

(ja) このオブジェクトを辞書に変換します。 戻り値の辞書にはプリミティブ型かプリミティブ型要素のみのリスト またはマップ等、そしてNoneのみを含められます。 それ以外のクラスを含めたい場合、対象のクラスもこのクラスを継承し、 to_dictを連鎖的に呼び出すようにしてください。

version = '1'