Class: Google::Apis::MonitoringV3::TcpCheck
- Inherits:
-
Object
- Object
- Google::Apis::MonitoringV3::TcpCheck
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/monitoring_v3/classes.rb,
lib/google/apis/monitoring_v3/representations.rb,
lib/google/apis/monitoring_v3/representations.rb
Overview
Information required for a TCP Uptime check request.
Instance Attribute Summary collapse
-
#ping_config ⇒ Google::Apis::MonitoringV3::PingConfig
Information involved in sending ICMP pings alongside public HTTP/TCP checks.
-
#port ⇒ Fixnum
The TCP port on the server against which to run the check.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TcpCheck
constructor
A new instance of TcpCheck.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TcpCheck
Returns a new instance of TcpCheck.
4591 4592 4593 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4591 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ping_config ⇒ Google::Apis::MonitoringV3::PingConfig
Information involved in sending ICMP pings alongside public HTTP/TCP checks.
For HTTP, the pings are performed for each part of the redirect chain.
Corresponds to the JSON property pingConfig
4582 4583 4584 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4582 def ping_config @ping_config end |
#port ⇒ Fixnum
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
4589 4590 4591 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4589 def port @port end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4596 4597 4598 4599 |
# File 'lib/google/apis/monitoring_v3/classes.rb', line 4596 def update!(**args) @ping_config = args[:ping_config] if args.key?(:ping_config) @port = args[:port] if args.key?(:port) end |