def get_service_health_using_policy(service_id, events_health_state_filter:0, partitions_health_state_filter:0, application_health_policy:nil, exclude_health_statistics:false, timeout:60, custom_headers:nil)
      response = get_service_health_using_policy_async(service_id, events_health_state_filter:events_health_state_filter, partitions_health_state_filter:partitions_health_state_filter, application_health_policy:application_health_policy, exclude_health_statistics:exclude_health_statistics, timeout:timeout, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
def get_service_health_using_policy(service_id, events_health_state_filter:0, partitions_health_state_filter:0, application_health_policy:nil, exclude_health_statistics:false, timeout:60, custom_headers:nil)
      response = get_service_health_using_policy_async(service_id, events_health_state_filter:events_health_state_filter, partitions_health_state_filter:partitions_health_state_filter, application_health_policy:application_health_policy, exclude_health_statistics:exclude_health_statistics, timeout:timeout, custom_headers:custom_headers).value!
      response.body unless response.nil?
    end
Gets the health of the specified Service Fabric service, by using the
 specified health policy.

 Gets the health information of the specified service.
 If the application health policy is specified, the health evaluation uses it
 to get the aggregated health state.
 If the policy is not specified, the health evaluation uses the application
 health policy defined in the application manifest, or the default health
 policy, if no policy is defined in the manifest.
 Use EventsHealthStateFilter to filter the collection of health events
 reported on the service based on the health state.
 Use PartitionsHealthStateFilter to filter the collection of partitions
 returned.
 If you specify a service that does not exist in the health store, this
 request returns an error.

 @param service_id [String] The identity of the service. This is typically the
 full name of the service without the 'fabric:' URI scheme.
 Starting from version 6.0, hierarchical names are delimited with the "~"
 character.
 For example, if the service name is "fabric:/myapp/app1/svc1", the service
 identity would be "myapp~app1~svc1" in 6.0+ and "myapp/app1/svc1" in previous
 versions.
 @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 partitions_health_state_filter [Integer] Allows filtering of the
 partitions health state objects returned in the result of service health
 query based on their health state.
 The possible values for this parameter include integer value of one of the
 following health states.
 Only partitions that match the filter are returned. All partitions 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 health state of partitions with HealthState value of OK (2) and Warning
 (4) will be 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 application_health_policy [ApplicationHealthPolicy] Describes the
 health policies used to evaluate the health of an application or one of its
 children.
 If not present, the health evaluation uses the health policy from application
 manifest or the default health policy.
 @param exclude_health_statistics [Boolean] Indicates whether the health
 statistics should be returned as part of the query result. False by default.
 The statistics show the number of children entities in health state Ok,
 Warning, and Error.
 @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 [ServiceHealth] operation results.