Class: Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicy
- Inherits:
-
Object
- Object
- Azure::ServiceFabric::Mgmt::V2017_07_01_preview::Models::ServiceTypeHealthPolicy
- Includes:
- MsRestAzure
- Defined in:
- lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb
Overview
Represents the health policy used to evaluate the health of services belonging to a service type.
Instance Attribute Summary collapse
-
#max_percent_unhealthy_partitions_per_service ⇒ Integer
partitions per service.
-
#max_percent_unhealthy_replicas_per_partition ⇒ Integer
per partition.
-
#max_percent_unhealthy_services ⇒ Integer
services.
Class Method Summary collapse
-
.mapper ⇒ Object
Mapper for ServiceTypeHealthPolicy class as Ruby Hash.
Instance Attribute Details
#max_percent_unhealthy_partitions_per_service ⇒ Integer
partitions per service. Allowed values are Byte values from zero to 100
The percentage represents the maximum tolerated percentage of partitions that can be unhealthy before the service is considered in error. If the percentage is respected but there is at least one unhealthy partition, the health is evaluated as Warning. The percentage is calculated by dividing the number of unhealthy partitions over the total number of partitions in the service. The computation rounds up to tolerate one failure on small numbers of partitions. Default percentage is zero. . Default value: 0 .
30 31 32 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 30 def max_percent_unhealthy_partitions_per_service @max_percent_unhealthy_partitions_per_service end |
#max_percent_unhealthy_replicas_per_partition ⇒ Integer
per partition. Allowed values are Byte values from zero to 100.
The percentage represents the maximum tolerated percentage of replicas that can be unhealthy before the partition is considered in error. If the percentage is respected but there is at least one unhealthy replica, the health is evaluated as Warning. The percentage is calculated by dividing the number of unhealthy replicas over the total number of replicas in the partition. The computation rounds up to tolerate one failure on small numbers of replicas. Default percentage is zero. . Default value: 0 .
44 45 46 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 44 def max_percent_unhealthy_replicas_per_partition @max_percent_unhealthy_replicas_per_partition end |
#max_percent_unhealthy_services ⇒ Integer
services. Allowed values are Byte values from zero to 100.
The percentage represents the maximum tolerated percentage of services that can be unhealthy before the application is considered in error. If the percentage is respected but there is at least one unhealthy service, the health is evaluated as Warning. This is calculated by dividing the number of unhealthy services of the specific service type over the total number of services of the specific service type. The computation rounds up to tolerate one failure on small numbers of services. Default percentage is zero. . Default value: 0 .
59 60 61 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 59 def max_percent_unhealthy_services @max_percent_unhealthy_services end |
Class Method Details
.mapper ⇒ Object
Mapper for ServiceTypeHealthPolicy class as Ruby Hash. This will be used for serialization/deserialization.
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 |
# File 'lib/2017-07-01-preview/generated/azure_mgmt_service_fabric/models/service_type_health_policy.rb', line 66 def self.mapper() { client_side_validation: true, required: false, serialized_name: 'ServiceTypeHealthPolicy', type: { name: 'Composite', class_name: 'ServiceTypeHealthPolicy', model_properties: { max_percent_unhealthy_partitions_per_service: { client_side_validation: true, required: false, serialized_name: 'MaxPercentUnhealthyPartitionsPerService', default_value: 0, type: { name: 'Number' } }, max_percent_unhealthy_replicas_per_partition: { client_side_validation: true, required: false, serialized_name: 'MaxPercentUnhealthyReplicasPerPartition', default_value: 0, type: { name: 'Number' } }, max_percent_unhealthy_services: { client_side_validation: true, required: false, serialized_name: 'MaxPercentUnhealthyServices', default_value: 0, type: { name: 'Number' } } } } } end |