class Azure::Security::Mgmt::V2020_01_01_preview::Models::SecureScoreControlDetails

Details of the security control, its score, and the health status of the relevant resources.

Attributes

current[RW]

@return [Float] Current score

definition[RW]

@return [SecureScoreControlDefinitionItem]

display_name[RW]

@return [String] User friendly display name of the control

healthy_resource_count[RW]

@return [Integer] Number of healthy resources in the control

max[RW]

@return [Integer] Maximum score available

not_applicable_resource_count[RW]

@return [Integer] Number of not applicable resources in the control

percentage[RW]

@return [Float] Ratio of the current score divided by the maximum. Rounded to 4 digits after the decimal point

unhealthy_resource_count[RW]

@return [Integer] Number of unhealthy resources in the control

weight[RW]

@return [Integer] The relative weight for this specific control in each of your subscriptions. Used when calculating an aggregated score for this control across all of your subscriptions.

Public Class Methods

mapper() click to toggle source

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

# File lib/2020-01-01-preview/generated/azure_mgmt_security/models/secure_score_control_details.rb, line 51
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SecureScoreControlDetails',
    type: {
      name: 'Composite',
      class_name: 'SecureScoreControlDetails',
      model_properties: {
        id: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'id',
          type: {
            name: 'String'
          }
        },
        name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'name',
          type: {
            name: 'String'
          }
        },
        type: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'type',
          type: {
            name: 'String'
          }
        },
        display_name: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.displayName',
          type: {
            name: 'String'
          }
        },
        max: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.score.max',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        current: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.score.current',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Double'
          }
        },
        percentage: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.score.percentage',
          constraints: {
            InclusiveMaximum: 1,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Double'
          }
        },
        healthy_resource_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.healthyResourceCount',
          type: {
            name: 'Number'
          }
        },
        unhealthy_resource_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.unhealthyResourceCount',
          type: {
            name: 'Number'
          }
        },
        not_applicable_resource_count: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.notApplicableResourceCount',
          type: {
            name: 'Number'
          }
        },
        weight: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'properties.weight',
          constraints: {
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        definition: {
          client_side_validation: true,
          required: false,
          serialized_name: 'properties.definition',
          type: {
            name: 'Composite',
            class_name: 'SecureScoreControlDefinitionItem'
          }
        }
      }
    }
  }
end