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

Represents a specific execution (run) of a Databricks job. More...

#include <jobs_types.h>

Static Public Member Functions

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

Public Attributes

uint64_t run_id = 0
 Unique identifier for this job run.
 
uint64_t job_id = 0
 ID of the job that was executed.
 
std::string state
 Lifecycle state (e.g., "RUNNING", "TERMINATED")
 
uint64_t start_time = 0
 Unix timestamp in milliseconds when the run started.
 
uint64_t end_time = 0
 Unix timestamp in milliseconds when the run ended (0 if still running)
 
std::string result_state
 Result state (e.g., "SUCCESS", "FAILED")
 

Detailed Description

Represents a specific execution (run) of a Databricks job.

Each time a job is triggered, it creates a new run with its own unique run_id. This struct tracks the state and timing information for a job execution.

Definition at line 38 of file jobs_types.h.

Member Function Documentation

◆ from_json()

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

Parse a JobRun from JSON string.

Parameters
json_strJSON representation of a job run
Returns
Parsed JobRun object
Exceptions
std::runtime_errorif parsing fails

Member Data Documentation

◆ end_time

uint64_t databricks::JobRun::end_time = 0

Unix timestamp in milliseconds when the run ended (0 if still running)

Definition at line 43 of file jobs_types.h.

◆ job_id

uint64_t databricks::JobRun::job_id = 0

ID of the job that was executed.

Definition at line 40 of file jobs_types.h.

◆ result_state

std::string databricks::JobRun::result_state

Result state (e.g., "SUCCESS", "FAILED")

Definition at line 44 of file jobs_types.h.

◆ run_id

uint64_t databricks::JobRun::run_id = 0

Unique identifier for this job run.

Definition at line 39 of file jobs_types.h.

◆ start_time

uint64_t databricks::JobRun::start_time = 0

Unix timestamp in milliseconds when the run started.

Definition at line 42 of file jobs_types.h.

◆ state

std::string databricks::JobRun::state

Lifecycle state (e.g., "RUNNING", "TERMINATED")

Definition at line 41 of file jobs_types.h.


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