Skip to main content

Alert

Resource Alert in pulumi-posthog.
5 min read

Resource Alert in pulumi-posthog.

Pulumi type: posthog:index/alert:Alert.

name is the Pulumi resource name. Nested object fields are documented under that object. They are not arguments of this resource.

Example#

Only required arguments are set. A string in angle brackets stands in for that argument. Any other value is an option or example written in the SDK description.

Arguments#

PropertyTypeRequiredDescription
calculationIntervalstringnoHow often to check the alert: hourly, daily, weekly, or monthly.
checkOngoingIntervalbooleannoWhether to check the ongoing (incomplete) interval. When false, only completed intervals are checked.
conditionTypestringyesCondition type: absoluteValue, relativeIncrease, or relativeDecrease.
enabledbooleannoWhether the alert is enabled. Defaults to true.
insightnumberyesID of the insight this alert monitors.
namestringnoName of the alert.
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
scheduleRestrictionAlertScheduleRestriction (input)noQuiet hours: local time windows during which the alert is not evaluated. Times use the project timezone.
seriesIndexnumberyesIndex of the trend series to monitor (0-based). Used for trends alerts.
skipWeekendbooleannoWhether to skip checking the alert on weekends.
subscribedUsersnumber[]yesList of user IDs to notify when the alert fires.
thresholdLowernumbernoLower bound of the threshold. Alert fires when value goes below this.
thresholdTypestringyesType of threshold: absolute for fixed values, percentage for relative changes.
thresholdUppernumbernoUpper bound of the threshold. Alert fires when value goes above this.

Outputs#

Computed outputs are produced by the provider. They are not constructor arguments.

PropertyTypeComputedDescription
calculationIntervalstringnoHow often to check the alert: hourly, daily, weekly, or monthly.
checkOngoingIntervalbooleannoWhether to check the ongoing (incomplete) interval. When false, only completed intervals are checked.
conditionTypestringnoCondition type: absoluteValue, relativeIncrease, or relativeDecrease.
enabledbooleannoWhether the alert is enabled. Defaults to true.
insightnumbernoID of the insight this alert monitors.
namestringnoName of the alert.
projectIdstringnoProject ID (environment) for this resource. Overrides the provider-level project_id.
scheduleRestrictionAlertScheduleRestriction (output)noQuiet hours: local time windows during which the alert is not evaluated. Times use the project timezone.
seriesIndexnumbernoIndex of the trend series to monitor (0-based). Used for trends alerts.
skipWeekendbooleannoWhether to skip checking the alert on weekends.
subscribedUsersnumber[]noList of user IDs to notify when the alert fires.
thresholdLowernumbernoLower bound of the threshold. Alert fires when value goes below this.
thresholdTypestringnoType of threshold: absolute for fixed values, percentage for relative changes.
thresholdUppernumbernoUpper bound of the threshold. Alert fires when value goes above this.

AlertScheduleRestriction (input)#

Input object AlertScheduleRestriction. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
blockedWindowsAlertScheduleRestrictionBlockedWindow (input)[]yesBlocked time windows, half-open [start, end). Windows must not overlap or touch, except that one may end at 00:00 where another starts. A window may wrap midnight (end before start), but only as the sole window, and two windows meeting at midnight are only allowed alongside a third. PostHog enforces its own limits on window length and count and reports them on apply. Remove scheduleRestriction to disable quiet hours.

AlertScheduleRestrictionBlockedWindow (input)#

Input object AlertScheduleRestrictionBlockedWindow. Fields below belong to this object, not to the parent.

PropertyTypeRequiredDescription
endstringyesEnd time HH:MM (24-hour, project timezone). Exclusive.
startstringyesStart time HH:MM (24-hour, project timezone). Inclusive.

AlertScheduleRestriction (output)#

Output object AlertScheduleRestriction. Fields below belong to this object.

PropertyTypeAlways presentDescription
blockedWindowsAlertScheduleRestrictionBlockedWindow (output)[]yesBlocked time windows, half-open [start, end). Windows must not overlap or touch, except that one may end at 00:00 where another starts. A window may wrap midnight (end before start), but only as the sole window, and two windows meeting at midnight are only allowed alongside a third. PostHog enforces its own limits on window length and count and reports them on apply. Remove scheduleRestriction to disable quiet hours.

AlertScheduleRestrictionBlockedWindow (output)#

Output object AlertScheduleRestrictionBlockedWindow. Fields below belong to this object.

PropertyTypeAlways presentDescription
endstringyesEnd time HH:MM (24-hour, project timezone). Exclusive.
startstringyesStart time HH:MM (24-hour, project timezone). Inclusive.