Class: Azure::BatchAI::Mgmt::V2018_05_01::Models::NodeStateCounts

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb

Overview

Counts of various compute node states on the cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#idle_node_countInteger

state.

Returns:

  • (Integer)

    Idle node count. Number of compute nodes in idle



17
18
19
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 17

def idle_node_count
  @idle_node_count
end

#leaving_node_countInteger

leaving the cluster.

Returns:

  • (Integer)

    Leaving node count. Number of compute nodes which are



33
34
35
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 33

def leaving_node_count
  @leaving_node_count
end

#preparing_node_countInteger

are being prepared.

Returns:

  • (Integer)

    Preparing node count. Number of compute nodes which



25
26
27
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 25

def preparing_node_count
  @preparing_node_count
end

#running_node_countInteger

running jobs.

Returns:

  • (Integer)

    Running node count. Number of compute nodes which are



21
22
23
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 21

def running_node_count
  @running_node_count
end

#unusable_node_countInteger

are in unusable state.

Returns:

  • (Integer)

    Unusable node count. Number of compute nodes which



29
30
31
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 29

def unusable_node_count
  @unusable_node_count
end

Class Method Details

.mapperObject

Mapper for NodeStateCounts class as Ruby Hash. This will be used for serialization/deserialization.



40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
# File 'lib/2018-05-01/generated/azure_mgmt_batchai/models/node_state_counts.rb', line 40

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NodeStateCounts',
    type: {
      name: 'Composite',
      class_name: 'NodeStateCounts',
      model_properties: {
        idle_node_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'idleNodeCount',
          type: {
            name: 'Number'
          }
        },
        running_node_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'runningNodeCount',
          type: {
            name: 'Number'
          }
        },
        preparing_node_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'preparingNodeCount',
          type: {
            name: 'Number'
          }
        },
        unusable_node_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'unusableNodeCount',
          type: {
            name: 'Number'
          }
        },
        leaving_node_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'leavingNodeCount',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end