Class: Google::Apis::AppengineV1::Instance

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/appengine_v1/classes.rb,
lib/google/apis/appengine_v1/representations.rb,
lib/google/apis/appengine_v1/representations.rb

Overview

An Instance resource is the computing unit that App Engine uses to automatically scale an application.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance.



1305
1306
1307
# File 'lib/google/apis/appengine_v1/classes.rb', line 1305

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#app_engine_releaseString

Output only. App Engine release this instance is running on. Corresponds to the JSON property appEngineRelease

Returns:

  • (String)


1213
1214
1215
# File 'lib/google/apis/appengine_v1/classes.rb', line 1213

def app_engine_release
  @app_engine_release
end

#availabilityString

Output only. Availability of the instance. Corresponds to the JSON property availability

Returns:

  • (String)


1218
1219
1220
# File 'lib/google/apis/appengine_v1/classes.rb', line 1218

def availability
  @availability
end

#average_latencyFixnum

Output only. Average latency (ms) over the last minute. Corresponds to the JSON property averageLatency

Returns:

  • (Fixnum)


1223
1224
1225
# File 'lib/google/apis/appengine_v1/classes.rb', line 1223

def average_latency
  @average_latency
end

#errorsFixnum

Output only. Number of errors since this instance was started. Corresponds to the JSON property errors

Returns:

  • (Fixnum)


1228
1229
1230
# File 'lib/google/apis/appengine_v1/classes.rb', line 1228

def errors
  @errors
end

#idString

Output only. Relative name of the instance within the version. Example: instance-1. Corresponds to the JSON property id

Returns:

  • (String)


1234
1235
1236
# File 'lib/google/apis/appengine_v1/classes.rb', line 1234

def id
  @id
end

#memory_usageFixnum

Output only. Total memory in use (bytes). Corresponds to the JSON property memoryUsage

Returns:

  • (Fixnum)


1239
1240
1241
# File 'lib/google/apis/appengine_v1/classes.rb', line 1239

def memory_usage
  @memory_usage
end

#nameString

Output only. Full path to the Instance resource in the API. Example: apps/ myapp/services/default/versions/v1/instances/instance-1. Corresponds to the JSON property name

Returns:

  • (String)


1245
1246
1247
# File 'lib/google/apis/appengine_v1/classes.rb', line 1245

def name
  @name
end

#qpsFloat

Output only. Average queries per second (QPS) over the last minute. Corresponds to the JSON property qps

Returns:

  • (Float)


1250
1251
1252
# File 'lib/google/apis/appengine_v1/classes.rb', line 1250

def qps
  @qps
end

#requestsFixnum

Output only. Number of requests since this instance was started. Corresponds to the JSON property requests

Returns:

  • (Fixnum)


1255
1256
1257
# File 'lib/google/apis/appengine_v1/classes.rb', line 1255

def requests
  @requests
end

#start_timeString

Output only. Time that this instance was started.@OutputOnly Corresponds to the JSON property startTime

Returns:

  • (String)


1260
1261
1262
# File 'lib/google/apis/appengine_v1/classes.rb', line 1260

def start_time
  @start_time
end

#vm_debug_enabledBoolean Also known as: vm_debug_enabled?

Output only. Whether this instance is in debug mode. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmDebugEnabled

Returns:

  • (Boolean)


1266
1267
1268
# File 'lib/google/apis/appengine_v1/classes.rb', line 1266

def vm_debug_enabled
  @vm_debug_enabled
end

#vm_idString

Output only. Virtual machine ID of this instance. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmId

Returns:

  • (String)


1273
1274
1275
# File 'lib/google/apis/appengine_v1/classes.rb', line 1273

def vm_id
  @vm_id
end

#vm_ipString

Output only. The IP address of this instance. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmIp

Returns:

  • (String)


1279
1280
1281
# File 'lib/google/apis/appengine_v1/classes.rb', line 1279

def vm_ip
  @vm_ip
end

#vm_livenessString

Output only. The liveness health check of this instance. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmLiveness

Returns:

  • (String)


1285
1286
1287
# File 'lib/google/apis/appengine_v1/classes.rb', line 1285

def vm_liveness
  @vm_liveness
end

#vm_nameString

Output only. Name of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmName

Returns:

  • (String)


1291
1292
1293
# File 'lib/google/apis/appengine_v1/classes.rb', line 1291

def vm_name
  @vm_name
end

#vm_statusString

Output only. Status of the virtual machine where this instance lives. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmStatus

Returns:

  • (String)


1297
1298
1299
# File 'lib/google/apis/appengine_v1/classes.rb', line 1297

def vm_status
  @vm_status
end

#vm_zone_nameString

Output only. Zone where the virtual machine is located. Only applicable for instances in App Engine flexible environment. Corresponds to the JSON property vmZoneName

Returns:

  • (String)


1303
1304
1305
# File 'lib/google/apis/appengine_v1/classes.rb', line 1303

def vm_zone_name
  @vm_zone_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
# File 'lib/google/apis/appengine_v1/classes.rb', line 1310

def update!(**args)
  @app_engine_release = args[:app_engine_release] if args.key?(:app_engine_release)
  @availability = args[:availability] if args.key?(:availability)
  @average_latency = args[:average_latency] if args.key?(:average_latency)
  @errors = args[:errors] if args.key?(:errors)
  @id = args[:id] if args.key?(:id)
  @memory_usage = args[:memory_usage] if args.key?(:memory_usage)
  @name = args[:name] if args.key?(:name)
  @qps = args[:qps] if args.key?(:qps)
  @requests = args[:requests] if args.key?(:requests)
  @start_time = args[:start_time] if args.key?(:start_time)
  @vm_debug_enabled = args[:vm_debug_enabled] if args.key?(:vm_debug_enabled)
  @vm_id = args[:vm_id] if args.key?(:vm_id)
  @vm_ip = args[:vm_ip] if args.key?(:vm_ip)
  @vm_liveness = args[:vm_liveness] if args.key?(:vm_liveness)
  @vm_name = args[:vm_name] if args.key?(:vm_name)
  @vm_status = args[:vm_status] if args.key?(:vm_status)
  @vm_zone_name = args[:vm_zone_name] if args.key?(:vm_zone_name)
end