1. Packages
  2. Logdna Provider
  3. API Docs
  4. IndexRateAlert
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

logdna.IndexRateAlert

Explore with Pulumi AI

logdna logo
logdna 1.16.0 published on Monday, Apr 14, 2025 by logdna

    # Resource: logdna.IndexRateAlert

    Manages LogDNA Index Rate Alert. Configuring alerts based on the index rate or retention and storage rate of your log data helps you track unusual behavior in your systems. For example, if there’s a sudden spike in volume, Mezmo’s Index Rate Alert feature tells you which applications or sources produced the data spike. It also shows any recently added sources. Index rate alerts can also help managers who are responsible for budgets to analyze and predict storage costs.

    To get started, all you need to do is to specify a configuration and one of our currently supported alerts recipients: email, Slack, or PagerDuty.

    Be aware that only one index rate alert configuration is allowed per account

    Example - Index Rate Alert

    import * as pulumi from "@pulumi/pulumi";
    import * as logdna from "@pulumi/logdna";
    
    const config = new logdna.IndexRateAlert("config", {
        maxLines: 3,
        maxZScore: 3,
        thresholdAlert: "separate",
        frequency: "hourly",
        enabled: true,
        channels: [{
            emails: ["test@test.com"],
            slacks: ["https://slack_url/key"],
            pagerduties: ["service_key"],
        }],
        webhookChannels: [{
            url: "https:/testurl.com",
            method: "POST",
            headers: {
                header1: "value1",
            },
            bodytemplate: JSON.stringify({
                something: "something",
            }),
        }],
    });
    
    import pulumi
    import json
    import pulumi_logdna as logdna
    
    config = logdna.IndexRateAlert("config",
        max_lines=3,
        max_z_score=3,
        threshold_alert="separate",
        frequency="hourly",
        enabled=True,
        channels=[{
            "emails": ["test@test.com"],
            "slacks": ["https://slack_url/key"],
            "pagerduties": ["service_key"],
        }],
        webhook_channels=[{
            "url": "https:/testurl.com",
            "method": "POST",
            "headers": {
                "header1": "value1",
            },
            "bodytemplate": json.dumps({
                "something": "something",
            }),
        }])
    
    package main
    
    import (
    	"encoding/json"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/logdna/logdna"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		tmpJSON0, err := json.Marshal(map[string]interface{}{
    			"something": "something",
    		})
    		if err != nil {
    			return err
    		}
    		json0 := string(tmpJSON0)
    		_, err = logdna.NewIndexRateAlert(ctx, "config", &logdna.IndexRateAlertArgs{
    			MaxLines:       pulumi.Float64(3),
    			MaxZScore:      pulumi.Float64(3),
    			ThresholdAlert: pulumi.String("separate"),
    			Frequency:      pulumi.String("hourly"),
    			Enabled:        pulumi.Bool(true),
    			Channels: logdna.IndexRateAlertChannelArray{
    				&logdna.IndexRateAlertChannelArgs{
    					Emails: pulumi.StringArray{
    						pulumi.String("test@test.com"),
    					},
    					Slacks: pulumi.StringArray{
    						pulumi.String("https://slack_url/key"),
    					},
    					Pagerduties: pulumi.StringArray{
    						pulumi.String("service_key"),
    					},
    				},
    			},
    			WebhookChannels: logdna.IndexRateAlertWebhookChannelArray{
    				&logdna.IndexRateAlertWebhookChannelArgs{
    					Url:    pulumi.String("https:/testurl.com"),
    					Method: pulumi.String("POST"),
    					Headers: pulumi.StringMap{
    						"header1": pulumi.String("value1"),
    					},
    					Bodytemplate: pulumi.String(json0),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using System.Text.Json;
    using Pulumi;
    using Logdna = Pulumi.Logdna;
    
    return await Deployment.RunAsync(() => 
    {
        var config = new Logdna.IndexRateAlert("config", new()
        {
            MaxLines = 3,
            MaxZScore = 3,
            ThresholdAlert = "separate",
            Frequency = "hourly",
            Enabled = true,
            Channels = new[]
            {
                new Logdna.Inputs.IndexRateAlertChannelArgs
                {
                    Emails = new[]
                    {
                        "test@test.com",
                    },
                    Slacks = new[]
                    {
                        "https://slack_url/key",
                    },
                    Pagerduties = new[]
                    {
                        "service_key",
                    },
                },
            },
            WebhookChannels = new[]
            {
                new Logdna.Inputs.IndexRateAlertWebhookChannelArgs
                {
                    Url = "https:/testurl.com",
                    Method = "POST",
                    Headers = 
                    {
                        { "header1", "value1" },
                    },
                    Bodytemplate = JsonSerializer.Serialize(new Dictionary<string, object?>
                    {
                        ["something"] = "something",
                    }),
                },
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.logdna.IndexRateAlert;
    import com.pulumi.logdna.IndexRateAlertArgs;
    import com.pulumi.logdna.inputs.IndexRateAlertChannelArgs;
    import com.pulumi.logdna.inputs.IndexRateAlertWebhookChannelArgs;
    import static com.pulumi.codegen.internal.Serialization.*;
    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) {
            var config = new IndexRateAlert("config", IndexRateAlertArgs.builder()
                .maxLines(3)
                .maxZScore(3)
                .thresholdAlert("separate")
                .frequency("hourly")
                .enabled(true)
                .channels(IndexRateAlertChannelArgs.builder()
                    .emails("test@test.com")
                    .slacks("https://slack_url/key")
                    .pagerduties("service_key")
                    .build())
                .webhookChannels(IndexRateAlertWebhookChannelArgs.builder()
                    .url("https:/testurl.com")
                    .method("POST")
                    .headers(Map.of("header1", "value1"))
                    .bodytemplate(serializeJson(
                        jsonObject(
                            jsonProperty("something", "something")
                        )))
                    .build())
                .build());
    
        }
    }
    
    resources:
      config:
        type: logdna:IndexRateAlert
        properties:
          maxLines: 3
          maxZScore: 3
          thresholdAlert: separate
          frequency: hourly
          enabled: true
          channels:
            - emails:
                - test@test.com
              slacks:
                - https://slack_url/key
              pagerduties:
                - service_key
          webhookChannels:
            - url: https:/testurl.com
              method: POST
              headers:
                header1: value1
              bodytemplate:
                fn::toJSON:
                  something: something
    

    Destroy

    There is not a DELETE endpoint supported by the Index Rate Alert API. For this reason, removing the Index Rate Alert Config effectively disables it. (set enabled to false in DB)

    Create IndexRateAlert Resource

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

    Constructor syntax

    new IndexRateAlert(name: string, args: IndexRateAlertArgs, opts?: CustomResourceOptions);
    @overload
    def IndexRateAlert(resource_name: str,
                       args: IndexRateAlertArgs,
                       opts: Optional[ResourceOptions] = None)
    
    @overload
    def IndexRateAlert(resource_name: str,
                       opts: Optional[ResourceOptions] = None,
                       enabled: Optional[bool] = None,
                       frequency: Optional[str] = None,
                       threshold_alert: Optional[str] = None,
                       channels: Optional[Sequence[IndexRateAlertChannelArgs]] = None,
                       index_rate_alert_id: Optional[str] = None,
                       max_lines: Optional[float] = None,
                       max_z_score: Optional[float] = None,
                       webhook_channels: Optional[Sequence[IndexRateAlertWebhookChannelArgs]] = None)
    func NewIndexRateAlert(ctx *Context, name string, args IndexRateAlertArgs, opts ...ResourceOption) (*IndexRateAlert, error)
    public IndexRateAlert(string name, IndexRateAlertArgs args, CustomResourceOptions? opts = null)
    public IndexRateAlert(String name, IndexRateAlertArgs args)
    public IndexRateAlert(String name, IndexRateAlertArgs args, CustomResourceOptions options)
    
    type: logdna:IndexRateAlert
    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 IndexRateAlertArgs
    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 IndexRateAlertArgs
    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 IndexRateAlertArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args IndexRateAlertArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args IndexRateAlertArgs
    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 indexRateAlertResource = new Logdna.IndexRateAlert("indexRateAlertResource", new()
    {
        Enabled = false,
        Frequency = "string",
        ThresholdAlert = "string",
        Channels = new[]
        {
            new Logdna.Inputs.IndexRateAlertChannelArgs
            {
                Emails = new[]
                {
                    "string",
                },
                Pagerduties = new[]
                {
                    "string",
                },
                Slacks = new[]
                {
                    "string",
                },
            },
        },
        IndexRateAlertId = "string",
        MaxLines = 0,
        MaxZScore = 0,
        WebhookChannels = new[]
        {
            new Logdna.Inputs.IndexRateAlertWebhookChannelArgs
            {
                Method = "string",
                Url = "string",
                Bodytemplate = "string",
                Headers = 
                {
                    { "string", "string" },
                },
            },
        },
    });
    
    example, err := logdna.NewIndexRateAlert(ctx, "indexRateAlertResource", &logdna.IndexRateAlertArgs{
    	Enabled:        pulumi.Bool(false),
    	Frequency:      pulumi.String("string"),
    	ThresholdAlert: pulumi.String("string"),
    	Channels: logdna.IndexRateAlertChannelArray{
    		&logdna.IndexRateAlertChannelArgs{
    			Emails: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Pagerduties: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    			Slacks: pulumi.StringArray{
    				pulumi.String("string"),
    			},
    		},
    	},
    	IndexRateAlertId: pulumi.String("string"),
    	MaxLines:         pulumi.Float64(0),
    	MaxZScore:        pulumi.Float64(0),
    	WebhookChannels: logdna.IndexRateAlertWebhookChannelArray{
    		&logdna.IndexRateAlertWebhookChannelArgs{
    			Method:       pulumi.String("string"),
    			Url:          pulumi.String("string"),
    			Bodytemplate: pulumi.String("string"),
    			Headers: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var indexRateAlertResource = new IndexRateAlert("indexRateAlertResource", IndexRateAlertArgs.builder()
        .enabled(false)
        .frequency("string")
        .thresholdAlert("string")
        .channels(IndexRateAlertChannelArgs.builder()
            .emails("string")
            .pagerduties("string")
            .slacks("string")
            .build())
        .indexRateAlertId("string")
        .maxLines(0)
        .maxZScore(0)
        .webhookChannels(IndexRateAlertWebhookChannelArgs.builder()
            .method("string")
            .url("string")
            .bodytemplate("string")
            .headers(Map.of("string", "string"))
            .build())
        .build());
    
    index_rate_alert_resource = logdna.IndexRateAlert("indexRateAlertResource",
        enabled=False,
        frequency="string",
        threshold_alert="string",
        channels=[{
            "emails": ["string"],
            "pagerduties": ["string"],
            "slacks": ["string"],
        }],
        index_rate_alert_id="string",
        max_lines=0,
        max_z_score=0,
        webhook_channels=[{
            "method": "string",
            "url": "string",
            "bodytemplate": "string",
            "headers": {
                "string": "string",
            },
        }])
    
    const indexRateAlertResource = new logdna.IndexRateAlert("indexRateAlertResource", {
        enabled: false,
        frequency: "string",
        thresholdAlert: "string",
        channels: [{
            emails: ["string"],
            pagerduties: ["string"],
            slacks: ["string"],
        }],
        indexRateAlertId: "string",
        maxLines: 0,
        maxZScore: 0,
        webhookChannels: [{
            method: "string",
            url: "string",
            bodytemplate: "string",
            headers: {
                string: "string",
            },
        }],
    });
    
    type: logdna:IndexRateAlert
    properties:
        channels:
            - emails:
                - string
              pagerduties:
                - string
              slacks:
                - string
        enabled: false
        frequency: string
        indexRateAlertId: string
        maxLines: 0
        maxZScore: 0
        thresholdAlert: string
        webhookChannels:
            - bodytemplate: string
              headers:
                string: string
              method: string
              url: string
    

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

    Enabled bool
    Enable an existing configuration, type boolean
    Frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    ThresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    Channels List<IndexRateAlertChannel>
    IndexRateAlertId string
    MaxLines double
    The number of lines required in order to set off the alert, type number
    MaxZScore double
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    WebhookChannels List<IndexRateAlertWebhookChannel>
    Enabled bool
    Enable an existing configuration, type boolean
    Frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    ThresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    Channels []IndexRateAlertChannelArgs
    IndexRateAlertId string
    MaxLines float64
    The number of lines required in order to set off the alert, type number
    MaxZScore float64
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    WebhookChannels []IndexRateAlertWebhookChannelArgs
    enabled Boolean
    Enable an existing configuration, type boolean
    frequency String
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    thresholdAlert String
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    channels List<IndexRateAlertChannel>
    indexRateAlertId String
    maxLines Double
    The number of lines required in order to set off the alert, type number
    maxZScore Double
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    webhookChannels List<IndexRateAlertWebhookChannel>
    enabled boolean
    Enable an existing configuration, type boolean
    frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    thresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    channels IndexRateAlertChannel[]
    indexRateAlertId string
    maxLines number
    The number of lines required in order to set off the alert, type number
    maxZScore number
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    webhookChannels IndexRateAlertWebhookChannel[]
    enabled bool
    Enable an existing configuration, type boolean
    frequency str
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    threshold_alert str
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    channels Sequence[IndexRateAlertChannelArgs]
    index_rate_alert_id str
    max_lines float
    The number of lines required in order to set off the alert, type number
    max_z_score float
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    webhook_channels Sequence[IndexRateAlertWebhookChannelArgs]
    enabled Boolean
    Enable an existing configuration, type boolean
    frequency String
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    thresholdAlert String
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    channels List<Property Map>
    indexRateAlertId String
    maxLines Number
    The number of lines required in order to set off the alert, type number
    maxZScore Number
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    webhookChannels List<Property Map>

    Outputs

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

    Get an existing IndexRateAlert 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?: IndexRateAlertState, opts?: CustomResourceOptions): IndexRateAlert
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            channels: Optional[Sequence[IndexRateAlertChannelArgs]] = None,
            enabled: Optional[bool] = None,
            frequency: Optional[str] = None,
            index_rate_alert_id: Optional[str] = None,
            max_lines: Optional[float] = None,
            max_z_score: Optional[float] = None,
            threshold_alert: Optional[str] = None,
            webhook_channels: Optional[Sequence[IndexRateAlertWebhookChannelArgs]] = None) -> IndexRateAlert
    func GetIndexRateAlert(ctx *Context, name string, id IDInput, state *IndexRateAlertState, opts ...ResourceOption) (*IndexRateAlert, error)
    public static IndexRateAlert Get(string name, Input<string> id, IndexRateAlertState? state, CustomResourceOptions? opts = null)
    public static IndexRateAlert get(String name, Output<String> id, IndexRateAlertState state, CustomResourceOptions options)
    resources:  _:    type: logdna:IndexRateAlert    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:
    Channels List<IndexRateAlertChannel>
    Enabled bool
    Enable an existing configuration, type boolean
    Frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    IndexRateAlertId string
    MaxLines double
    The number of lines required in order to set off the alert, type number
    MaxZScore double
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    ThresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    WebhookChannels List<IndexRateAlertWebhookChannel>
    Channels []IndexRateAlertChannelArgs
    Enabled bool
    Enable an existing configuration, type boolean
    Frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    IndexRateAlertId string
    MaxLines float64
    The number of lines required in order to set off the alert, type number
    MaxZScore float64
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    ThresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    WebhookChannels []IndexRateAlertWebhookChannelArgs
    channels List<IndexRateAlertChannel>
    enabled Boolean
    Enable an existing configuration, type boolean
    frequency String
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    indexRateAlertId String
    maxLines Double
    The number of lines required in order to set off the alert, type number
    maxZScore Double
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    thresholdAlert String
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    webhookChannels List<IndexRateAlertWebhookChannel>
    channels IndexRateAlertChannel[]
    enabled boolean
    Enable an existing configuration, type boolean
    frequency string
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    indexRateAlertId string
    maxLines number
    The number of lines required in order to set off the alert, type number
    maxZScore number
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    thresholdAlert string
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    webhookChannels IndexRateAlertWebhookChannel[]
    channels Sequence[IndexRateAlertChannelArgs]
    enabled bool
    Enable an existing configuration, type boolean
    frequency str
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    index_rate_alert_id str
    max_lines float
    The number of lines required in order to set off the alert, type number
    max_z_score float
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    threshold_alert str
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    webhook_channels Sequence[IndexRateAlertWebhookChannelArgs]
    channels List<Property Map>
    enabled Boolean
    Enable an existing configuration, type boolean
    frequency String
    Notify recipients once per hour or once per day (starting from the first passing of the threshold) until the index rate declines back below the thresholds, ceasing all alerts., type string ["hourly" | "daily"]
    indexRateAlertId String
    maxLines Number
    The number of lines required in order to set off the alert, type number
    maxZScore Number
    The number of standard deviations above the 30-day average lines in order to set off the alert, type number
    thresholdAlert String
    Set if you want alerts to be triggered if one or both of the max lines and standard deviation have been triggered or individually, type string ["separate" | "both"]
    webhookChannels List<Property Map>

    Supporting Types

    IndexRateAlertChannel, IndexRateAlertChannelArgs

    Emails List<string>
    []string An array of email addresses (strings) to notify
    Pagerduties List<string>
    []string An array of pagerduty service integration keys (strings) to notify
    Slacks List<string>
    []string An array of slack hook urls (strings) to notify
    Emails []string
    []string An array of email addresses (strings) to notify
    Pagerduties []string
    []string An array of pagerduty service integration keys (strings) to notify
    Slacks []string
    []string An array of slack hook urls (strings) to notify
    emails List<String>
    []string An array of email addresses (strings) to notify
    pagerduties List<String>
    []string An array of pagerduty service integration keys (strings) to notify
    slacks List<String>
    []string An array of slack hook urls (strings) to notify
    emails string[]
    []string An array of email addresses (strings) to notify
    pagerduties string[]
    []string An array of pagerduty service integration keys (strings) to notify
    slacks string[]
    []string An array of slack hook urls (strings) to notify
    emails Sequence[str]
    []string An array of email addresses (strings) to notify
    pagerduties Sequence[str]
    []string An array of pagerduty service integration keys (strings) to notify
    slacks Sequence[str]
    []string An array of slack hook urls (strings) to notify
    emails List<String>
    []string An array of email addresses (strings) to notify
    pagerduties List<String>
    []string An array of pagerduty service integration keys (strings) to notify
    slacks List<String>
    []string An array of slack hook urls (strings) to notify

    IndexRateAlertWebhookChannel, IndexRateAlertWebhookChannelArgs

    Method string
    Url string
    Bodytemplate string
    Headers Dictionary<string, string>
    Method string
    Url string
    Bodytemplate string
    Headers map[string]string
    method String
    url String
    bodytemplate String
    headers Map<String,String>
    method string
    url string
    bodytemplate string
    headers {[key: string]: string}
    method str
    url str
    bodytemplate str
    headers Mapping[str, str]
    method String
    url String
    bodytemplate String
    headers Map<String>

    Import

    Index Rate Alert can be imported by static ID “config”, which can be found using the Get Index Rate Alert API:

    1. Custom HTTP Headers - servicekey: <SERVICE_KEY> or apikey: <SERVICE_KEY>

    curl –request GET \

     --url <API_URL>/v1/config/index-rate \
    
     --header 'Accept: application/json' \
    
     --header 'servicekey: <SERVICE_KEY>'
    
    1. Basic Auth - Authorization: Basic <encodeInBase64(credentials)>.

    Credentials is a string formatted as <username>:<password>. Our usage here entails substituting <SERVICE_KEY> as the username and leaving the password blank. The colon separator should still be included in the resulting string <SERVICE_KEY>:

    curl –request GET \

     --url <API_URL>/v1/config/index-rate \
    
     --header 'Accept: application/json' \
    
     --header 'Authorization: Basic <BASE_64_ENCODED_CREDENTIALS>'
    
    $ pulumi import logdna:index/indexRateAlert:IndexRateAlert config config
    

    Note that only the alert channels supported by this provider will be imported.

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

    Package Details

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