Class: OCI::Jms::Models::DeployedApplicationInstallationUsageSummary
- Inherits:
-
Object
- Object
- OCI::Jms::Models::DeployedApplicationInstallationUsageSummary
- Defined in:
- lib/oci/jms/models/deployed_application_installation_usage_summary.rb
Overview
Summarize usage information about an application deployed on Java servers including installation information during a specified time period. The main difference between DeployedApplicationInstallationUsageSummary and DeployedApplicationUsage is the presence of the applicationSourcePath. DeployedApplicationUsage provides only an aggregated view to the deployed applications without installation information. DeployedApplicationUsage does not distinguish between applications with the identical deployment information deployed to different paths. DeployedApplicationInstallationUsageSummary contains installation information used to select target actions.
Instance Attribute Summary collapse
-
#application_installation_key ⇒ String
[Required] The internal identifier of the deployed application installation.
-
#application_key ⇒ String
[Required] The internal identifier of the deployed application.
-
#application_name ⇒ String
[Required] The name of the deployed application.
-
#application_source_path ⇒ String
The full path to source WAR or EAR file for deployed application.
-
#application_type ⇒ String
The type of the deployed application.
-
#approximate_java_server_instance_count ⇒ Integer
The approximate count of Java Server instances running the deployed application installations.
-
#approximate_library_count ⇒ Integer
The approximate count of libraries in the deployed application.
-
#fleet_id ⇒ String
[Required] The OCID of the related fleet.
-
#is_clustered ⇒ BOOLEAN
Whether or not the deployed application is clustered.
-
#time_end ⇒ DateTime
Upper bound of the specified time period filter.
-
#time_first_seen ⇒ DateTime
The date and time the resource was first reported to JMS.
-
#time_last_seen ⇒ DateTime
The date and time the resource was last reported to JMS.
-
#time_start ⇒ DateTime
Lower bound of the specified time period filter.
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 = {}) ⇒ DeployedApplicationInstallationUsageSummary
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 = {}) ⇒ DeployedApplicationInstallationUsageSummary
Initializes the object
143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 143 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.application_installation_key = attributes[:'applicationInstallationKey'] if attributes[:'applicationInstallationKey'] raise 'You cannot provide both :applicationInstallationKey and :application_installation_key' if attributes.key?(:'applicationInstallationKey') && attributes.key?(:'application_installation_key') self.application_installation_key = attributes[:'application_installation_key'] if attributes[:'application_installation_key'] self.application_key = attributes[:'applicationKey'] if attributes[:'applicationKey'] raise 'You cannot provide both :applicationKey and :application_key' if attributes.key?(:'applicationKey') && attributes.key?(:'application_key') self.application_key = attributes[:'application_key'] if attributes[:'application_key'] self.fleet_id = attributes[:'fleetId'] if attributes[:'fleetId'] raise 'You cannot provide both :fleetId and :fleet_id' if attributes.key?(:'fleetId') && attributes.key?(:'fleet_id') self.fleet_id = attributes[:'fleet_id'] if attributes[:'fleet_id'] self.application_name = attributes[:'applicationName'] if attributes[:'applicationName'] raise 'You cannot provide both :applicationName and :application_name' if attributes.key?(:'applicationName') && attributes.key?(:'application_name') self.application_name = attributes[:'application_name'] if attributes[:'application_name'] self.application_type = attributes[:'applicationType'] if attributes[:'applicationType'] raise 'You cannot provide both :applicationType and :application_type' if attributes.key?(:'applicationType') && attributes.key?(:'application_type') self.application_type = attributes[:'application_type'] if attributes[:'application_type'] self.application_source_path = attributes[:'applicationSourcePath'] if attributes[:'applicationSourcePath'] raise 'You cannot provide both :applicationSourcePath and :application_source_path' if attributes.key?(:'applicationSourcePath') && attributes.key?(:'application_source_path') self.application_source_path = attributes[:'application_source_path'] if attributes[:'application_source_path'] self.is_clustered = attributes[:'isClustered'] unless attributes[:'isClustered'].nil? raise 'You cannot provide both :isClustered and :is_clustered' if attributes.key?(:'isClustered') && attributes.key?(:'is_clustered') self.is_clustered = attributes[:'is_clustered'] unless attributes[:'is_clustered'].nil? self.approximate_java_server_instance_count = attributes[:'approximateJavaServerInstanceCount'] if attributes[:'approximateJavaServerInstanceCount'] raise 'You cannot provide both :approximateJavaServerInstanceCount and :approximate_java_server_instance_count' if attributes.key?(:'approximateJavaServerInstanceCount') && attributes.key?(:'approximate_java_server_instance_count') self.approximate_java_server_instance_count = attributes[:'approximate_java_server_instance_count'] if attributes[:'approximate_java_server_instance_count'] self.approximate_library_count = attributes[:'approximateLibraryCount'] if attributes[:'approximateLibraryCount'] raise 'You cannot provide both :approximateLibraryCount and :approximate_library_count' if attributes.key?(:'approximateLibraryCount') && attributes.key?(:'approximate_library_count') self.approximate_library_count = attributes[:'approximate_library_count'] if attributes[:'approximate_library_count'] self.time_start = attributes[:'timeStart'] if attributes[:'timeStart'] raise 'You cannot provide both :timeStart and :time_start' if attributes.key?(:'timeStart') && attributes.key?(:'time_start') self.time_start = attributes[:'time_start'] if attributes[:'time_start'] self.time_end = attributes[:'timeEnd'] if attributes[:'timeEnd'] raise 'You cannot provide both :timeEnd and :time_end' if attributes.key?(:'timeEnd') && attributes.key?(:'time_end') self.time_end = attributes[:'time_end'] if attributes[:'time_end'] self.time_first_seen = attributes[:'timeFirstSeen'] if attributes[:'timeFirstSeen'] raise 'You cannot provide both :timeFirstSeen and :time_first_seen' if attributes.key?(:'timeFirstSeen') && attributes.key?(:'time_first_seen') self.time_first_seen = attributes[:'time_first_seen'] if attributes[:'time_first_seen'] self.time_last_seen = attributes[:'timeLastSeen'] if attributes[:'timeLastSeen'] raise 'You cannot provide both :timeLastSeen and :time_last_seen' if attributes.key?(:'timeLastSeen') && attributes.key?(:'time_last_seen') self.time_last_seen = attributes[:'time_last_seen'] if attributes[:'time_last_seen'] end |
Instance Attribute Details
#application_installation_key ⇒ String
[Required] The internal identifier of the deployed application installation.
15 16 17 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 15 def application_installation_key @application_installation_key end |
#application_key ⇒ String
[Required] The internal identifier of the deployed application. ApplicationKey will be identical for deployed applications with different applicationSourcePaths.
21 22 23 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 21 def application_key @application_key end |
#application_name ⇒ String
[Required] The name of the deployed application.
31 32 33 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 31 def application_name @application_name end |
#application_source_path ⇒ String
The full path to source WAR or EAR file for deployed application.
41 42 43 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 41 def application_source_path @application_source_path end |
#application_type ⇒ String
The type of the deployed application.
36 37 38 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 36 def application_type @application_type end |
#approximate_java_server_instance_count ⇒ Integer
The approximate count of Java Server instances running the deployed application installations.
51 52 53 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 51 def approximate_java_server_instance_count @approximate_java_server_instance_count end |
#approximate_library_count ⇒ Integer
The approximate count of libraries in the deployed application.
56 57 58 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 56 def approximate_library_count @approximate_library_count end |
#fleet_id ⇒ String
[Required] The OCID of the related fleet.
26 27 28 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 26 def fleet_id @fleet_id end |
#is_clustered ⇒ BOOLEAN
Whether or not the deployed application is clustered.
46 47 48 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 46 def is_clustered @is_clustered end |
#time_end ⇒ DateTime
Upper bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
64 65 66 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 64 def time_end @time_end end |
#time_first_seen ⇒ DateTime
The date and time the resource was first reported to JMS. This is potentially before the specified time period provided by the filters. For example, a resource can be first reported to JMS before the start of a specified time period, if it is also reported during the time period.
72 73 74 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 72 def time_first_seen @time_first_seen end |
#time_last_seen ⇒ DateTime
The date and time the resource was last reported to JMS. This is potentially after the specified time period provided by the filters. For example, a resource can be last reported to JMS before the start of a specified time period, if it is also reported during the time period.
80 81 82 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 80 def time_last_seen @time_last_seen end |
#time_start ⇒ DateTime
Lower bound of the specified time period filter. JMS provides a view of the data that is per day. The query uses only the date element of the parameter.
60 61 62 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 60 def time_start @time_start end |
Class Method Details
.attribute_map ⇒ Object
Attribute mapping from ruby-style variable name to JSON key.
83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 83 def self.attribute_map { # rubocop:disable Style/SymbolLiteral 'application_installation_key': :'applicationInstallationKey', 'application_key': :'applicationKey', 'fleet_id': :'fleetId', 'application_name': :'applicationName', 'application_type': :'applicationType', 'application_source_path': :'applicationSourcePath', 'is_clustered': :'isClustered', 'approximate_java_server_instance_count': :'approximateJavaServerInstanceCount', 'approximate_library_count': :'approximateLibraryCount', 'time_start': :'timeStart', 'time_end': :'timeEnd', 'time_first_seen': :'timeFirstSeen', 'time_last_seen': :'timeLastSeen' # rubocop:enable Style/SymbolLiteral } end |
.swagger_types ⇒ Object
Attribute type mapping.
104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 104 def self.swagger_types { # rubocop:disable Style/SymbolLiteral 'application_installation_key': :'String', 'application_key': :'String', 'fleet_id': :'String', 'application_name': :'String', 'application_type': :'String', 'application_source_path': :'String', 'is_clustered': :'BOOLEAN', 'approximate_java_server_instance_count': :'Integer', 'approximate_library_count': :'Integer', 'time_start': :'DateTime', 'time_end': :'DateTime', 'time_first_seen': :'DateTime', 'time_last_seen': :'DateTime' # rubocop:enable Style/SymbolLiteral } end |
Instance Method Details
#==(other) ⇒ Object
Checks equality by comparing each attribute.
235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 235 def ==(other) return true if equal?(other) self.class == other.class && application_installation_key == other.application_installation_key && application_key == other.application_key && fleet_id == other.fleet_id && application_name == other.application_name && application_type == other.application_type && application_source_path == other.application_source_path && is_clustered == other.is_clustered && approximate_java_server_instance_count == other.approximate_java_server_instance_count && approximate_library_count == other.approximate_library_count && time_start == other.time_start && time_end == other.time_end && time_first_seen == other.time_first_seen && time_last_seen == other.time_last_seen end |
#build_from_hash(attributes) ⇒ Object
Builds the object from hash
277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 277 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
257 258 259 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 257 def eql?(other) self == other end |
#hash ⇒ Fixnum
Calculates hash code according to all attributes.
266 267 268 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 266 def hash [application_installation_key, application_key, fleet_id, application_name, application_type, application_source_path, is_clustered, approximate_java_server_instance_count, approximate_library_count, time_start, time_end, time_first_seen, time_last_seen].hash end |
#to_hash ⇒ Hash
Returns the object in the form of hash
310 311 312 313 314 315 316 317 318 319 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 310 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
304 305 306 |
# File 'lib/oci/jms/models/deployed_application_installation_usage_summary.rb', line 304 def to_s to_hash.to_s end |