---
name: "mongoc_apm_command_failed_get_service_id"
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_command_failed_get_service_id"
---

# mongoc\_apm\_command\_failed\_get\_service\_id(3)

## SYNOPSIS

```
const bson_oid_t *
mongoc_apm_command_failed_get_service_id (
   const mongoc_apm_command_failed_t *event);
```

Returns this event's service ID, which identifies the MongoDB service behind a load balancer, or **NULL** if not connected to a load balanced cluster.

## PARAMETERS

- •

  **event**: A *mongoc\_apm\_command\_failed\_t*.

## RETURNS

A *bson\_oid\_t* that should not be modified or freed or **NULL**.

## AUTHOR

MongoDB, Inc

## COPYRIGHT

2009-present, MongoDB, Inc.
