Class: Google::Apis::MonitoringV3::TcpCheck

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

Overview

Information required for a TCP Uptime check request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ TcpCheck

Returns a new instance of TcpCheck.



3505
3506
3507
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3505

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

Instance Attribute Details

#portFixnum

The TCP port on the server against which to run the check. Will be combined with host (specified within the monitored_resource) to construct the full URL. Required. Corresponds to the JSON property port

Returns:

  • (Fixnum)


3503
3504
3505
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3503

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3510
3511
3512
# File 'generated/google/apis/monitoring_v3/classes.rb', line 3510

def update!(**args)
  @port = args[:port] if args.key?(:port)
end