Class: Azure::ServiceFabric::V6_3_0_9::Models::NodeInfo

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb

Overview

Information about a node in Service Fabric cluster.

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#code_versionString

is running.

Returns:

  • (String)

    The version of Service Fabric binaries that the node



27
28
29
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 27

def code_version
  @code_version
end

#config_versionString

the node is using.

Returns:

  • (String)

    The version of Service Fabric cluster manifest that



31
32
33
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 31

def config_version
  @config_version
end

#fault_domainString

Returns The fault domain of the node.

Returns:

  • (String)

    The fault domain of the node.



56
57
58
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 56

def fault_domain
  @fault_domain
end

#health_stateHealthState

as Cluster, Node, Application, Service, Partition, Replica etc. Possible values include: ‘Invalid’, ‘Ok’, ‘Warning’, ‘Error’, ‘Unknown’

Returns:

  • (HealthState)

    The health state of a Service Fabric entity such



45
46
47
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 45

def health_state
  @health_state
end

#idNodeId

identify a node. Node Id is deterministically generated from node name.

Returns:

  • (NodeId)

    An internal ID used by Service Fabric to uniquely



60
61
62
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 60

def id
  @id
end

#instance_idString

the node is deterministically generated from the node name and remains same across restarts, the InstanceId changes every time node restarts.

Returns:

  • (String)

    The ID representing the node instance. While the ID of



65
66
67
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 65

def instance_id
  @instance_id
end

#ip_address_or_fqdnString

node.

Returns:

  • (String)

    The IP address or fully qualified domain name of the



20
21
22
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 20

def ip_address_or_fqdn
  @ip_address_or_fqdn
end

#is_seed_nodeBoolean

true if the node is a seed node, otherwise false. A quorum of seed nodes are required for proper operation of Service Fabric cluster.

Returns:

  • (Boolean)

    Indicates if the node is a seed node or not. Returns



50
51
52
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 50

def is_seed_node
  @is_seed_node
end

#is_stoppedBoolean

API or not. Returns true if the node is stopped, otherwise false.

Returns:

  • (Boolean)

    Indicates if the node is stopped by calling stop node



74
75
76
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 74

def is_stopped
  @is_stopped
end

#nameString

Returns The name of a Service Fabric node.

Returns:

  • (String)

    The name of a Service Fabric node.



16
17
18
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 16

def name
  @name
end

#node_deactivation_infoNodeDeactivationInfo

This information is valid for a node that is undergoing deactivation or has already been deactivated.

Returns:



70
71
72
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 70

def node_deactivation_info
  @node_deactivation_info
end

#node_down_atDateTime

has never been down then this value will be zero date time.

Returns:

  • (DateTime)

    Date time in UTC when the node went down. If node



86
87
88
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 86

def node_down_at
  @node_down_at
end

#node_down_time_in_secondsString

Down. Value zero indicates node is not NodeStatus Down.

Returns:

  • (String)

    Time in seconds since the node has been in NodeStatus



78
79
80
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 78

def node_down_time_in_seconds
  @node_down_time_in_seconds
end

#node_statusNodeStatus

‘Invalid’, ‘Up’, ‘Down’, ‘Enabling’, ‘Disabling’, ‘Disabled’, ‘Unknown’, ‘Removed’

Returns:

  • (NodeStatus)

    The status of the node. Possible values include:



36
37
38
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 36

def node_status
  @node_status
end

#node_up_atDateTime

has never been up then this value will be zero date time.

Returns:

  • (DateTime)

    Date time in UTC when the node came up. If the node



82
83
84
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 82

def node_up_at
  @node_up_at
end

#node_up_time_in_secondsString

Up. Value zero indicates that the node is not Up.

Returns:

  • (String)

    Time in seconds since the node has been in NodeStatus



40
41
42
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 40

def node_up_time_in_seconds
  @node_up_time_in_seconds
end

#typeString

Returns The type of the node.

Returns:

  • (String)

    The type of the node.



23
24
25
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 23

def type
  @type
end

#upgrade_domainString

Returns The upgrade domain of the node.

Returns:

  • (String)

    The upgrade domain of the node.



53
54
55
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 53

def upgrade_domain
  @upgrade_domain
end

Class Method Details

.mapperObject

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



93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/node_info.rb', line 93

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'NodeInfo',
    type: {
      name: 'Composite',
      class_name: 'NodeInfo',
      model_properties: {
        name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Name',
          type: {
            name: 'String'
          }
        },
        ip_address_or_fqdn: {
          client_side_validation: true,
          required: false,
          serialized_name: 'IpAddressOrFQDN',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Type',
          type: {
            name: 'String'
          }
        },
        code_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CodeVersion',
          type: {
            name: 'String'
          }
        },
        config_version: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ConfigVersion',
          type: {
            name: 'String'
          }
        },
        node_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeStatus',
          type: {
            name: 'String'
          }
        },
        node_up_time_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeUpTimeInSeconds',
          type: {
            name: 'String'
          }
        },
        health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthState',
          type: {
            name: 'String'
          }
        },
        is_seed_node: {
          client_side_validation: true,
          required: false,
          serialized_name: 'IsSeedNode',
          type: {
            name: 'Boolean'
          }
        },
        upgrade_domain: {
          client_side_validation: true,
          required: false,
          serialized_name: 'UpgradeDomain',
          type: {
            name: 'String'
          }
        },
        fault_domain: {
          client_side_validation: true,
          required: false,
          serialized_name: 'FaultDomain',
          type: {
            name: 'String'
          }
        },
        id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Id',
          type: {
            name: 'Composite',
            class_name: 'NodeId'
          }
        },
        instance_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'InstanceId',
          type: {
            name: 'String'
          }
        },
        node_deactivation_info: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeDeactivationInfo',
          type: {
            name: 'Composite',
            class_name: 'NodeDeactivationInfo'
          }
        },
        is_stopped: {
          client_side_validation: true,
          required: false,
          serialized_name: 'IsStopped',
          type: {
            name: 'Boolean'
          }
        },
        node_down_time_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeDownTimeInSeconds',
          type: {
            name: 'String'
          }
        },
        node_up_at: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeUpAt',
          type: {
            name: 'DateTime'
          }
        },
        node_down_at: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeDownAt',
          type: {
            name: 'DateTime'
          }
        }
      }
    }
  }
end