Reference documentation and code samples for the Stackdriver Monitoring V3 Client class TcpCheck.
Information required for a TCP Uptime check request.
Generated from protobuf messagegoogle.monitoring.v3.UptimeCheckConfig.TcpCheck
Namespace
Google \ Cloud \ Monitoring \ V3 \ UptimeCheckConfig
Methods
__construct
Constructor.
Parameters
Name
Description
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 themonitored_resource) to construct the full URL. Required.
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 themonitored_resource) to
construct the full URL. Required.
Returns
Type
Description
int
setPort
The TCP port on the server against which to run the check. Will be
combined with host (specified within themonitored_resource) to
construct the full URL. Required.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getPingConfig
Contains information needed to add pings to a TCP check.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Monitoring V3 Client - Class TcpCheck (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.UptimeCheckConfig.TcpCheck)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.UptimeCheckConfig.TcpCheck)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.UptimeCheckConfig.TcpCheck)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.UptimeCheckConfig.TcpCheck)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.UptimeCheckConfig.TcpCheck)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.UptimeCheckConfig.TcpCheck)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.UptimeCheckConfig.TcpCheck)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.UptimeCheckConfig.TcpCheck)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.UptimeCheckConfig.TcpCheck)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.UptimeCheckConfig.TcpCheck)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.UptimeCheckConfig.TcpCheck)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.UptimeCheckConfig.TcpCheck)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.UptimeCheckConfig.TcpCheck)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.UptimeCheckConfig.TcpCheck) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class TcpCheck.\n\nInformation required for a TCP Uptime check request.\n\nGenerated from protobuf message `google.monitoring.v3.UptimeCheckConfig.TcpCheck`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3 \\\\ UptimeCheckConfig\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getPort\n\nThe TCP port on the server against which to run the check. Will be\ncombined with host (specified within the `monitored_resource`) to\nconstruct the full URL. Required.\n\n### setPort\n\nThe TCP port on the server against which to run the check. Will be\ncombined with host (specified within the `monitored_resource`) to\nconstruct the full URL. Required.\n\n### getPingConfig\n\nContains information needed to add pings to a TCP check.\n\n### hasPingConfig\n\n### clearPingConfig\n\n### setPingConfig\n\nContains information needed to add pings to a TCP check."]]