PostHog · Schema

HogFunctionMasking

A/B TestingAnalyticsFeature FlagsOpen SourceProduct AnalyticsSession Recording

Properties

Name Type Description
ttl integer Time-to-live in seconds for the masking cache (60–86400).
threshold integer Optional threshold count before masking applies.
hash string Hog expression used to compute the masking hash.
bytecode object Compiled bytecode for the hash expression. Auto-generated.
View JSON Schema on GitHub

JSON Schema

posthog-hogfunctionmasking-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "#/components/schemas/HogFunctionMasking",
  "title": "HogFunctionMasking",
  "type": "object",
  "properties": {
    "ttl": {
      "type": "integer",
      "maximum": 86400,
      "minimum": 60,
      "description": "Time-to-live in seconds for the masking cache (60\u201386400)."
    },
    "threshold": {
      "type": "integer",
      "nullable": true,
      "description": "Optional threshold count before masking applies."
    },
    "hash": {
      "type": "string",
      "description": "Hog expression used to compute the masking hash."
    },
    "bytecode": {
      "nullable": true,
      "description": "Compiled bytecode for the hash expression. Auto-generated."
    }
  },
  "required": [
    "hash",
    "ttl"
  ]
}