Databricks C++ SDK 0.2.4
Interact with Databricks via an SDK
Loading...
Searching...
No Matches
databricks::ClusterState Struct Reference

Represents detailed state information for a cluster. More...

#include <compute_types.h>

Static Public Member Functions

static ClusterState from_json (const std::string &json_str)
 Parse a ClusterState from JSON string.
 

Public Attributes

std::string cluster_id
 Unique identifier for the cluster.
 
ClusterStateEnum cluster_state = ClusterStateEnum::UNKNOWN
 Enumerated state value (default: UNKNOWN)
 
std::string state_message
 Human-readable message describing the state.
 

Detailed Description

Represents detailed state information for a cluster.

Provides more granular state information including state messages that can help diagnose issues or understand cluster status.

Definition at line 64 of file compute_types.h.

Member Function Documentation

◆ from_json()

static ClusterState databricks::ClusterState::from_json ( const std::string &  json_str)
static

Parse a ClusterState from JSON string.

Parameters
json_strJSON representation of cluster state
Returns
Parsed ClusterState object
Exceptions
std::runtime_errorif parsing fails

Member Data Documentation

◆ cluster_id

std::string databricks::ClusterState::cluster_id

Unique identifier for the cluster.

Definition at line 65 of file compute_types.h.

◆ cluster_state

ClusterStateEnum databricks::ClusterState::cluster_state = ClusterStateEnum::UNKNOWN

Enumerated state value (default: UNKNOWN)

Definition at line 66 of file compute_types.h.

◆ state_message

std::string databricks::ClusterState::state_message

Human-readable message describing the state.

Definition at line 67 of file compute_types.h.


The documentation for this struct was generated from the following file: