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.

770 B
Raw Blame
from products.warehouse_sources.sources.sdk import frozen


@frozen
class MezmoEndpoint:
    path: str
    data_selector: str
    primary_keys: tuple[str, ...] = ("id",)


ENDPOINTS: dict[str, MezmoEndpoint] = {
    "pipelines": MezmoEndpoint(path="pipeline", data_selector="data"),
    "alerts": MezmoEndpoint(
        path="pipeline/{pipeline_id}/alert", data_selector="data", primary_keys=("pipeline_id", "id")
    ),
    "pipeline_health": MezmoEndpoint(path="pipeline/health", data_selector="data.pipeline_health.pipelines"),
}

INVALID_KEY_MESSAGE = "Mezmo rejected your access key. Create a new IAM access key and reconnect."
PERMISSION_MESSAGE = (
    "Your Mezmo key needs read access to pipelines and alerts. Check its permissions and delegated account ID."
)