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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ TcpCheck

Returns a new instance of TcpCheck



2546
2547
2548
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2546

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

Instance Attribute Details

#portFixnum

The port to the page to run the check against. Will be combined with host ( specified within the MonitoredResource) to construct the full URL. Required. Corresponds to the JSON property port

Returns:

  • (Fixnum)


2544
2545
2546
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2544

def port
  @port
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2551
2552
2553
# File 'generated/google/apis/monitoring_v3/classes.rb', line 2551

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