Skip to main content

AlertingRule

Resource AlertingRule in pulumi-portainer.
3 min read

Resource AlertingRule in pulumi-portainer.

Pulumi type: portainer:index/alertingRule:AlertingRule.

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
alertManagerIdnumbernoID of the associated AlertManager settings.
alertingRuleIdstringno
conditionOperatorstringnoCondition operator for threshold comparison.
descriptionstringnoDescription of the alert rule.
durationnumbernoDuration (in seconds) the condition must persist before firing.
enabledbooleanyesWhether the alert rule is enabled.
labels{ [key: string]: string }noLabels associated with the alert rule.
metricTypestringnoType of metric for the alert rule.
namestringnoName of the alert rule.
ruleIdnumberyesThe ID of the predefined alert rule to manage. Rules are predefined in Portainer and must be imported by ID.
severitystringnoSeverity level of the alert rule.
summarystringnoSummary of the alert rule.
thresholdnumbernoThreshold value for the alert rule.

Outputs#

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

PropertyTypeComputedDescription
alertManagerIdnumbernoID of the associated AlertManager settings.
alertingRuleIdstringno
conditionOperatorstringnoCondition operator for threshold comparison.
createdAtstringyesTimestamp when the rule was created.
createdBystringyesUser who created the rule.
descriptionstringnoDescription of the alert rule.
durationnumbernoDuration (in seconds) the condition must persist before firing.
enabledbooleannoWhether the alert rule is enabled.
isEditablebooleanyesWhether the alert rule can be edited.
isInternalbooleanyesWhether the alert rule is an internal/system rule.
labels{ [key: string]: string }noLabels associated with the alert rule.
metricTypestringnoType of metric for the alert rule.
namestringnoName of the alert rule.
ruleIdnumbernoThe ID of the predefined alert rule to manage. Rules are predefined in Portainer and must be imported by ID.
severitystringnoSeverity level of the alert rule.
summarystringnoSummary of the alert rule.
supportedAgentVersionstringyesMinimum agent version that supports this rule.
supportedEnvironmentTypesstringyesEnvironment types that support this rule (docker, kubernetes, podman, all).
thresholdnumbernoThreshold value for the alert rule.
updatedAtstringyesTimestamp when the rule was last updated.