: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.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
from typing import TYPE_CHECKING
from products.signals.backend.queries.inbox_usage_query_runner import InboxUsageQueryRunner as InboxUsageQueryRunner
from products.signals.backend.spend import (
complete_task_spend as complete_task_spend,
register_report_task_spend as register_report_task_spend,
)
from products.signals.backend.spend_reporting import SpendReporting
if TYPE_CHECKING:
from posthog.models import Team
from products.signals.backend.spend_reporting import SourceSpend, SpendOverview
def scout_spend_overview(*, team: "Team") -> "SpendOverview":
return SpendReporting(team).scouts()
def source_spend_overview(*, team: "Team") -> list["SourceSpend"]:
return SpendReporting(team).sources()