delta_trace_db.query.cause.temporal_trace.timestamp_node¶
Functions
|
(en) This function converts a UTC ISO8601 string with the same behavior as Dart's timestamp.toUtc().toIso8601String(). |
Classes
|
(en) A node representing each checkpoint on the trajectory. |
- class delta_trace_db.query.cause.temporal_trace.timestamp_node.TimestampNode(timestamp: datetime, location: str, context: Dict[str, Any] = None)¶
Bases:
CloneableFile(en) A node representing each checkpoint on the trajectory. This will contain individual data for each point, in case data needs to be relayed between servers, etc.
(ja) 軌跡上の各チェックポイントを表すノードです。 サーバー間でデータのリレーが必要になった場合などには、各地点での個別のデータが入ります。
- Parameters:
timestamp (datetime) – The timestamp recorded when the data was generated.
location (str) – The name or identifier of the location where the data was generated. e.g. ‘UserBrowserClient’, ‘ApiGateway’, ‘MarsRelaySatellite-7’
context (Dict[str, Any]) – Additional contextual information about where the data was generated. The key is the location name.
- class_name = 'TimestampNode'¶
- clone()¶
(en) Returns a deep copy of this object.
(ja) このオブジェクトのディープコピーを返します。
- classmethod from_dict(src: Dict[str, Any]) TimestampNode¶
(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
- 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'¶
- delta_trace_db.query.cause.temporal_trace.timestamp_node.to_utc_iso(dt: datetime) str¶
(en) This function converts a UTC ISO8601 string with the same behavior as Dart’s timestamp.toUtc().toIso8601String().
(ja) Dart の timestamp.toUtc().toIso8601String() と同じ挙動で UTC ISO8601 文字列に変換する関数。
Convert aware datetimes (with a time zone) to UTC.
Treat naive datetimes (without a time zone) as UTC.
- Parameters:
dt (datetime) – Conversion target.