ClusterStateEnum
Enumeration of possible cluster lifecycle states.
@ RESTARTING
Cluster is restarting.
@ RUNNING
Cluster is running and ready for use.
@ UNKNOWN
Unknown or unrecognized state.
@ TERMINATED
Cluster has been terminated.
@ ERROR
Cluster is in an error state.
@ PENDING
Cluster is being created.
@ TERMINATING
Cluster is being terminated.
@ RESIZING
Cluster is being resized.
ClusterStateEnum parse_cluster_state(const std::string &state_str)
Parse a cluster state string into ClusterStateEnum.
std::string cluster_state_to_string(ClusterStateEnum state)
Convert ClusterStateEnum to string representation.
Represents detailed state information for a cluster.
ClusterStateEnum cluster_state
Enumerated state value (default: UNKNOWN)
std::string cluster_id
Unique identifier for the cluster.
std::string state_message
Human-readable message describing the state.
static ClusterState from_json(const std::string &json_str)
Parse a ClusterState from JSON string.
Represents a Databricks cluster.
uint64_t terminated_time
Unix timestamp in milliseconds when cluster terminated (0 if running)
std::map< std::string, std::string > custom_tags
User-defined tags for organization and tracking.
std::string cluster_name
Display name of the cluster.
std::string state
Current lifecycle state (e.g., "RUNNING", "TERMINATED")
int num_workers
Number of worker nodes in the cluster.
uint64_t start_time
Unix timestamp in milliseconds when cluster started.
std::string node_type_id
Cloud provider instance type (e.g., "i3.xlarge")
std::string spark_version
Spark runtime version (e.g., "11.3.x-scala2.12")
std::string cluster_id
Unique identifier for the cluster.
std::string creator_user_name
Username of the cluster creator.