MONGOC_APM_SER...EEDED_GET_HOST(3)
π MONGOC_APM_SER...EEDED_GET_HOST(3) π
okay bestie, this is a libmongoc manual page, and yes the title is giving mysterious truncated energy π but the actual function is right below in the synopsis. it's an APM helper for a server heartbeat succeeded event, and it's lowkey iconic in a very specific way.
β¨ SYNOPSIS β¨
const mongoc_host_list_t *
mongoc_apm_server_heartbeat_succeeded_get_host (
const mongoc_apm_server_heartbeat_succeeded_t *event);
So this function returns this event's host. The mongoc_host_list_t it hands you is not part of a linked list β it is solely the server for this event. no cap. π«Ά
β οΈ scope check: the data is only valid in the scope of the callback that receives this event. if it will be accessed after the callback returns, copy it. literally copy it, bestie π
πΈ PARAMETERS πΈ
eventβ amongoc_apm_server_heartbeat_succeeded_t. that's the event, and that's the whole parameter list. slay. π
π RETURNS π
A mongoc_host_list_t that should not be modified or freed. like, admire it, use it in callback scope, but do not modify it and do not free it. periodt. π«Ά
π¦ SEE ALSO π¦
- Introduction to Application Performance Monitoring β that's the reference from the original, iykyk. π₯
π AUTHOR π
MongoDB, Inc
β COPYRIGHT β
2009-present, MongoDB, Inc.
xoxo, this was version 2.5.6, dated Oct 09, 202 β libmongoc bestie signing off πβ¨π
π¦ where this page comes from
- epel 10: mongo-c-driver-devel 2.5.6-1.el10_3 Β· Apache-2.0 AND ISC AND MIT AND Zlib
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms