snapshots
Snapshot classes for the Datalayer SDK.
class RuntimeSnapshot(uid: str, name: str, description: str, environment: str, metadata: dict[str, typing.Any])
Represents a snapshot of a Datalayer runtime state.
Parameters
-
uid : str
Unique identifier for the snapshot.
-
name : str
Name of the snapshot.
-
description : str
Description of the snapshot.
-
environment : str
Environment associated with the snapshot.
-
metadata : dict[str, Any]
Metadata related to the snapshot.
__init__(uid: str, name: str, description: str, environment: str, metadata: dict[str, typing.Any])
Initialize a runtime snapshot.
Parameters
-
uid : str
Unique identifier for the snapshot.
-
name : str
Name of the snapshot.
-
description : str
Description of the snapshot.
-
environment : str
Environment associated with the snapshot.
-
metadata : dict[str, Any]
Metadata related to the snapshot.
environment
Get the environment of the snapshot.
Returns
-
str
The environment associated with the snapshot.
uid
Get the unique identifier of the snapshot.
Returns
-
str
The unique identifier of the snapshot.
metadata
Get the metadata of the snapshot.
Returns
-
dict[str, Any]
The metadata associated with the snapshot.