csharp/Microsoft.Azure.Databricks.Client/Models/SparkNode.cs (19 lines of code) (raw):
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System;
using System.Text.Json.Serialization;
namespace Microsoft.Azure.Databricks.Client.Models;
/// <summary>
/// Describes a specific Spark driver or executor.
/// </summary>
public record SparkNode
{
/// <summary>
/// Private IP address (typically a 10.x.x.x address) of the Spark node. Note that this is different from the private IP address of the host instance.
/// </summary>
[JsonPropertyName("private_ip")]
public string PrivateIp { get; set; }
/// <summary>
/// Public DNS address of this node. This address can be used to access the Spark JDBC server on the driver node.
/// </summary>
[JsonPropertyName("public_dns")]
public string PublicDns { get; set; }
/// <summary>
/// Globally unique identifier for this node.
/// </summary>
[JsonPropertyName("node_id")]
public string NodeId { get; set; }
/// <summary>
/// Globally unique identifier for the host instance from the cloud provider.
/// </summary>
[JsonPropertyName("instance_id")]
public string InstanceId { get; set; }
/// <summary>
/// The timestamp when the Spark node is launched.
/// </summary>
[JsonPropertyName("start_timestamp")]
public DateTimeOffset? StartTimestamp { get; set; }
/// <summary>
/// The private IP address of the host instance.
/// </summary>
[JsonPropertyName("host_private_ip")]
public string HostPrivateIp { get; set; }
}