# Stackdriver Monitoring V3 Client - Class PingConfig (2.2.2)

2.2.2 (latest) 2.2.1 2.1.2 2.0.1 1.12.1 1.11.1 1.10.3 1.9.0 1.8.0 1.7.1 1.6.0 1.5.1 1.4.0 1.3.2 1.2.2 Reference documentation and code samples for the Stackdriver Monitoring V3 Client class 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.

Generated from protobuf message `google.monitoring.v3.UptimeCheckConfig.PingConfig`

## Namespace

Google \\ Cloud \\ Monitoring \\ V3 \\ UptimeCheckConfig

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ pings_count` | `int` Number of ICMP pings. A maximum of 3 ICMP pings is currently supported. |

### getPingsCount

Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setPingsCount

Number of ICMP pings. A maximum of 3 ICMP pings is currently supported.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |