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

Represents a Databricks cluster. More...

#include <compute_types.h>

Public Attributes

std::string cluster_id
 Unique identifier for the cluster.
 
std::string cluster_name
 Display name of the cluster.
 
std::string state
 Current lifecycle state (e.g., "RUNNING", "TERMINATED")
 
std::string creator_user_name
 Username of the cluster creator.
 
uint64_t start_time = 0
 Unix timestamp in milliseconds when cluster started.
 
uint64_t terminated_time = 0
 Unix timestamp in milliseconds when cluster terminated (0 if running)
 
std::string spark_version
 Spark runtime version (e.g., "11.3.x-scala2.12")
 
std::string node_type_id
 Cloud provider instance type (e.g., "i3.xlarge")
 
int num_workers = 0
 Number of worker nodes in the cluster.
 
std::map< std::string, std::string > custom_tags
 User-defined tags for organization and tracking.
 

Detailed Description

Represents a Databricks cluster.

Clusters are compute resources used to run notebooks, jobs, and other workloads. This struct contains the core metadata about a cluster configuration and its state.

Definition at line 45 of file compute_types.h.

Member Data Documentation

◆ cluster_id

std::string databricks::Cluster::cluster_id

Unique identifier for the cluster.

Definition at line 46 of file compute_types.h.

◆ cluster_name

std::string databricks::Cluster::cluster_name

Display name of the cluster.

Definition at line 47 of file compute_types.h.

◆ creator_user_name

std::string databricks::Cluster::creator_user_name

Username of the cluster creator.

Definition at line 49 of file compute_types.h.

◆ custom_tags

std::map<std::string, std::string> databricks::Cluster::custom_tags

User-defined tags for organization and tracking.

Definition at line 55 of file compute_types.h.

◆ node_type_id

std::string databricks::Cluster::node_type_id

Cloud provider instance type (e.g., "i3.xlarge")

Definition at line 53 of file compute_types.h.

◆ num_workers

int databricks::Cluster::num_workers = 0

Number of worker nodes in the cluster.

Definition at line 54 of file compute_types.h.

◆ spark_version

std::string databricks::Cluster::spark_version

Spark runtime version (e.g., "11.3.x-scala2.12")

Definition at line 52 of file compute_types.h.

◆ start_time

uint64_t databricks::Cluster::start_time = 0

Unix timestamp in milliseconds when cluster started.

Definition at line 50 of file compute_types.h.

◆ state

std::string databricks::Cluster::state

Current lifecycle state (e.g., "RUNNING", "TERMINATED")

Definition at line 48 of file compute_types.h.

◆ terminated_time

uint64_t databricks::Cluster::terminated_time = 0

Unix timestamp in milliseconds when cluster terminated (0 if running)

Definition at line 51 of file compute_types.h.


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