Class: Azure::ServiceFabric::V6_2_0_9::Models::DeployedStatelessServiceInstanceDetailInfo

Inherits:
DeployedServiceReplicaDetailInfo show all
Includes:
MsRestAzure
Defined in:
lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb

Overview

Information about a stateless instance running in a code package. Please note that DeployedServiceReplicaQueryResult will contain duplicate data like ServiceKind, ServiceName, PartitionId and InstanceId.

Instance Attribute Summary collapse

Attributes inherited from DeployedServiceReplicaDetailInfo

#current_service_operation, #current_service_operation_start_time_utc, #partition_id, #reported_load, #service_name

Class Method Summary collapse

Instance Method Summary collapse

Constructor Details

#initializeDeployedStatelessServiceInstanceDetailInfo

Returns a new instance of DeployedStatelessServiceInstanceDetailInfo.



18
19
20
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb', line 18

def initialize
  @ServiceKind = "Stateless"
end

Instance Attribute Details

#deployed_service_replica_query_resultDeployedStatelessServiceInstanceInfo

stateless service instance deployed on a node.

Returns:



34
35
36
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb', line 34

def deployed_service_replica_query_result
  @deployed_service_replica_query_result
end

#instance_idString

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.

Returns:

  • (String)

    Id of a stateless service instance. InstanceId is used



30
31
32
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb', line 30

def instance_id
  @instance_id
end

#ServiceKindObject

Returns the value of attribute ServiceKind.



22
23
24
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb', line 22

def ServiceKind
  @ServiceKind
end

Class Method Details

.mapperObject

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



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
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
# File 'lib/6.2.0.9/generated/azure_service_fabric/models/deployed_stateless_service_instance_detail_info.rb', line 42

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Stateless',
    type: {
      name: 'Composite',
      class_name: 'DeployedStatelessServiceInstanceDetailInfo',
      model_properties: {
        service_name: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ServiceName',
          type: {
            name: 'String'
          }
        },
        partition_id: {
          client_side_validation: true,
          required: false,
          serialized_name: 'PartitionId',
          type: {
            name: 'String'
          }
        },
        current_service_operation: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentServiceOperation',
          type: {
            name: 'String'
          }
        },
        current_service_operation_start_time_utc: {
          client_side_validation: true,
          required: false,
          serialized_name: 'CurrentServiceOperationStartTimeUtc',
          type: {
            name: 'DateTime'
          }
        },
        reported_load: {
          client_side_validation: true,
          required: false,
          serialized_name: 'ReportedLoad',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'LoadMetricReportInfoElementType',
                type: {
                  name: 'Composite',
                  class_name: 'LoadMetricReportInfo'
                }
            }
          }
        },
        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'
          }
        },
        deployed_service_replica_query_result: {
          client_side_validation: true,
          required: false,
          serialized_name: 'DeployedServiceReplicaQueryResult',
          type: {
            name: 'Composite',
            class_name: 'DeployedStatelessServiceInstanceInfo'
          }
        }
      }
    }
  }
end