: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
import { healthRuleReadings } from './healthCheckValues'
import type { HealthPanelCheck } from './healthPanelChecks'
import { HealthPanelSection } from './HealthPanelSection'
import { HealthReadingList } from './HealthReadingList'
export function HealthCheckRuleSection({
check,
units,
checkedAt,
}: {
check: HealthPanelCheck
units: string
/** When the check ran, for a check that the page reads from a cached answer. */
checkedAt: string | null
}): JSX.Element | null {
if (!check.rule) {
return null
}
return (
<HealthPanelSection title="How it decides">
<HealthReadingList
readings={[
...healthRuleReadings(check, check.rule, units),
...(checkedAt ? [{ label: 'Checked', time: checkedAt }] : []),
]}
/>
</HealthPanelSection>
)
}