---
name: "mongoc_uri_get_server_monitoring_mode"
section: "3"
platform: "linux"
package: "libmongoc-doc"
version: "1.30.4-1+deb13u3"
release: "Debian 13 (Trixie)"
platforms: ["linux"]
url: "https://new.carta.tech/mongoc_uri_get_server_monitoring_mode"
---

# mongoc\_uri\_get\_server\_monitoring\_mode(3)

## SYNOPSIS

```
const char *
mongoc_uri_get_server_monitoring_mode (const mongoc_uri_t *uri);
```

## PARAMETERS

- •

  **uri**: A *mongoc\_uri\_t*.

## DESCRIPTION

Fetches the **serverMonitoringMode** parameter to an URI if provided.

## RETURNS

A string which should not be modified or freed. Returns "auto" if the **serverMonitoringMode** parameter was not provided to **uri**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
