csharp/Microsoft.Azure.Databricks.Client/Models/InstancePoolStats.cs (14 lines of code) (raw):
// Copyright (c) Microsoft Corporation. All rights reserved.
// Licensed under the MIT License.
using System.Text.Json.Serialization;
namespace Microsoft.Azure.Databricks.Client.Models;
/// <summary>
/// Statistics about the usage of the instance pool.
/// </summary>
public record InstancePoolStats
{
/// <summary>
/// Number of active instances that are in use by a cluster.
/// </summary>
[JsonPropertyName("used_count")]
public int UsedCount { get; set; }
/// <summary>
/// Number of active instances that are not in use by a cluster.
/// </summary>
[JsonPropertyName("idle_count")]
public int IdleCount { get; set; }
/// <summary>
/// Number of pending instances that are assigned to a cluster.
/// </summary>
[JsonPropertyName("pending_used_count")]
public int PendingUsedCount { get; set; }
/// <summary>
/// Number of pending instances that are not assigned to a cluster.
/// </summary>
[JsonPropertyName("pending_idle_count")]
public int PendingIdleCount { get; set; }
}