Stackdriver Monitoring V3 Client - Class TcpCheck (1.7.1)

Reference documentation and code samples for the Stackdriver Monitoring V3 Client class TcpCheck.

Information required for a TCP Uptime check request.

Generated from protobuf message google.monitoring.v3.UptimeCheckConfig.TcpCheck

Namespace

Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ port int

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.

↳ ping_config Google\Cloud\Monitoring\V3\UptimeCheckConfig\PingConfig

Contains information needed to add pings to a TCP check.

getPort

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.

Returns
TypeDescription
int

setPort

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getPingConfig

Contains information needed to add pings to a TCP check.

Returns
TypeDescription
Google\Cloud\Monitoring\V3\UptimeCheckConfig\PingConfig|null

hasPingConfig

clearPingConfig

setPingConfig

Contains information needed to add pings to a TCP check.

Parameter
NameDescription
var Google\Cloud\Monitoring\V3\UptimeCheckConfig\PingConfig
Returns
TypeDescription
$this