class Azure::ServiceFabric::V6_2_0_9::Models::ApplicationsHealthEvaluation

Represents health evaluation for applications, containing health evaluations for each unhealthy application that impacted current aggregated health state.

Attributes

Kind[RW]
max_percent_unhealthy_applications[RW]

@return [Integer] Maximum allowed percentage of unhealthy applications from the ClusterHealthPolicy.

total_count[RW]

@return [Integer] Total number of applications from the health store.

unhealthy_evaluations[RW]

@return [Array<HealthEvaluationWrapper>] List of unhealthy evaluations that led to the aggregated health state. Includes all the unhealthy ApplicationHealthEvaluation that impacted the aggregated health.

Public Class Methods

mapper() click to toggle source

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

# File lib/6.2.0.9/generated/azure_service_fabric/models/applications_health_evaluation.rb, line 41
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'Applications',
    type: {
      name: 'Composite',
      class_name: 'ApplicationsHealthEvaluation',
      model_properties: {
        aggregated_health_state: {
          client_side_validation: true,
          required: false,
          serialized_name: 'AggregatedHealthState',
          type: {
            name: 'String'
          }
        },
        description: {
          client_side_validation: true,
          required: false,
          serialized_name: 'Description',
          type: {
            name: 'String'
          }
        },
        Kind: {
          client_side_validation: true,
          required: true,
          serialized_name: 'Kind',
          type: {
            name: 'String'
          }
        },
        max_percent_unhealthy_applications: {
          client_side_validation: true,
          required: false,
          serialized_name: 'MaxPercentUnhealthyApplications',
          type: {
            name: 'Number'
          }
        },
        total_count: {
          client_side_validation: true,
          required: false,
          serialized_name: 'TotalCount',
          type: {
            name: 'Number'
          }
        },
        unhealthy_evaluations: {
          client_side_validation: true,
          required: false,
          serialized_name: 'UnhealthyEvaluations',
          type: {
            name: 'Sequence',
            element: {
                client_side_validation: true,
                required: false,
                serialized_name: 'HealthEvaluationWrapperElementType',
                type: {
                  name: 'Composite',
                  class_name: 'HealthEvaluationWrapper'
                }
            }
          }
        }
      }
    }
  }
end
new() click to toggle source
# File lib/6.2.0.9/generated/azure_service_fabric/models/applications_health_evaluation.rb, line 18
def initialize
  @Kind = "Applications"
end