---
name: "mongoc_apm_server_changed_get_host"
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_apm_server_changed_get_host"
---

# mongoc\_apm\_server\_changed\_get\_host(3)

## SYNOPSIS

```
const mongoc_host_list_t *
mongoc_apm_server_changed_get_host (const mongoc_apm_server_changed_t *event);
```

Returns this event's host. This *mongoc\_host\_list\_t* is *not* part of a linked list, it is solely the server for this event. The data is only valid in the scope of the callback that receives this event; copy it if it will be accessed after the callback returns.

## PARAMETERS

- •

  **event**: A *mongoc\_apm\_server\_changed\_t*.

## RETURNS

A *mongoc\_host\_list\_t* that should not be modified or freed.

**SEE ALSO:**

```
Introduction to Application Performance Monitoring
```

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
