Class: Azure::ServiceFabric::V6_3_0_9::Models::ApplicationHealthPolicy
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::V6_3_0_9::Models::ApplicationHealthPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb
Overview
Defines a health policy used to evaluate the health of an application or one of its children entities.
Instance Attribute Summary collapse
-
#consider_warning_as_error ⇒ Boolean
severity as errors.
-
#default_service_type_health_policy ⇒ ServiceTypeHealthPolicy
evaluate the health of a service type.
-
#max_percent_unhealthy_deployed_applications ⇒ Integer
applications.
-
#service_type_health_policy_map ⇒ Array<ServiceTypeHealthPolicyMapItem>
type health policy per service type name.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ApplicationHealthPolicy class as Ruby Hash.
Instance Attribute Details
#consider_warning_as_error ⇒ Boolean
severity as errors. Default value: false .
18 19 20 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb', line 18 def consider_warning_as_error @consider_warning_as_error end |
#default_service_type_health_policy ⇒ ServiceTypeHealthPolicy
evaluate the health of a service type.
34 35 36 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb', line 34 def default_service_type_health_policy @default_service_type_health_policy end |
#max_percent_unhealthy_deployed_applications ⇒ Integer
applications. Allowed values are Byte values from zero to 100. The percentage represents the maximum tolerated percentage of deployed applications that can be unhealthy before the application is considered in error. This is calculated by dividing the number of unhealthy deployed applications over the number of nodes where the application is currently deployed on in the cluster. The computation rounds up to tolerate one failure on small numbers of nodes. Default percentage is zero. Default value: 0 .
30 31 32 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb', line 30 def max_percent_unhealthy_deployed_applications @max_percent_unhealthy_deployed_applications end |
#service_type_health_policy_map ⇒ Array<ServiceTypeHealthPolicyMapItem>
type health policy per service type name. The map is empty by default.
38 39 40 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb', line 38 def service_type_health_policy_map @service_type_health_policy_map end |
Class Method Details
.mapper ⇒ Object
Mapper for ApplicationHealthPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/6.3.0.9/generated/azure_service_fabric/models/application_health_policy.rb', line 45 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ApplicationHealthPolicy', type: { name: 'Composite', class_name: 'ApplicationHealthPolicy', model_properties: { consider_warning_as_error: { client_side_validation: true, required: false, serialized_name: 'ConsiderWarningAsError', default_value: false, type: { name: 'Boolean' } }, max_percent_unhealthy_deployed_applications: { client_side_validation: true, required: false, serialized_name: 'MaxPercentUnhealthyDeployedApplications', default_value: 0, type: { name: 'Number' } }, default_service_type_health_policy: { client_side_validation: true, required: false, serialized_name: 'DefaultServiceTypeHealthPolicy', type: { name: 'Composite', class_name: 'ServiceTypeHealthPolicy' } }, service_type_health_policy_map: { client_side_validation: true, required: false, serialized_name: 'ServiceTypeHealthPolicyMap', type: { name: 'Sequence', element: { client_side_validation: true, required: false, serialized_name: 'ServiceTypeHealthPolicyMapItemElementType', type: { name: 'Composite', class_name: 'ServiceTypeHealthPolicyMapItem' } } } } } } } end |