PMSEARCHINFO(3)

πŸ’– NAME πŸ’–

pmSearchInfo β€” the diagnostic metrics plug for PCP's search services, bestie πŸ”βœ¨


🌸 C SYNOPSIS 🌸

#include <pcp/pmwebapi.h>

int pmSearchInfo(pmSearchSettings *settings, sds key, void *arg);

cc ... -lpcp_web

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so this one is literally just the gossip channel for the Performance Co-Pilot (PCP) full-text search index β€” it hands you the diagnostic info about what's going on in there. 🫢

the way that you get those diagnostic metrics is by passing in key with a value of text. yes queen, that exact string. πŸ‘‘

and then the results β€” think stuff like the document count, the receipts basically πŸ“Š β€” get passed straight to the on_metrics callback that was provided by settings. so make sure settings is cute and set up, because that's where the tea gets delivered. β˜•πŸ’…


😭 DIAGNOSTICS 😭

bestie listen: on success this function always returns zero. zero. every time. slay. ✨

but on failure? it hits you with a negative PMAPI error code. so if you see a negative number, that's the vibe check failing, and you should go read up on PMAPI errors. πŸ’€


πŸ‘‘ SEE ALSO πŸ‘‘


Performance Co-Pilot πŸŽ€ PCP πŸŽ€ PMSEARCHINFO(3)

that's the whole page babes, mwah πŸ’– go read those other man pages, iykyk 🧚🌈⭐

πŸ“¦ where this page comes from