def get_replica_health(partition_id, replica_id, events_health_state_filter:0, timeout:60, custom_headers:nil)
      response = get_replica_health_async(partition_id, replica_id, events_health_state_filter:events_health_state_filter, timeout:timeout, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def get_replica_health(partition_id, replica_id, events_health_state_filter:0, timeout:60, custom_headers:nil)
      response = get_replica_health_async(partition_id, replica_id, events_health_state_filter:events_health_state_filter, timeout:timeout, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets the health of a Service Fabric stateful service replica or stateless
 service instance.

 Gets the health of a Service Fabric replica.
 Use EventsHealthStateFilter to filter the collection of health events
 reported on the replica based on the health state.

 @param partition_id The identity of the partition.
 @param replica_id [String] The identifier of the replica.
 @param events_health_state_filter [Integer] Allows filtering the collection
 of HealthEvent objects returned based on health state.
 The possible values for this parameter include integer value of one of the
 following health states.
 Only events that match the filter are returned. All events are used to
 evaluate the aggregated health state.
 If not specified, all entries are returned. The state values are flag based
 enumeration, so the value could be a combination of these value obtained
 using bitwise 'OR' operator. For example, If the provided value is 6 then all
 of the events with HealthState value of OK (2) and Warning (4) are returned.

 - Default - Default value. Matches any HealthState. The value is zero.
 - None - Filter that doesn't match any HealthState value. Used in order to
 return no results on a given collection of states. The value is 1.
 - Ok - Filter that matches input with HealthState value Ok. The value is 2.
 - Warning - Filter that matches input with HealthState value Warning. The
 value is 4.
 - Error - Filter that matches input with HealthState value Error. The value
 is 8.
 - All - Filter that matches input with any HealthState value. The value is
 65535.
 @param timeout [Integer] The server timeout for performing the operation in
 seconds. This timeout specifies the time duration that the client is willing
 to wait for the requested operation to complete. The default value for this
 parameter is 60 seconds.
 @param custom_headers [Hash{String => String}] A hash of custom headers that
 will be added to the HTTP request.

 @return [ReplicaHealth] operation results.