1. Packages
  2. Packages
  3. Rootly
  4. API Docs
  5. AlertRoutingRule
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq
rootly logo
Viewing docs for Rootly v3.3.0
published on Thursday, May 7, 2026 by rootlyhq

    Note: If you are an advanced alert routing user, you should use the Alert Routes resource/data source instead of this one. If you don’t know whether you are an advanced alert routing user, please contact Rootly customer support.

    Example Usage

    resource "rootly_alert_routing_rule" "production_alerts" {
      name = "Route production alerts"
    }
    

    Create AlertRoutingRule Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlertRoutingRule(name: string, args: AlertRoutingRuleArgs, opts?: CustomResourceOptions);
    @overload
    def AlertRoutingRule(resource_name: str,
                         args: AlertRoutingRuleArgs,
                         opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertRoutingRule(resource_name: str,
                         opts: Optional[ResourceOptions] = None,
                         alerts_source_id: Optional[str] = None,
                         destination: Optional[AlertRoutingRuleDestinationArgs] = None,
                         condition_groups: Optional[Sequence[AlertRoutingRuleConditionGroupArgs]] = None,
                         condition_type: Optional[str] = None,
                         conditions: Optional[Sequence[AlertRoutingRuleConditionArgs]] = None,
                         enabled: Optional[bool] = None,
                         name: Optional[str] = None,
                         position: Optional[int] = None)
    func NewAlertRoutingRule(ctx *Context, name string, args AlertRoutingRuleArgs, opts ...ResourceOption) (*AlertRoutingRule, error)
    public AlertRoutingRule(string name, AlertRoutingRuleArgs args, CustomResourceOptions? opts = null)
    public AlertRoutingRule(String name, AlertRoutingRuleArgs args)
    public AlertRoutingRule(String name, AlertRoutingRuleArgs args, CustomResourceOptions options)
    
    type: rootly:AlertRoutingRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args AlertRoutingRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args AlertRoutingRuleArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args AlertRoutingRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertRoutingRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertRoutingRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var alertRoutingRuleResource = new Rootly.AlertRoutingRule("alertRoutingRuleResource", new()
    {
        AlertsSourceId = "string",
        Destination = new Rootly.Inputs.AlertRoutingRuleDestinationArgs
        {
            TargetId = "string",
            TargetType = "string",
        },
        ConditionGroups = new[]
        {
            new Rootly.Inputs.AlertRoutingRuleConditionGroupArgs
            {
                Conditions = new[]
                {
                    new Rootly.Inputs.AlertRoutingRuleConditionGroupConditionArgs
                    {
                        ConditionableId = "string",
                        ConditionableType = "string",
                        CreatedAt = "string",
                        Id = "string",
                        PropertyFieldConditionType = "string",
                        PropertyFieldName = "string",
                        PropertyFieldType = "string",
                        PropertyFieldValue = "string",
                        PropertyFieldValues = new[]
                        {
                            "string",
                        },
                        UpdatedAt = "string",
                    },
                },
                CreatedAt = "string",
                Id = "string",
                Position = 0,
                UpdatedAt = "string",
            },
        },
        ConditionType = "string",
        Conditions = new[]
        {
            new Rootly.Inputs.AlertRoutingRuleConditionArgs
            {
                PropertyFieldConditionType = "string",
                PropertyFieldName = "string",
                PropertyFieldType = "string",
                PropertyFieldValue = "string",
                PropertyFieldValues = new[]
                {
                    "string",
                },
            },
        },
        Enabled = false,
        Name = "string",
        Position = 0,
    });
    
    example, err := rootly.NewAlertRoutingRule(ctx, "alertRoutingRuleResource", &rootly.AlertRoutingRuleArgs{
    	AlertsSourceId: pulumi.String("string"),
    	Destination: &rootly.AlertRoutingRuleDestinationArgs{
    		TargetId:   pulumi.String("string"),
    		TargetType: pulumi.String("string"),
    	},
    	ConditionGroups: rootly.AlertRoutingRuleConditionGroupArray{
    		&rootly.AlertRoutingRuleConditionGroupArgs{
    			Conditions: rootly.AlertRoutingRuleConditionGroupConditionArray{
    				&rootly.AlertRoutingRuleConditionGroupConditionArgs{
    					ConditionableId:            pulumi.String("string"),
    					ConditionableType:          pulumi.String("string"),
    					CreatedAt:                  pulumi.String("string"),
    					Id:                         pulumi.String("string"),
    					PropertyFieldConditionType: pulumi.String("string"),
    					PropertyFieldName:          pulumi.String("string"),
    					PropertyFieldType:          pulumi.String("string"),
    					PropertyFieldValue:         pulumi.String("string"),
    					PropertyFieldValues: pulumi.StringArray{
    						pulumi.String("string"),
    					},
    					UpdatedAt: pulumi.String("string"),
    				},
    			},
    			CreatedAt: pulumi.String("string"),
    			Id:        pulumi.String("string"),
    			Position:  pulumi.Int(0),
    			UpdatedAt: pulumi.String("string"),
    		},
    	},
    	ConditionType: pulumi.String("string"),
    	Conditions: rootly.AlertRoutingRuleConditionArray{
    		&rootly.AlertRoutingRuleConditionArgs{
    			PropertyFieldConditionType: pulumi.String("string"),
    			PropertyFieldName:          pulumi.String("string"),
    			PropertyFieldType:          pulumi.String("string"),
    			PropertyFieldValue:         pulumi.String("string"),
    			PropertyFieldValues: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	Enabled:  pulumi.Bool(false),
    	Name:     pulumi.String("string"),
    	Position: pulumi.Int(0),
    })
    
    var alertRoutingRuleResource = new AlertRoutingRule("alertRoutingRuleResource", AlertRoutingRuleArgs.builder()
        .alertsSourceId("string")
        .destination(AlertRoutingRuleDestinationArgs.builder()
            .targetId("string")
            .targetType("string")
            .build())
        .conditionGroups(AlertRoutingRuleConditionGroupArgs.builder()
            .conditions(AlertRoutingRuleConditionGroupConditionArgs.builder()
                .conditionableId("string")
                .conditionableType("string")
                .createdAt("string")
                .id("string")
                .propertyFieldConditionType("string")
                .propertyFieldName("string")
                .propertyFieldType("string")
                .propertyFieldValue("string")
                .propertyFieldValues("string")
                .updatedAt("string")
                .build())
            .createdAt("string")
            .id("string")
            .position(0)
            .updatedAt("string")
            .build())
        .conditionType("string")
        .conditions(AlertRoutingRuleConditionArgs.builder()
            .propertyFieldConditionType("string")
            .propertyFieldName("string")
            .propertyFieldType("string")
            .propertyFieldValue("string")
            .propertyFieldValues("string")
            .build())
        .enabled(false)
        .name("string")
        .position(0)
        .build());
    
    alert_routing_rule_resource = rootly.AlertRoutingRule("alertRoutingRuleResource",
        alerts_source_id="string",
        destination={
            "target_id": "string",
            "target_type": "string",
        },
        condition_groups=[{
            "conditions": [{
                "conditionable_id": "string",
                "conditionable_type": "string",
                "created_at": "string",
                "id": "string",
                "property_field_condition_type": "string",
                "property_field_name": "string",
                "property_field_type": "string",
                "property_field_value": "string",
                "property_field_values": ["string"],
                "updated_at": "string",
            }],
            "created_at": "string",
            "id": "string",
            "position": 0,
            "updated_at": "string",
        }],
        condition_type="string",
        conditions=[{
            "property_field_condition_type": "string",
            "property_field_name": "string",
            "property_field_type": "string",
            "property_field_value": "string",
            "property_field_values": ["string"],
        }],
        enabled=False,
        name="string",
        position=0)
    
    const alertRoutingRuleResource = new rootly.AlertRoutingRule("alertRoutingRuleResource", {
        alertsSourceId: "string",
        destination: {
            targetId: "string",
            targetType: "string",
        },
        conditionGroups: [{
            conditions: [{
                conditionableId: "string",
                conditionableType: "string",
                createdAt: "string",
                id: "string",
                propertyFieldConditionType: "string",
                propertyFieldName: "string",
                propertyFieldType: "string",
                propertyFieldValue: "string",
                propertyFieldValues: ["string"],
                updatedAt: "string",
            }],
            createdAt: "string",
            id: "string",
            position: 0,
            updatedAt: "string",
        }],
        conditionType: "string",
        conditions: [{
            propertyFieldConditionType: "string",
            propertyFieldName: "string",
            propertyFieldType: "string",
            propertyFieldValue: "string",
            propertyFieldValues: ["string"],
        }],
        enabled: false,
        name: "string",
        position: 0,
    });
    
    type: rootly:AlertRoutingRule
    properties:
        alertsSourceId: string
        conditionGroups:
            - conditions:
                - conditionableId: string
                  conditionableType: string
                  createdAt: string
                  id: string
                  propertyFieldConditionType: string
                  propertyFieldName: string
                  propertyFieldType: string
                  propertyFieldValue: string
                  propertyFieldValues:
                    - string
                  updatedAt: string
              createdAt: string
              id: string
              position: 0
              updatedAt: string
        conditionType: string
        conditions:
            - propertyFieldConditionType: string
              propertyFieldName: string
              propertyFieldType: string
              propertyFieldValue: string
              propertyFieldValues:
                - string
        destination:
            targetId: string
            targetType: string
        enabled: false
        name: string
        position: 0
    

    AlertRoutingRule Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The AlertRoutingRule resource accepts the following input properties:

    AlertsSourceId string
    The ID of the alerts source
    Destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    ConditionGroups List<AlertRoutingRuleConditionGroup>
    The condition groups for the alert routing rule
    ConditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    Conditions List<AlertRoutingRuleCondition>
    The conditions for the alert routing rule
    Enabled bool
    Name string
    The name of the alert routing rule
    Position int
    The position of the alert routing rule for ordering evaluation
    AlertsSourceId string
    The ID of the alerts source
    Destination AlertRoutingRuleDestinationArgs
    The destinations for the alert routing rule
    ConditionGroups []AlertRoutingRuleConditionGroupArgs
    The condition groups for the alert routing rule
    ConditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    Conditions []AlertRoutingRuleConditionArgs
    The conditions for the alert routing rule
    Enabled bool
    Name string
    The name of the alert routing rule
    Position int
    The position of the alert routing rule for ordering evaluation
    alertsSourceId String
    The ID of the alerts source
    destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    conditionGroups List<AlertRoutingRuleConditionGroup>
    The condition groups for the alert routing rule
    conditionType String
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions List<AlertRoutingRuleCondition>
    The conditions for the alert routing rule
    enabled Boolean
    name String
    The name of the alert routing rule
    position Integer
    The position of the alert routing rule for ordering evaluation
    alertsSourceId string
    The ID of the alerts source
    destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    conditionGroups AlertRoutingRuleConditionGroup[]
    The condition groups for the alert routing rule
    conditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions AlertRoutingRuleCondition[]
    The conditions for the alert routing rule
    enabled boolean
    name string
    The name of the alert routing rule
    position number
    The position of the alert routing rule for ordering evaluation
    alerts_source_id str
    The ID of the alerts source
    destination AlertRoutingRuleDestinationArgs
    The destinations for the alert routing rule
    condition_groups Sequence[AlertRoutingRuleConditionGroupArgs]
    The condition groups for the alert routing rule
    condition_type str
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions Sequence[AlertRoutingRuleConditionArgs]
    The conditions for the alert routing rule
    enabled bool
    name str
    The name of the alert routing rule
    position int
    The position of the alert routing rule for ordering evaluation
    alertsSourceId String
    The ID of the alerts source
    destination Property Map
    The destinations for the alert routing rule
    conditionGroups List<Property Map>
    The condition groups for the alert routing rule
    conditionType String
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions List<Property Map>
    The conditions for the alert routing rule
    enabled Boolean
    name String
    The name of the alert routing rule
    position Number
    The position of the alert routing rule for ordering evaluation

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlertRoutingRule resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    Id string
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.
    id string
    The provider-assigned unique ID for this managed resource.
    id str
    The provider-assigned unique ID for this managed resource.
    id String
    The provider-assigned unique ID for this managed resource.

    Look up Existing AlertRoutingRule Resource

    Get an existing AlertRoutingRule resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: AlertRoutingRuleState, opts?: CustomResourceOptions): AlertRoutingRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            alerts_source_id: Optional[str] = None,
            condition_groups: Optional[Sequence[AlertRoutingRuleConditionGroupArgs]] = None,
            condition_type: Optional[str] = None,
            conditions: Optional[Sequence[AlertRoutingRuleConditionArgs]] = None,
            destination: Optional[AlertRoutingRuleDestinationArgs] = None,
            enabled: Optional[bool] = None,
            name: Optional[str] = None,
            position: Optional[int] = None) -> AlertRoutingRule
    func GetAlertRoutingRule(ctx *Context, name string, id IDInput, state *AlertRoutingRuleState, opts ...ResourceOption) (*AlertRoutingRule, error)
    public static AlertRoutingRule Get(string name, Input<string> id, AlertRoutingRuleState? state, CustomResourceOptions? opts = null)
    public static AlertRoutingRule get(String name, Output<String> id, AlertRoutingRuleState state, CustomResourceOptions options)
    resources:  _:    type: rootly:AlertRoutingRule    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AlertsSourceId string
    The ID of the alerts source
    ConditionGroups List<AlertRoutingRuleConditionGroup>
    The condition groups for the alert routing rule
    ConditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    Conditions List<AlertRoutingRuleCondition>
    The conditions for the alert routing rule
    Destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    Enabled bool
    Name string
    The name of the alert routing rule
    Position int
    The position of the alert routing rule for ordering evaluation
    AlertsSourceId string
    The ID of the alerts source
    ConditionGroups []AlertRoutingRuleConditionGroupArgs
    The condition groups for the alert routing rule
    ConditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    Conditions []AlertRoutingRuleConditionArgs
    The conditions for the alert routing rule
    Destination AlertRoutingRuleDestinationArgs
    The destinations for the alert routing rule
    Enabled bool
    Name string
    The name of the alert routing rule
    Position int
    The position of the alert routing rule for ordering evaluation
    alertsSourceId String
    The ID of the alerts source
    conditionGroups List<AlertRoutingRuleConditionGroup>
    The condition groups for the alert routing rule
    conditionType String
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions List<AlertRoutingRuleCondition>
    The conditions for the alert routing rule
    destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    enabled Boolean
    name String
    The name of the alert routing rule
    position Integer
    The position of the alert routing rule for ordering evaluation
    alertsSourceId string
    The ID of the alerts source
    conditionGroups AlertRoutingRuleConditionGroup[]
    The condition groups for the alert routing rule
    conditionType string
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions AlertRoutingRuleCondition[]
    The conditions for the alert routing rule
    destination AlertRoutingRuleDestination
    The destinations for the alert routing rule
    enabled boolean
    name string
    The name of the alert routing rule
    position number
    The position of the alert routing rule for ordering evaluation
    alerts_source_id str
    The ID of the alerts source
    condition_groups Sequence[AlertRoutingRuleConditionGroupArgs]
    The condition groups for the alert routing rule
    condition_type str
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions Sequence[AlertRoutingRuleConditionArgs]
    The conditions for the alert routing rule
    destination AlertRoutingRuleDestinationArgs
    The destinations for the alert routing rule
    enabled bool
    name str
    The name of the alert routing rule
    position int
    The position of the alert routing rule for ordering evaluation
    alertsSourceId String
    The ID of the alerts source
    conditionGroups List<Property Map>
    The condition groups for the alert routing rule
    conditionType String
    The type of condition for the alert routing rule. Value must be one of all, any.
    conditions List<Property Map>
    The conditions for the alert routing rule
    destination Property Map
    The destinations for the alert routing rule
    enabled Boolean
    name String
    The name of the alert routing rule
    position Number
    The position of the alert routing rule for ordering evaluation

    Supporting Types

    AlertRoutingRuleCondition, AlertRoutingRuleConditionArgs

    PropertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    PropertyFieldName string
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    PropertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    PropertyFieldValue string
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    PropertyFieldValues List<string>
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'
    PropertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    PropertyFieldName string
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    PropertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    PropertyFieldValue string
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    PropertyFieldValues []string
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'
    propertyFieldConditionType String
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName String
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    propertyFieldType String
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue String
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    propertyFieldValues List<String>
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'
    propertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName string
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    propertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue string
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    propertyFieldValues string[]
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'
    property_field_condition_type str
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    property_field_name str
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    property_field_type str
    The type of the property field. Value must be one of attribute, payload.
    property_field_value str
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    property_field_values Sequence[str]
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'
    propertyFieldConditionType String
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName String
    The name of the property field. If the property field type is selected as 'attribute', then the allowed property field names are 'summary' (for Title), 'description', 'alerturgency' and 'externalurl' (for Alert Source URL). If the property field type is selected as 'payload', then the property field name should be supplied in JSON Path syntax.
    propertyFieldType String
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue String
    The value of the property field. Can be null if the property field condition type is 'isoneof' or 'isnotone_of'
    propertyFieldValues List<String>
    The values of the property field. Used if the property field condition type is 'isoneof' or 'isnotoneof' except for when property field name is 'alerturgency'

    AlertRoutingRuleConditionGroup, AlertRoutingRuleConditionGroupArgs

    Conditions List<AlertRoutingRuleConditionGroupCondition>
    The conditions within this group
    CreatedAt string
    Date of creation
    Id string
    Unique ID of the condition group
    Position int
    The position of the condition group for ordering
    UpdatedAt string
    Date of last update
    Conditions []AlertRoutingRuleConditionGroupCondition
    The conditions within this group
    CreatedAt string
    Date of creation
    Id string
    Unique ID of the condition group
    Position int
    The position of the condition group for ordering
    UpdatedAt string
    Date of last update
    conditions List<AlertRoutingRuleConditionGroupCondition>
    The conditions within this group
    createdAt String
    Date of creation
    id String
    Unique ID of the condition group
    position Integer
    The position of the condition group for ordering
    updatedAt String
    Date of last update
    conditions AlertRoutingRuleConditionGroupCondition[]
    The conditions within this group
    createdAt string
    Date of creation
    id string
    Unique ID of the condition group
    position number
    The position of the condition group for ordering
    updatedAt string
    Date of last update
    conditions Sequence[AlertRoutingRuleConditionGroupCondition]
    The conditions within this group
    created_at str
    Date of creation
    id str
    Unique ID of the condition group
    position int
    The position of the condition group for ordering
    updated_at str
    Date of last update
    conditions List<Property Map>
    The conditions within this group
    createdAt String
    Date of creation
    id String
    Unique ID of the condition group
    position Number
    The position of the condition group for ordering
    updatedAt String
    Date of last update

    AlertRoutingRuleConditionGroupCondition, AlertRoutingRuleConditionGroupConditionArgs

    ConditionableId string
    The ID of the conditionable object
    ConditionableType string
    The type of the conditionable object
    CreatedAt string
    Date of creation
    Id string
    Unique ID of the condition
    PropertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    PropertyFieldName string
    The name of the property field
    PropertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    PropertyFieldValue string
    The value of the property field
    PropertyFieldValues List<string>
    The values of the property field
    UpdatedAt string
    Date of last update
    ConditionableId string
    The ID of the conditionable object
    ConditionableType string
    The type of the conditionable object
    CreatedAt string
    Date of creation
    Id string
    Unique ID of the condition
    PropertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    PropertyFieldName string
    The name of the property field
    PropertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    PropertyFieldValue string
    The value of the property field
    PropertyFieldValues []string
    The values of the property field
    UpdatedAt string
    Date of last update
    conditionableId String
    The ID of the conditionable object
    conditionableType String
    The type of the conditionable object
    createdAt String
    Date of creation
    id String
    Unique ID of the condition
    propertyFieldConditionType String
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName String
    The name of the property field
    propertyFieldType String
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue String
    The value of the property field
    propertyFieldValues List<String>
    The values of the property field
    updatedAt String
    Date of last update
    conditionableId string
    The ID of the conditionable object
    conditionableType string
    The type of the conditionable object
    createdAt string
    Date of creation
    id string
    Unique ID of the condition
    propertyFieldConditionType string
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName string
    The name of the property field
    propertyFieldType string
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue string
    The value of the property field
    propertyFieldValues string[]
    The values of the property field
    updatedAt string
    Date of last update
    conditionable_id str
    The ID of the conditionable object
    conditionable_type str
    The type of the conditionable object
    created_at str
    Date of creation
    id str
    Unique ID of the condition
    property_field_condition_type str
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    property_field_name str
    The name of the property field
    property_field_type str
    The type of the property field. Value must be one of attribute, payload.
    property_field_value str
    The value of the property field
    property_field_values Sequence[str]
    The values of the property field
    updated_at str
    Date of last update
    conditionableId String
    The ID of the conditionable object
    conditionableType String
    The type of the conditionable object
    createdAt String
    Date of creation
    id String
    Unique ID of the condition
    propertyFieldConditionType String
    The condition type of the property field. Value must be one of isOneOf, isNotOneOf, contains, doesNotContain, startsWith, endsWith, matchesRegex, isEmpty.
    propertyFieldName String
    The name of the property field
    propertyFieldType String
    The type of the property field. Value must be one of attribute, payload.
    propertyFieldValue String
    The value of the property field
    propertyFieldValues List<String>
    The values of the property field
    updatedAt String
    Date of last update

    AlertRoutingRuleDestination, AlertRoutingRuleDestinationArgs

    TargetId string
    The ID of the target
    TargetType string
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.
    TargetId string
    The ID of the target
    TargetType string
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.
    targetId String
    The ID of the target
    targetType String
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.
    targetId string
    The ID of the target
    targetType string
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.
    target_id str
    The ID of the target
    target_type str
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.
    targetId String
    The ID of the target
    targetType String
    The type of the target. Please contact support if you encounter issues using Functionality as a target type.. Value must be one of Service, Group, Functionality, EscalationPolicy.

    Import

    rootly.AlertRoutingRule can be imported using the import command.

    $ pulumi import rootly:index/alertRoutingRule:AlertRoutingRule primary a816421c-6ceb-481a-87c4-585e47451f24
    

    Or using an import block.

    Locate the resource id in the web app, or retrieve it by listing resources through the API if it’s not visible in the web app.

    HCL can be generated from the import block using the -generate-config-out flag.

    pulumi preview -generate-config-out=generated.tf
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    rootly rootlyhq/pulumi-rootly
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the rootly Terraform Provider.
    rootly logo
    Viewing docs for Rootly v3.3.0
    published on Thursday, May 7, 2026 by rootlyhq
      Try Pulumi Cloud free. Your team will thank you.