Class: Azure::DataMigration::Mgmt::V2018_07_15_preview::Models::MongoDbThrottlingSettings

Inherits:
Object
  • Object
show all
Includes:
MsRestAzure
Defined in:
lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb

Overview

Specifies resource limits for the migration

Instance Attribute Summary collapse

Class Method Summary collapse

Instance Attribute Details

#max_parallelismInteger

copies) that will be processed in parallel

Returns:

  • (Integer)

    The maximum number of work items (e.g. collection



25
26
27
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb', line 25

def max_parallelism
  @max_parallelism
end

#min_free_cpuInteger

to avoid using, from 0 to 100

Returns:

  • (Integer)

    The percentage of CPU time that the migrator will try



17
18
19
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb', line 17

def min_free_cpu
  @min_free_cpu
end

#min_free_memory_mbInteger

try to avoid using

Returns:

  • (Integer)

    The number of megabytes of RAM that the migrator will



21
22
23
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb', line 21

def min_free_memory_mb
  @min_free_memory_mb
end

Class Method Details

.mapperObject

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



32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
# File 'lib/2018-07-15-preview/generated/azure_mgmt_data_migration/models/mongo_db_throttling_settings.rb', line 32

def self.mapper()
  {
    client_side_validation: true,
    required: false,
    serialized_name: 'MongoDbThrottlingSettings',
    type: {
      name: 'Composite',
      class_name: 'MongoDbThrottlingSettings',
      model_properties: {
        min_free_cpu: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minFreeCpu',
          type: {
            name: 'Number'
          }
        },
        min_free_memory_mb: {
          client_side_validation: true,
          required: false,
          serialized_name: 'minFreeMemoryMb',
          type: {
            name: 'Number'
          }
        },
        max_parallelism: {
          client_side_validation: true,
          required: false,
          serialized_name: 'maxParallelism',
          type: {
            name: 'Number'
          }
        }
      }
    }
  }
end