Core
API v1.x
1

You are currently looking at the documentation of a previous version of Kuzzle. We strongly recommend that you use the latest version. You can also use the version selector in the top menu.

pfcount #

Returns the probabilistic cardinality of a HyperLogLog data structure, or of the merged HyperLogLog structures if more than 1 is provided (see pfadd).

[Redis documentation]


Query Syntax #

HTTP #

Copied to clipboard!
URL: http://kuzzle:7512/ms/_pfcount?keys=key1,key2,...
Method: GET

Other protocols #

Copied to clipboard!
{
  "controller": "ms",
  "action": "pfcount",
  "keys": ["key1", "key2", "..."]
}

Argument #

  • keys: hyperloglog key identifiers

Response #

Returns the probabilistic cardinality.

Copied to clipboard!
{
  "requestId": "<unique request identifier>",
  "status": 200,
  "error": null,
  "controller": "ms",
  "action": "pfcount",
  "collection": null,
  "index": null,
  "result": 6
}