Count matching hosts
Returns an exact count where one can be computed. Queries that filter on service content and match a very large number of hosts return a distinct-host estimate instead; check total_relation before presenting the number as exact.
Authorizations
Infrawatch API key. Supply the complete key directly as the header value.
Query Parameters
InfraQL expression, limited to 8192 UTF-8 bytes after URL decoding. Omit for the dataset default query. String operators pair positive with negative: : contains and :~ does NOT contain; = is exact and != is not exact. =~ is a regular expression, which must be anchored with ^ and $ and begin with a literal prefix of at least three characters.
8192Response
Host count. Exact unless the result set is large enough that it is estimated; read total_relation.
0 <= x <= 90071992547409918192eq when the count is exact. approx when the query filters on service content and matches more hosts than the exact cross-index count can enumerate, in which case the count is a distinct-host cardinality estimate that may fall on either side of the truth by a few percent. Only host counts can be estimated; service and DNS counts are always exact.
eq, approx