PMSEARCHTEXTINDOM(3)
π PMSEARCHTEXTINDOM(3) π
okay so bestie, this one lives in the Library Functions Manual section 3, and it's called pmSearchTextInDom β yes the name is a mouthful, we love her anyway π«Ά
β¨ NAME β¨
pmSearchTextInDom β search for all entities related to given instance domain ππ
πΈ C SYNOPSIS πΈ
#include <pcp/pmwebapi.h>
int pmSearchTextInDom(pmSearchSettings *settings,
pmSearchTextRequest *request, void *arg);
cc ... -lpcp_web
like, that's the whole vibe. link against -lpcp_web and you're set π
π¦ DESCRIPTION π¦
So what does she actually DO? She runs a search for all the metrics, instances and instance domains that are related to a given instance domain β the one you specify in request. That's it. That's the whole main character moment β¨
Here's what you're feeding her through request:
queryβ the target instance domain. literally the thing you're searching around π―countβ caps how many results you get back. defaults to10, so don't come crying if you only see ten, okay? πoffsetβ the search offset. defaults to0, so you start at the very beginning (a very good place to start) π
ngl the results come back ordered by type, in ascending order. no cap. π
Every single entity that matches your request gets handed off to the on_text_result callback that you provided via settings. so likeβ¦ make sure that callback exists, bestie π
π DIAGNOSTICS π
This function always returns zero on success. periodt. β¨
On failure? You get a negative PMAPI error code back. so if the number is negative, something's giving "not slay" and you should probably look into it π
π SEE ALSO π
go read these too, they're iconic:
mwah π this page came to you from Performance Co-Pilot (that's PCP, iykyk) β stay hydrated, read your man pages, and remember: ascending order by type, always π
π¦ where this page comes from
- arch rolling: pcp 7.2.2-2 Β· GPL-2.0-or-later AND LGPL-2.1-or-later AND CC-BY-3.0
- centos-stream 10: pcp-doc 7.1.5-6.el10 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.0.1-1.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 43: pcp-doc 7.2.1-1.fc43
- fedora 43: pcp-doc 7.2.2-1.fc43
- fedora 43: pcp-doc 7.2.2-2.fc43 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.1.0-6.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- fedora 44: pcp-doc 7.2.1-1.fc44
- fedora 44: pcp-doc 7.2.2-1.fc44
- fedora 44: pcp-doc 7.2.2-2.fc44 Β· GPL-2.0-or-later AND CC-BY-3.0
- ubuntu resolute: libpcp4-dev 7.1.1-1
- ubuntu stonking: libpcp4-dev 7.2.1-2build1
- Copyright (c) 2020 Red Hat
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms