PostHog
Create PostHog Alert
Create PostHog Alert.
Endpoint
Parameters
| Name | Type | Required | Note |
|---|---|---|---|
| identifieraccount · required | account | required | — |
| project_idstring · required | string | required | Project ID returned by List PostHog Projects. Uses only the selected connected account. |
| insightnumber · required | number | required | PostHog insight. |
| namestring · required | string | required | PostHog name. |
| condition_typestring · required | string | required | Choose condition type: absolute_value, relative_increase, relative_decrease. One of: |
| threshold_typestring · required | string | required | Choose threshold type: absolute, percentage. One of: |
| threshold_lowernumber · optional | number | optional | PostHog threshold lower; null clears this value. |
| threshold_uppernumber · optional | number | optional | PostHog threshold upper; null clears this value. |
| calculation_intervalstring · optional | string | optional | Choose calculation interval: every_15_minutes, hourly, daily, weekly, monthly. One of: |
| subscribed_usersstring · optional | string | optional | PostHog subscribed users as structured JSON or JSON text. Supports Workflow variables. |
| config_series_indexnumber · optional | number | optional | PostHog config series index. |
| config_check_ongoing_intervalboolean · optional | boolean | optional | PostHog config check ongoing interval. |
| enabledboolean · optional | boolean | optional | PostHog enabled. |
| skip_weekendboolean · optional | boolean | optional | PostHog skip weekend. |
| snoozed_untilstring · optional | string | optional | PostHog snoozed until; null clears this value. |
| detector_configstring · optional | string | optional | PostHog detector config as structured JSON or JSON text. Supports Workflow variables. |
| schedule_restrictionstring · optional | string | optional | PostHog schedule restriction as structured JSON or JSON text. Supports Workflow variables. |
| investigation_agent_enabledboolean · optional | boolean | optional | PostHog investigation agent enabled. |
| investigation_gates_notificationsboolean · optional | boolean | optional | PostHog investigation gates notifications. |
| investigation_inconclusive_actionstring · optional | string | optional | PostHog investigation inconclusive action. |
Response schema
{
"type": "object",
"required": [
"id",
"name",
"insight_id",
"state",
"enabled",
"calculation_interval",
"subscribed_users",
"created_at"
],
"properties": {
"id": {
"type": "string"
},
"name": {
"type": "string"
},
"state": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"created_at": {
"type": "string"
},
"insight_id": {
"type": "number"
},
"skip_weekend": {
"type": "boolean"
},
"snoozed_until": {
"anyOf": [
{
"type": "string"
},
{
"type": "null"
}
]
},
"condition_type": {
"type": "string"
},
"threshold_type": {
"type": "string"
},
"detector_config": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"threshold_lower": {
"type": "number"
},
"threshold_upper": {
"type": "number"
},
"subscribed_users": {
"type": "array",
"items": {
"type": "number"
}
},
"config_series_index": {
"type": "number"
},
"calculation_interval": {
"type": "string"
},
"schedule_restriction": {
"anyOf": [
{
"type": "object",
"additionalProperties": {}
},
{
"type": "null"
}
]
},
"investigation_agent_enabled": {
"type": "boolean"
},
"config_check_ongoing_interval": {
"type": "boolean"
},
"investigation_gates_notifications": {
"type": "boolean"
},
"investigation_inconclusive_action": {
"type": "string"
}
},
"additionalProperties": false
}