Skip to content

:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.

2.9 KB
Raw Blame
{
    "$schema": "https://json-schema.org/draft/2020-12/schema",
    "properties": {
        "cooldown_minutes": {
            "description": "Minimum minutes between count-triggered reports to prevent spam (every_n mode only). Min 60, max 1440 (24 hours). Defaults to 60.",
            "maximum": 1440,
            "minimum": 60,
            "type": "number"
        },
        "daily_run_cap": {
            "description": "Maximum count-triggered report runs per calendar day (UTC). Min 1, max 24 (one per cooldown window). Defaults to 10.",
            "maximum": 24,
            "minimum": 1,
            "type": "number"
        },
        "delivery_targets": {
            "description": "List of delivery targets. Each entry is either {type: 'email', value: '[email protected]'} or {type: 'slack', integration_id: <int>, channel: '<channel>'}. Slack integration_id must belong to this team."
        },
        "enabled": {
            "description": "Whether report delivery is active. Disabled configs do not fire.",
            "type": "boolean"
        },
        "evaluation": {
            "description": "UUID of the evaluation this report config belongs to.",
            "type": "string"
        },
        "frequency": {
            "description": "How report generation is triggered. 'every_n' fires once N new evaluation results have accumulated (subject to cooldown_minutes and daily_run_cap). 'scheduled' fires on the cadence defined by rrule.\n\n* `scheduled` - Scheduled\n* `every_n` - Every N",
            "enum": ["scheduled", "every_n"],
            "type": "string"
        },
        "max_sample_size": {
            "description": "Maximum number of evaluation runs included in each report. Defaults to 200.",
            "maximum": 2147483647,
            "minimum": -2147483648,
            "type": "number"
        },
        "report_prompt_guidance": {
            "description": "Optional custom instructions appended to the AI report prompt to steer focus, scope, or section choices without modifying the base prompt.",
            "type": "string"
        },
        "rrule": {
            "description": "RFC 5545 recurrence rule string for scheduled reports. Only daily and weekly cadences are supported: use 'FREQ=DAILY' or 'FREQ=WEEKLY;BYDAY=MO,FR'. Required when frequency is 'scheduled'; ignored otherwise.",
            "type": "string"
        },
        "trigger_threshold": {
            "anyOf": [
                {
                    "maximum": 10000,
                    "minimum": 100,
                    "type": "number"
                },
                {
                    "type": "null"
                }
            ],
            "description": "Number of new evaluation results that triggers a report (every_n mode only). Min 100, max 10000. Defaults to 100. Required when frequency is 'every_n'."
        }
    },
    "required": ["evaluation"],
    "type": "object"
}