class Azure::Security::Mgmt::V2020_01_01::Models::SecureScoreControlScore

Calculation result data

Attributes

current[RW]

@return [Float] Actual score for the control = (achieved points / total points) * max score. if total points is zeroed, the return number is 0.00

max[RW]

@return [Integer] Maximum control score (0..10)

percentage[RW]

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

Private Class Methods

mapper() click to toggle source

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

# File lib/2020-01-01/generated/azure_mgmt_security/models/secure_score_control_score.rb, line 32
def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'SecureScoreControlScore',
    type: {
      name: 'Composite',
      class_name: 'SecureScoreControlScore',
      model_properties: {
        max: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'max',
          constraints: {
            InclusiveMaximum: 10,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Number'
          }
        },
        current: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'current',
          constraints: {
            InclusiveMaximum: 10,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Double'
          }
        },
        percentage: {
          client_side_validation: true,
          required: false,
          read_only: true,
          serialized_name: 'percentage',
          constraints: {
            InclusiveMaximum: 1,
            InclusiveMinimum: 0
          },
          type: {
            name: 'Double'
          }
        }
      }
    }
  }
end