class Azure::ServiceFabric::V6_2_0_9::Models::StatelessServiceInstanceInfo

Represents a stateless service instance. This includes information about the identity, status, health, node name, uptime, and other details about the instance.

Attributes

ServiceKind[RW]
instance_id[RW]

@return [String] Id of a stateless service instance. InstanceId is used by Service Fabric to uniquely identify an instance of a partition of a stateless service. It is unique within a partition and does not change for the lifetime of the instance. If the instance has failed over on the same or different node, it will get a different value for the InstanceId.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/stateless_service_instance_info.rb, line 37
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateless',
    type: {
      name: 'Composite',
      class_name: 'StatelessServiceInstanceInfo',
      model_properties: {
        replica_status: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReplicaStatus',
          type: {
            name: 'String'
          }
        },
        health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'HealthState',
          type: {
            name: 'String'
          }
        },
        node_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'NodeName',
          type: {
            name: 'String'
          }
        },
        address: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Address',
          type: {
            name: 'String'
          }
        },
        last_in_build_duration_in_seconds: {
          client_side_validation: true,
          required: false,
          serialized_name: 'LastInBuildDurationInSeconds',
          type: {
            name: 'String'
          }
        },
        ServiceKind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'ServiceKind',
          type: {
            name: 'String'
          }
        },
        instance_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'InstanceId',
          type: {
            name: 'String'
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.2.0.9/generated/azure_service_fabric/models/stateless_service_instance_info.rb, line 18
def initialize
  @ServiceKind = "Stateless"
end