Class: OCI::DatabaseManagement::Models::ExadataInfrastructureUsageMetrics
- Inherits:
-
Object
- Object
- OCI::DatabaseManagement::Models::ExadataInfrastructureUsageMetrics
- Defined in:
- lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb
Overview
The list of aggregated metrics for Exadata infrastructures in the fleet.
Constant Summary collapse
- DEPLOYMENT_TYPE_ENUM =
[ DEPLOYMENT_TYPE_ONPREMISE = 'ONPREMISE'.freeze, DEPLOYMENT_TYPE_EXADATA = 'EXADATA'.freeze, DEPLOYMENT_TYPE_EXADATA_CC = 'EXADATA_CC'.freeze, DEPLOYMENT_TYPE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
- RACK_SIZE_ENUM =
[ RACK_SIZE_FULL = 'FULL'.freeze, RACK_SIZE_HALF = 'HALF'.freeze, RACK_SIZE_QUARTER = 'QUARTER'.freeze, RACK_SIZE_EIGHTH = 'EIGHTH'.freeze, RACK_SIZE_OTHER = 'OTHER'.freeze, RACK_SIZE_UNKNOWN_ENUM_VALUE = 'UNKNOWN_ENUM_VALUE'.freeze ].freeze
Instance Attribute Summary collapse
-
#compartment_id ⇒ String
The OCID of the compartment where the Exadata infrastructure resides.
-
#deployment_type ⇒ String
The Exadata infrastructure deployment type.
-
#infrastructure_id ⇒ String
The OCID of the Exadata infrastructure.
-
#infrastructure_name ⇒ String
The display name of the Exadata infrastructure.
-
#metrics ⇒ Array<OCI::DatabaseManagement::Models::ExadataFleetMetricDefinition>
A list of the health metrics like CPU, Storage, and Memory.
-
#number_of_db_systems ⇒ Integer
The number of Database Systems created on the Exadata infrastructure.
-
#rack_size ⇒ String
The size of the Exadata infrastructure.
-
#state ⇒ String
The lifecycle state of the Exadata infrastructure.
-
#storage_server_count ⇒ Integer
The number of storage server for the Exadata infrastructure.
Class Method Summary collapse
-
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
-
.swagger_types ⇒ Object
Attribute type mapping.
Instance Method Summary collapse
-
#==(other) ⇒ Object
Checks equality by comparing each attribute.
-
#build_from_hash(attributes) ⇒ Object
Builds the object from hash.
- #eql?(other) ⇒ Boolean
-
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
-
#initialize(attributes = {}) ⇒ ExadataInfrastructureUsageMetrics
constructor
Initializes the object.
-
#to_hash ⇒ Hash
Returns the object in the form of hash.
-
#to_s ⇒ String
Returns the string representation of the object.
Constructor Details
#initialize(attributes = {}) ⇒ ExadataInfrastructureUsageMetrics
Initializes the object
113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 113 def initialize(attributes = {}) return unless attributes.is_a?(Hash) # convert string to symbol for hash key attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v } self.infrastructure_id = attributes[:'infrastructureId'] if attributes[:'infrastructureId'] raise 'You cannot provide both :infrastructureId and :infrastructure_id' if attributes.key?(:'infrastructureId') && attributes.key?(:'infrastructure_id') self.infrastructure_id = attributes[:'infrastructure_id'] if attributes[:'infrastructure_id'] self.compartment_id = attributes[:'compartmentId'] if attributes[:'compartmentId'] raise 'You cannot provide both :compartmentId and :compartment_id' if attributes.key?(:'compartmentId') && attributes.key?(:'compartment_id') self.compartment_id = attributes[:'compartment_id'] if attributes[:'compartment_id'] self.deployment_type = attributes[:'deploymentType'] if attributes[:'deploymentType'] raise 'You cannot provide both :deploymentType and :deployment_type' if attributes.key?(:'deploymentType') && attributes.key?(:'deployment_type') self.deployment_type = attributes[:'deployment_type'] if attributes[:'deployment_type'] self.infrastructure_name = attributes[:'infrastructureName'] if attributes[:'infrastructureName'] raise 'You cannot provide both :infrastructureName and :infrastructure_name' if attributes.key?(:'infrastructureName') && attributes.key?(:'infrastructure_name') self.infrastructure_name = attributes[:'infrastructure_name'] if attributes[:'infrastructure_name'] self.state = attributes[:'state'] if attributes[:'state'] self.number_of_db_systems = attributes[:'numberOfDbSystems'] if attributes[:'numberOfDbSystems'] raise 'You cannot provide both :numberOfDbSystems and :number_of_db_systems' if attributes.key?(:'numberOfDbSystems') && attributes.key?(:'number_of_db_systems') self.number_of_db_systems = attributes[:'number_of_db_systems'] if attributes[:'number_of_db_systems'] self.rack_size = attributes[:'rackSize'] if attributes[:'rackSize'] raise 'You cannot provide both :rackSize and :rack_size' if attributes.key?(:'rackSize') && attributes.key?(:'rack_size') self.rack_size = attributes[:'rack_size'] if attributes[:'rack_size'] self.storage_server_count = attributes[:'storageServerCount'] if attributes[:'storageServerCount'] raise 'You cannot provide both :storageServerCount and :storage_server_count' if attributes.key?(:'storageServerCount') && attributes.key?(:'storage_server_count') self.storage_server_count = attributes[:'storage_server_count'] if attributes[:'storage_server_count'] self.metrics = attributes[:'metrics'] if attributes[:'metrics'] end |
Instance Attribute Details
#compartment_id ⇒ String
The OCID of the compartment where the Exadata infrastructure resides.
34 35 36 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 34 def compartment_id @compartment_id end |
#deployment_type ⇒ String
The Exadata infrastructure deployment type.
38 39 40 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 38 def deployment_type @deployment_type end |
#infrastructure_id ⇒ String
The OCID of the Exadata infrastructure.
30 31 32 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 30 def infrastructure_id @infrastructure_id end |
#infrastructure_name ⇒ String
The display name of the Exadata infrastructure.
42 43 44 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 42 def infrastructure_name @infrastructure_name end |
#metrics ⇒ Array<OCI::DatabaseManagement::Models::ExadataFleetMetricDefinition>
A list of the health metrics like CPU, Storage, and Memory.
62 63 64 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 62 def metrics @metrics end |
#number_of_db_systems ⇒ Integer
The number of Database Systems created on the Exadata infrastructure.
50 51 52 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 50 def number_of_db_systems @number_of_db_systems end |
#rack_size ⇒ String
The size of the Exadata infrastructure.
54 55 56 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 54 def rack_size @rack_size end |
#state ⇒ String
The lifecycle state of the Exadata infrastructure.
46 47 48 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 46 def state @state end |
#storage_server_count ⇒ Integer
The number of storage server for the Exadata infrastructure.
58 59 60 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 58 def storage_server_count @storage_server_count end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 65 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'infrastructure_id': :'infrastructureId', 'compartment_id': :'compartmentId', 'deployment_type': :'deploymentType', 'infrastructure_name': :'infrastructureName', 'state': :'state', 'number_of_db_systems': :'numberOfDbSystems', 'rack_size': :'rackSize', 'storage_server_count': :'storageServerCount', 'metrics': :'metrics' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 82 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'infrastructure_id': :'String', 'compartment_id': :'String', 'deployment_type': :'String', 'infrastructure_name': :'String', 'state': :'String', 'number_of_db_systems': :'Integer', 'rack_size': :'String', 'storage_server_count': :'Integer', 'metrics': :'Array<OCI::DatabaseManagement::Models::ExadataFleetMetricDefinition>' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
199 200 201 202 203 204 205 206 207 208 209 210 211 212 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 199 def ==(other) return true if equal?(other) self.class == other.class && infrastructure_id == other.infrastructure_id && compartment_id == other.compartment_id && deployment_type == other.deployment_type && infrastructure_name == other.infrastructure_name && state == other.state && number_of_db_systems == other.number_of_db_systems && rack_size == other.rack_size && storage_server_count == other.storage_server_count && metrics == other.metrics end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 237 def build_from_hash(attributes) return nil unless attributes.is_a?(Hash) self.class.swagger_types.each_pair do |key, type| if type =~ /^Array<(.*)>/i # check to ensure the input is an array given that the the attribute # is documented as an array but the input is not if attributes[self.class.attribute_map[key]].is_a?(Array) public_method("#{key}=").call( attributes[self.class.attribute_map[key]] .map { |v| OCI::Internal::Util.convert_to_type(Regexp.last_match(1), v) } ) end elsif !attributes[self.class.attribute_map[key]].nil? public_method("#{key}=").call( OCI::Internal::Util.convert_to_type(type, attributes[self.class.attribute_map[key]]) ) end # or else data not found in attributes(hash), not an issue as the data can be optional end self end |
#eql?(other) ⇒ Boolean
217 218 219 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 217 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
226 227 228 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 226 def hash [infrastructure_id, compartment_id, deployment_type, infrastructure_name, state, number_of_db_systems, rack_size, storage_server_count, metrics].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
270 271 272 273 274 275 276 277 278 279 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 270 def to_hash hash = {} self.class.attribute_map.each_pair do |attr, param| value = public_method(attr).call next if value.nil? && !instance_variable_defined?("@#{attr}") hash[param] = _to_hash(value) end hash end |
#to_s ⇒ String
Returns the string representation of the object
264 265 266 |
# File 'lib/oci/database_management/models/exadata_infrastructure_usage_metrics.rb', line 264 def to_s to_hash.to_s end |