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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/appengine_v1/classes.rb,
generated/google/apis/appengine_v1/representations.rb,
generated/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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ Instance

Returns a new instance of Instance



524
525
526
# File 'generated/google/apis/appengine_v1/classes.rb', line 524

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

Instance Attribute Details

#app_engine_releaseString

App Engine release this instance is running on.@OutputOnly Corresponds to the JSON property appEngineRelease

Returns:

  • (String)


522
523
524
# File 'generated/google/apis/appengine_v1/classes.rb', line 522

def app_engine_release
  @app_engine_release
end

#availabilityString

Availability of the instance.@OutputOnly Corresponds to the JSON property availability

Returns:

  • (String)


494
495
496
# File 'generated/google/apis/appengine_v1/classes.rb', line 494

def availability
  @availability
end

#average_latencyFixnum

Average latency (ms) over the last minute.@OutputOnly Corresponds to the JSON property averageLatency

Returns:

  • (Fixnum)


467
468
469
# File 'generated/google/apis/appengine_v1/classes.rb', line 467

def average_latency
  @average_latency
end

#errorsFixnum

Number of errors since this instance was started.@OutputOnly Corresponds to the JSON property errors

Returns:

  • (Fixnum)


489
490
491
# File 'generated/google/apis/appengine_v1/classes.rb', line 489

def errors
  @errors
end

#idString

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

Returns:

  • (String)


473
474
475
# File 'generated/google/apis/appengine_v1/classes.rb', line 473

def id
  @id
end

#memory_usageFixnum

Total memory in use (bytes).@OutputOnly Corresponds to the JSON property memoryUsage

Returns:

  • (Fixnum)


484
485
486
# File 'generated/google/apis/appengine_v1/classes.rb', line 484

def memory_usage
  @memory_usage
end

#nameString

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

Returns:

  • (String)


456
457
458
# File 'generated/google/apis/appengine_v1/classes.rb', line 456

def name
  @name
end

#qpsFloat

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

Returns:

  • (Float)


450
451
452
# File 'generated/google/apis/appengine_v1/classes.rb', line 450

def qps
  @qps
end

#requestsFixnum

Number of requests since this instance was started.@OutputOnly Corresponds to the JSON property requests

Returns:

  • (Fixnum)


517
518
519
# File 'generated/google/apis/appengine_v1/classes.rb', line 517

def requests
  @requests
end

#start_timeString

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

Returns:

  • (String)


505
506
507
# File 'generated/google/apis/appengine_v1/classes.rb', line 505

def start_time
  @start_time
end

#vm_debug_enabledBoolean Also known as: vm_debug_enabled?

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

Returns:

  • (Boolean)


511
512
513
# File 'generated/google/apis/appengine_v1/classes.rb', line 511

def vm_debug_enabled
  @vm_debug_enabled
end

#vm_idString

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

Returns:

  • (String)


445
446
447
# File 'generated/google/apis/appengine_v1/classes.rb', line 445

def vm_id
  @vm_id
end

#vm_ipString

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

Returns:

  • (String)


479
480
481
# File 'generated/google/apis/appengine_v1/classes.rb', line 479

def vm_ip
  @vm_ip
end

#vm_nameString

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

Returns:

  • (String)


439
440
441
# File 'generated/google/apis/appengine_v1/classes.rb', line 439

def vm_name
  @vm_name
end

#vm_statusString

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

Returns:

  • (String)


500
501
502
# File 'generated/google/apis/appengine_v1/classes.rb', line 500

def vm_status
  @vm_status
end

#vm_zone_nameString

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

Returns:

  • (String)


462
463
464
# File 'generated/google/apis/appengine_v1/classes.rb', line 462

def vm_zone_name
  @vm_zone_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
# File 'generated/google/apis/appengine_v1/classes.rb', line 529

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