1. Packages
  2. Rollbar Provider
  3. API Docs
  4. Notification
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

rollbar.Notification

Explore with Pulumi AI

rollbar logo
rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar

    rollbar.Notification Resource

    =========================

    Rollbar projects can be configured with different notification integrations (aka “channels”) and rules for when to send notifications to those integration platforms. This resource manages the rules for the project configured for the Rollbar provider. The notification channels are enabled and disabled through the Rollbar UI.

    This resource can manage notification rules for different integration channels. See the following api documentation for more details about the arguments with respect to each channel:

    Example Usage


    import * as pulumi from "@pulumi/pulumi";
    import * as rollbar from "@pulumi/rollbar";
    
    // Create an email notification for the project
    //
    const email = new rollbar.Notification("email", {
        channel: "email",
        configs: [{
            teams: ["test-team-example"],
            users: ["travis.mattera@rollbar.com"],
        }],
        rules: [{
            enabled: true,
            filters: [{
                count: 10,
                period: 300,
                type: "rate",
            }],
            trigger: "occurrence_rate",
        }],
    });
    
    import pulumi
    import pulumi_rollbar as rollbar
    
    # Create an email notification for the project
    #
    email = rollbar.Notification("email",
        channel="email",
        configs=[{
            "teams": ["test-team-example"],
            "users": ["travis.mattera@rollbar.com"],
        }],
        rules=[{
            "enabled": True,
            "filters": [{
                "count": 10,
                "period": 300,
                "type": "rate",
            }],
            "trigger": "occurrence_rate",
        }])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/rollbar/rollbar"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		// Create an email notification for the project
    		_, err := rollbar.NewNotification(ctx, "email", &rollbar.NotificationArgs{
    			Channel: pulumi.String("email"),
    			Configs: rollbar.NotificationConfigArray{
    				&rollbar.NotificationConfigArgs{
    					Teams: pulumi.StringArray{
    						pulumi.String("test-team-example"),
    					},
    					Users: pulumi.StringArray{
    						pulumi.String("travis.mattera@rollbar.com"),
    					},
    				},
    			},
    			Rules: rollbar.NotificationRuleArray{
    				&rollbar.NotificationRuleArgs{
    					Enabled: pulumi.Bool(true),
    					Filters: rollbar.NotificationRuleFilterArray{
    						&rollbar.NotificationRuleFilterArgs{
    							Count:  pulumi.Float64(10),
    							Period: pulumi.Float64(300),
    							Type:   pulumi.String("rate"),
    						},
    					},
    					Trigger: pulumi.String("occurrence_rate"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Rollbar = Pulumi.Rollbar;
    
    return await Deployment.RunAsync(() => 
    {
        // Create an email notification for the project
        //
        var email = new Rollbar.Notification("email", new()
        {
            Channel = "email",
            Configs = new[]
            {
                new Rollbar.Inputs.NotificationConfigArgs
                {
                    Teams = new[]
                    {
                        "test-team-example",
                    },
                    Users = new[]
                    {
                        "travis.mattera@rollbar.com",
                    },
                },
            },
            Rules = new[]
            {
                new Rollbar.Inputs.NotificationRuleArgs
                {
                    Enabled = true,
                    Filters = new[]
                    {
                        new Rollbar.Inputs.NotificationRuleFilterArgs
                        {
                            Count = 10,
                            Period = 300,
                            Type = "rate",
                        },
                    },
                    Trigger = "occurrence_rate",
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.rollbar.Notification;
    import com.pulumi.rollbar.NotificationArgs;
    import com.pulumi.rollbar.inputs.NotificationConfigArgs;
    import com.pulumi.rollbar.inputs.NotificationRuleArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            // Create an email notification for the project
            //
            var email = new Notification("email", NotificationArgs.builder()
                .channel("email")
                .configs(NotificationConfigArgs.builder()
                    .teams("test-team-example")
                    .users("travis.mattera@rollbar.com")
                    .build())
                .rules(NotificationRuleArgs.builder()
                    .enabled(true)
                    .filters(NotificationRuleFilterArgs.builder()
                        .count(10)
                        .period(300)
                        .type("rate")
                        .build())
                    .trigger("occurrence_rate")
                    .build())
                .build());
    
        }
    }
    
    resources:
      # Create an email notification for the project
      # //
      email:
        type: rollbar:Notification
        properties:
          channel: email
          configs:
            - teams:
                - test-team-example
              users:
                - travis.mattera@rollbar.com
          rules:
            - enabled: true
              filters:
                - count: 10
                  period: 300
                  type: rate
              trigger: occurrence_rate
    

    Create Notification Resource

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

    Constructor syntax

    new Notification(name: string, args: NotificationArgs, opts?: CustomResourceOptions);
    @overload
    def Notification(resource_name: str,
                     args: NotificationArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def Notification(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     channel: Optional[str] = None,
                     rules: Optional[Sequence[NotificationRuleArgs]] = None,
                     configs: Optional[Sequence[NotificationConfigArgs]] = None,
                     notification_id: Optional[str] = None)
    func NewNotification(ctx *Context, name string, args NotificationArgs, opts ...ResourceOption) (*Notification, error)
    public Notification(string name, NotificationArgs args, CustomResourceOptions? opts = null)
    public Notification(String name, NotificationArgs args)
    public Notification(String name, NotificationArgs args, CustomResourceOptions options)
    
    type: rollbar:Notification
    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 NotificationArgs
    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 NotificationArgs
    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 NotificationArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args NotificationArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args NotificationArgs
    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 notificationResource = new Rollbar.Notification("notificationResource", new()
    {
        Channel = "string",
        Rules = new[]
        {
            new Rollbar.Inputs.NotificationRuleArgs
            {
                Trigger = "string",
                Enabled = false,
                Filters = new[]
                {
                    new Rollbar.Inputs.NotificationRuleFilterArgs
                    {
                        Type = "string",
                        Count = 0,
                        Operation = "string",
                        Path = "string",
                        Period = 0,
                        Value = "string",
                    },
                },
            },
        },
        Configs = new[]
        {
            new Rollbar.Inputs.NotificationConfigArgs
            {
                Channel = "string",
                Environments = new[]
                {
                    "string",
                },
                Format = "string",
                MessageTemplate = "string",
                MinItemLevel = "string",
                SendOnlyIfData = false,
                ServiceKey = "string",
                ShowMessageButtons = false,
                SummaryTime = 0,
                Teams = new[]
                {
                    "string",
                },
                Url = "string",
                Users = new[]
                {
                    "string",
                },
            },
        },
        NotificationId = "string",
    });
    
    example, err := rollbar.NewNotification(ctx, "notificationResource", &rollbar.NotificationArgs{
    	Channel: pulumi.String("string"),
    	Rules: rollbar.NotificationRuleArray{
    		&rollbar.NotificationRuleArgs{
    			Trigger: pulumi.String("string"),
    			Enabled: pulumi.Bool(false),
    			Filters: rollbar.NotificationRuleFilterArray{
    				&rollbar.NotificationRuleFilterArgs{
    					Type:      pulumi.String("string"),
    					Count:     pulumi.Float64(0),
    					Operation: pulumi.String("string"),
    					Path:      pulumi.String("string"),
    					Period:    pulumi.Float64(0),
    					Value:     pulumi.String("string"),
    				},
    			},
    		},
    	},
    	Configs: rollbar.NotificationConfigArray{
    		&rollbar.NotificationConfigArgs{
    			Channel: pulumi.String("string"),
    			Environments: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Format:             pulumi.String("string"),
    			MessageTemplate:    pulumi.String("string"),
    			MinItemLevel:       pulumi.String("string"),
    			SendOnlyIfData:     pulumi.Bool(false),
    			ServiceKey:         pulumi.String("string"),
    			ShowMessageButtons: pulumi.Bool(false),
    			SummaryTime:        pulumi.Float64(0),
    			Teams: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Url: pulumi.String("string"),
    			Users: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	NotificationId: pulumi.String("string"),
    })
    
    var notificationResource = new Notification("notificationResource", NotificationArgs.builder()
        .channel("string")
        .rules(NotificationRuleArgs.builder()
            .trigger("string")
            .enabled(false)
            .filters(NotificationRuleFilterArgs.builder()
                .type("string")
                .count(0)
                .operation("string")
                .path("string")
                .period(0)
                .value("string")
                .build())
            .build())
        .configs(NotificationConfigArgs.builder()
            .channel("string")
            .environments("string")
            .format("string")
            .messageTemplate("string")
            .minItemLevel("string")
            .sendOnlyIfData(false)
            .serviceKey("string")
            .showMessageButtons(false)
            .summaryTime(0)
            .teams("string")
            .url("string")
            .users("string")
            .build())
        .notificationId("string")
        .build());
    
    notification_resource = rollbar.Notification("notificationResource",
        channel="string",
        rules=[{
            "trigger": "string",
            "enabled": False,
            "filters": [{
                "type": "string",
                "count": 0,
                "operation": "string",
                "path": "string",
                "period": 0,
                "value": "string",
            }],
        }],
        configs=[{
            "channel": "string",
            "environments": ["string"],
            "format": "string",
            "message_template": "string",
            "min_item_level": "string",
            "send_only_if_data": False,
            "service_key": "string",
            "show_message_buttons": False,
            "summary_time": 0,
            "teams": ["string"],
            "url": "string",
            "users": ["string"],
        }],
        notification_id="string")
    
    const notificationResource = new rollbar.Notification("notificationResource", {
        channel: "string",
        rules: [{
            trigger: "string",
            enabled: false,
            filters: [{
                type: "string",
                count: 0,
                operation: "string",
                path: "string",
                period: 0,
                value: "string",
            }],
        }],
        configs: [{
            channel: "string",
            environments: ["string"],
            format: "string",
            messageTemplate: "string",
            minItemLevel: "string",
            sendOnlyIfData: false,
            serviceKey: "string",
            showMessageButtons: false,
            summaryTime: 0,
            teams: ["string"],
            url: "string",
            users: ["string"],
        }],
        notificationId: "string",
    });
    
    type: rollbar:Notification
    properties:
        channel: string
        configs:
            - channel: string
              environments:
                - string
              format: string
              messageTemplate: string
              minItemLevel: string
              sendOnlyIfData: false
              serviceKey: string
              showMessageButtons: false
              summaryTime: 0
              teams:
                - string
              url: string
              users:
                - string
        notificationId: string
        rules:
            - enabled: false
              filters:
                - count: 0
                  operation: string
                  path: string
                  period: 0
                  type: string
                  value: string
              trigger: string
    

    Notification 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 Notification resource accepts the following input properties:

    Channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    Rules List<NotificationRule>
    An array of expression configurations for notification rules. Structure is documented below
    Configs List<NotificationConfig>
    An array of configurations for notification rules. Structure is documented below
    NotificationId string
    ID of the notification rule
    Channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    Rules []NotificationRuleArgs
    An array of expression configurations for notification rules. Structure is documented below
    Configs []NotificationConfigArgs
    An array of configurations for notification rules. Structure is documented below
    NotificationId string
    ID of the notification rule
    channel String
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    rules List<NotificationRule>
    An array of expression configurations for notification rules. Structure is documented below
    configs List<NotificationConfig>
    An array of configurations for notification rules. Structure is documented below
    notificationId String
    ID of the notification rule
    channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    rules NotificationRule[]
    An array of expression configurations for notification rules. Structure is documented below
    configs NotificationConfig[]
    An array of configurations for notification rules. Structure is documented below
    notificationId string
    ID of the notification rule
    channel str
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    rules Sequence[NotificationRuleArgs]
    An array of expression configurations for notification rules. Structure is documented below
    configs Sequence[NotificationConfigArgs]
    An array of configurations for notification rules. Structure is documented below
    notification_id str
    ID of the notification rule
    channel String
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    rules List<Property Map>
    An array of expression configurations for notification rules. Structure is documented below
    configs List<Property Map>
    An array of configurations for notification rules. Structure is documented below
    notificationId String
    ID of the notification rule

    Outputs

    All input properties are implicitly available as output properties. Additionally, the Notification 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 Notification Resource

    Get an existing Notification 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?: NotificationState, opts?: CustomResourceOptions): Notification
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channel: Optional[str] = None,
            configs: Optional[Sequence[NotificationConfigArgs]] = None,
            notification_id: Optional[str] = None,
            rules: Optional[Sequence[NotificationRuleArgs]] = None) -> Notification
    func GetNotification(ctx *Context, name string, id IDInput, state *NotificationState, opts ...ResourceOption) (*Notification, error)
    public static Notification Get(string name, Input<string> id, NotificationState? state, CustomResourceOptions? opts = null)
    public static Notification get(String name, Output<String> id, NotificationState state, CustomResourceOptions options)
    resources:  _:    type: rollbar:Notification    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:
    Channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    Configs List<NotificationConfig>
    An array of configurations for notification rules. Structure is documented below
    NotificationId string
    ID of the notification rule
    Rules List<NotificationRule>
    An array of expression configurations for notification rules. Structure is documented below
    Channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    Configs []NotificationConfigArgs
    An array of configurations for notification rules. Structure is documented below
    NotificationId string
    ID of the notification rule
    Rules []NotificationRuleArgs
    An array of expression configurations for notification rules. Structure is documented below
    channel String
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    configs List<NotificationConfig>
    An array of configurations for notification rules. Structure is documented below
    notificationId String
    ID of the notification rule
    rules List<NotificationRule>
    An array of expression configurations for notification rules. Structure is documented below
    channel string
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    configs NotificationConfig[]
    An array of configurations for notification rules. Structure is documented below
    notificationId string
    ID of the notification rule
    rules NotificationRule[]
    An array of expression configurations for notification rules. Structure is documented below
    channel str
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    configs Sequence[NotificationConfigArgs]
    An array of configurations for notification rules. Structure is documented below
    notification_id str
    ID of the notification rule
    rules Sequence[NotificationRuleArgs]
    An array of expression configurations for notification rules. Structure is documented below
    channel String
    The notification channel (eg. slack, pagerduty, email, webhook) to configure a notification rule(s) for
    configs List<Property Map>
    An array of configurations for notification rules. Structure is documented below
    notificationId String
    ID of the notification rule
    rules List<Property Map>
    An array of expression configurations for notification rules. Structure is documented below

    Supporting Types

    NotificationConfig, NotificationConfigArgs

    Channel string
    The Slack channel to post messages to.
    Environments List<string>
    Environments (email daily summary only)
    Format string
    The Webhook format (json or xml).
    MessageTemplate string
    A template for posting messages to a Slack channel.
    MinItemLevel string
    Min item level (email daily summary only)
    SendOnlyIfData bool
    Send only if data (email daily summary only)
    ServiceKey string
    The Pagerduty service API key.
    ShowMessageButtons bool
    Boolean value to toggle message buttons on/off in Slack.
    SummaryTime double
    Summary Time (email daily summary only)
    Teams List<string>
    A list of teams to notify.
    Url string
    The Webhook URL.
    Users List<string>
    A list of users to notify.
    Channel string
    The Slack channel to post messages to.
    Environments []string
    Environments (email daily summary only)
    Format string
    The Webhook format (json or xml).
    MessageTemplate string
    A template for posting messages to a Slack channel.
    MinItemLevel string
    Min item level (email daily summary only)
    SendOnlyIfData bool
    Send only if data (email daily summary only)
    ServiceKey string
    The Pagerduty service API key.
    ShowMessageButtons bool
    Boolean value to toggle message buttons on/off in Slack.
    SummaryTime float64
    Summary Time (email daily summary only)
    Teams []string
    A list of teams to notify.
    Url string
    The Webhook URL.
    Users []string
    A list of users to notify.
    channel String
    The Slack channel to post messages to.
    environments List<String>
    Environments (email daily summary only)
    format String
    The Webhook format (json or xml).
    messageTemplate String
    A template for posting messages to a Slack channel.
    minItemLevel String
    Min item level (email daily summary only)
    sendOnlyIfData Boolean
    Send only if data (email daily summary only)
    serviceKey String
    The Pagerduty service API key.
    showMessageButtons Boolean
    Boolean value to toggle message buttons on/off in Slack.
    summaryTime Double
    Summary Time (email daily summary only)
    teams List<String>
    A list of teams to notify.
    url String
    The Webhook URL.
    users List<String>
    A list of users to notify.
    channel string
    The Slack channel to post messages to.
    environments string[]
    Environments (email daily summary only)
    format string
    The Webhook format (json or xml).
    messageTemplate string
    A template for posting messages to a Slack channel.
    minItemLevel string
    Min item level (email daily summary only)
    sendOnlyIfData boolean
    Send only if data (email daily summary only)
    serviceKey string
    The Pagerduty service API key.
    showMessageButtons boolean
    Boolean value to toggle message buttons on/off in Slack.
    summaryTime number
    Summary Time (email daily summary only)
    teams string[]
    A list of teams to notify.
    url string
    The Webhook URL.
    users string[]
    A list of users to notify.
    channel str
    The Slack channel to post messages to.
    environments Sequence[str]
    Environments (email daily summary only)
    format str
    The Webhook format (json or xml).
    message_template str
    A template for posting messages to a Slack channel.
    min_item_level str
    Min item level (email daily summary only)
    send_only_if_data bool
    Send only if data (email daily summary only)
    service_key str
    The Pagerduty service API key.
    show_message_buttons bool
    Boolean value to toggle message buttons on/off in Slack.
    summary_time float
    Summary Time (email daily summary only)
    teams Sequence[str]
    A list of teams to notify.
    url str
    The Webhook URL.
    users Sequence[str]
    A list of users to notify.
    channel String
    The Slack channel to post messages to.
    environments List<String>
    Environments (email daily summary only)
    format String
    The Webhook format (json or xml).
    messageTemplate String
    A template for posting messages to a Slack channel.
    minItemLevel String
    Min item level (email daily summary only)
    sendOnlyIfData Boolean
    Send only if data (email daily summary only)
    serviceKey String
    The Pagerduty service API key.
    showMessageButtons Boolean
    Boolean value to toggle message buttons on/off in Slack.
    summaryTime Number
    Summary Time (email daily summary only)
    teams List<String>
    A list of teams to notify.
    url String
    The Webhook URL.
    users List<String>
    A list of users to notify.

    NotificationRule, NotificationRuleArgs

    Trigger string
    The category of trigger evaluations using the expressions defined in filters block(s).
    Enabled bool
    Boolean that enables the rule notification. The default value is true.
    Filters List<NotificationRuleFilter>
    One or more nested configuration blocks that define filter expressions. Structure is documented below
    Trigger string
    The category of trigger evaluations using the expressions defined in filters block(s).
    Enabled bool
    Boolean that enables the rule notification. The default value is true.
    Filters []NotificationRuleFilter
    One or more nested configuration blocks that define filter expressions. Structure is documented below
    trigger String
    The category of trigger evaluations using the expressions defined in filters block(s).
    enabled Boolean
    Boolean that enables the rule notification. The default value is true.
    filters List<NotificationRuleFilter>
    One or more nested configuration blocks that define filter expressions. Structure is documented below
    trigger string
    The category of trigger evaluations using the expressions defined in filters block(s).
    enabled boolean
    Boolean that enables the rule notification. The default value is true.
    filters NotificationRuleFilter[]
    One or more nested configuration blocks that define filter expressions. Structure is documented below
    trigger str
    The category of trigger evaluations using the expressions defined in filters block(s).
    enabled bool
    Boolean that enables the rule notification. The default value is true.
    filters Sequence[NotificationRuleFilter]
    One or more nested configuration blocks that define filter expressions. Structure is documented below
    trigger String
    The category of trigger evaluations using the expressions defined in filters block(s).
    enabled Boolean
    Boolean that enables the rule notification. The default value is true.
    filters List<Property Map>
    One or more nested configuration blocks that define filter expressions. Structure is documented below

    NotificationRuleFilter, NotificationRuleFilterArgs

    Type string
    The type of filter expression.
    Count double
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    Operation string
    The comparator used in the expression evalution for the filter.
    Path string
    json path (body.field1.field2)
    Period double
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    Value string
    The value to compare the triggering metric against.
    Type string
    The type of filter expression.
    Count float64
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    Operation string
    The comparator used in the expression evalution for the filter.
    Path string
    json path (body.field1.field2)
    Period float64
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    Value string
    The value to compare the triggering metric against.
    type String
    The type of filter expression.
    count Double
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    operation String
    The comparator used in the expression evalution for the filter.
    path String
    json path (body.field1.field2)
    period Double
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    value String
    The value to compare the triggering metric against.
    type string
    The type of filter expression.
    count number
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    operation string
    The comparator used in the expression evalution for the filter.
    path string
    json path (body.field1.field2)
    period number
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    value string
    The value to compare the triggering metric against.
    type str
    The type of filter expression.
    count float
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    operation str
    The comparator used in the expression evalution for the filter.
    path str
    json path (body.field1.field2)
    period float
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    value str
    The value to compare the triggering metric against.
    type String
    The type of filter expression.
    count Number
    The number of distinct items or occurrences used as a threshold for the filter evaluation.
    operation String
    The comparator used in the expression evalution for the filter.
    path String
    json path (body.field1.field2)
    period Number
    The period of time in seconds. Allowed values 300, 1800, 3600, 86400, 60.
    value String
    The value to compare the triggering metric against.

    Import


    Projects can be imported using the notification channel and ID separated by a comma, e.g.

    $ pulumi import rollbar:index/notification:Notification foo email,857623
    

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

    Package Details

    Repository
    rollbar rollbar/terraform-provider-rollbar
    License
    Notes
    This Pulumi package is based on the rollbar Terraform Provider.
    rollbar logo
    rollbar 1.16.0 published on Wednesday, Apr 30, 2025 by rollbar