mongodbatlas.getAlertConfiguration
Explore with Pulumi AI
# Data Source: mongodbatlas.AlertConfiguration
mongodbatlas.AlertConfiguration describes an Alert Configuration.
NOTE: Groups and projects are synonymous terms. You may find group_id in the official documentation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
    projectId: "<PROJECT-ID>",
    eventType: "OUTSIDE_METRIC_THRESHOLD",
    enabled: true,
    notifications: [{
        typeName: "GROUP",
        intervalMin: 5,
        delayMin: 0,
        smsEnabled: false,
        emailEnabled: true,
    }],
    matchers: [{
        fieldName: "HOSTNAME_AND_PORT",
        operator: "EQUALS",
        value: "SECONDARY",
    }],
    metricThresholdConfig: {
        metricName: "ASSERT_REGULAR",
        operator: "LESS_THAN",
        threshold: 99,
        units: "RAW",
        mode: "AVERAGE",
    },
});
const test = mongodbatlas.getAlertConfigurationOutput({
    projectId: testAlertConfiguration.projectId,
    alertConfigurationId: testAlertConfiguration.alertConfigurationId,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_alert_configuration = mongodbatlas.AlertConfiguration("test",
    project_id="<PROJECT-ID>",
    event_type="OUTSIDE_METRIC_THRESHOLD",
    enabled=True,
    notifications=[{
        "type_name": "GROUP",
        "interval_min": 5,
        "delay_min": 0,
        "sms_enabled": False,
        "email_enabled": True,
    }],
    matchers=[{
        "field_name": "HOSTNAME_AND_PORT",
        "operator": "EQUALS",
        "value": "SECONDARY",
    }],
    metric_threshold_config={
        "metric_name": "ASSERT_REGULAR",
        "operator": "LESS_THAN",
        "threshold": 99,
        "units": "RAW",
        "mode": "AVERAGE",
    })
test = mongodbatlas.get_alert_configuration_output(project_id=test_alert_configuration.project_id,
    alert_configuration_id=test_alert_configuration.alert_configuration_id)
package main
import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testAlertConfiguration, err := mongodbatlas.NewAlertConfiguration(ctx, "test", &mongodbatlas.AlertConfigurationArgs{
			ProjectId: pulumi.String("<PROJECT-ID>"),
			EventType: pulumi.String("OUTSIDE_METRIC_THRESHOLD"),
			Enabled:   pulumi.Bool(true),
			Notifications: mongodbatlas.AlertConfigurationNotificationArray{
				&mongodbatlas.AlertConfigurationNotificationArgs{
					TypeName:     pulumi.String("GROUP"),
					IntervalMin:  pulumi.Int(5),
					DelayMin:     pulumi.Int(0),
					SmsEnabled:   pulumi.Bool(false),
					EmailEnabled: pulumi.Bool(true),
				},
			},
			Matchers: mongodbatlas.AlertConfigurationMatcherArray{
				&mongodbatlas.AlertConfigurationMatcherArgs{
					FieldName: pulumi.String("HOSTNAME_AND_PORT"),
					Operator:  pulumi.String("EQUALS"),
					Value:     pulumi.String("SECONDARY"),
				},
			},
			MetricThresholdConfig: &mongodbatlas.AlertConfigurationMetricThresholdConfigArgs{
				MetricName: pulumi.String("ASSERT_REGULAR"),
				Operator:   pulumi.String("LESS_THAN"),
				Threshold:  pulumi.Float64(99),
				Units:      pulumi.String("RAW"),
				Mode:       pulumi.String("AVERAGE"),
			},
		})
		if err != nil {
			return err
		}
		_ = mongodbatlas.LookupAlertConfigurationOutput(ctx, mongodbatlas.GetAlertConfigurationOutputArgs{
			ProjectId:            testAlertConfiguration.ProjectId,
			AlertConfigurationId: testAlertConfiguration.AlertConfigurationId,
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() => 
{
    var testAlertConfiguration = new Mongodbatlas.AlertConfiguration("test", new()
    {
        ProjectId = "<PROJECT-ID>",
        EventType = "OUTSIDE_METRIC_THRESHOLD",
        Enabled = true,
        Notifications = new[]
        {
            new Mongodbatlas.Inputs.AlertConfigurationNotificationArgs
            {
                TypeName = "GROUP",
                IntervalMin = 5,
                DelayMin = 0,
                SmsEnabled = false,
                EmailEnabled = true,
            },
        },
        Matchers = new[]
        {
            new Mongodbatlas.Inputs.AlertConfigurationMatcherArgs
            {
                FieldName = "HOSTNAME_AND_PORT",
                Operator = "EQUALS",
                Value = "SECONDARY",
            },
        },
        MetricThresholdConfig = new Mongodbatlas.Inputs.AlertConfigurationMetricThresholdConfigArgs
        {
            MetricName = "ASSERT_REGULAR",
            Operator = "LESS_THAN",
            Threshold = 99,
            Units = "RAW",
            Mode = "AVERAGE",
        },
    });
    var test = Mongodbatlas.GetAlertConfiguration.Invoke(new()
    {
        ProjectId = testAlertConfiguration.ProjectId,
        AlertConfigurationId = testAlertConfiguration.AlertConfigurationId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AlertConfiguration;
import com.pulumi.mongodbatlas.AlertConfigurationArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationNotificationArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationMatcherArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationMetricThresholdConfigArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationArgs;
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 testAlertConfiguration = new AlertConfiguration("testAlertConfiguration", AlertConfigurationArgs.builder()
            .projectId("<PROJECT-ID>")
            .eventType("OUTSIDE_METRIC_THRESHOLD")
            .enabled(true)
            .notifications(AlertConfigurationNotificationArgs.builder()
                .typeName("GROUP")
                .intervalMin(5)
                .delayMin(0)
                .smsEnabled(false)
                .emailEnabled(true)
                .build())
            .matchers(AlertConfigurationMatcherArgs.builder()
                .fieldName("HOSTNAME_AND_PORT")
                .operator("EQUALS")
                .value("SECONDARY")
                .build())
            .metricThresholdConfig(AlertConfigurationMetricThresholdConfigArgs.builder()
                .metricName("ASSERT_REGULAR")
                .operator("LESS_THAN")
                .threshold(99)
                .units("RAW")
                .mode("AVERAGE")
                .build())
            .build());
        final var test = MongodbatlasFunctions.getAlertConfiguration(GetAlertConfigurationArgs.builder()
            .projectId(testAlertConfiguration.projectId())
            .alertConfigurationId(testAlertConfiguration.alertConfigurationId())
            .build());
    }
}
resources:
  testAlertConfiguration:
    type: mongodbatlas:AlertConfiguration
    name: test
    properties:
      projectId: <PROJECT-ID>
      eventType: OUTSIDE_METRIC_THRESHOLD
      enabled: true
      notifications:
        - typeName: GROUP
          intervalMin: 5
          delayMin: 0
          smsEnabled: false
          emailEnabled: true
      matchers:
        - fieldName: HOSTNAME_AND_PORT
          operator: EQUALS
          value: SECONDARY
      metricThresholdConfig:
        metricName: ASSERT_REGULAR
        operator: LESS_THAN
        threshold: 99
        units: RAW
        mode: AVERAGE
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getAlertConfiguration
      arguments:
        projectId: ${testAlertConfiguration.projectId}
        alertConfigurationId: ${testAlertConfiguration.alertConfigurationId}
NOTE: In order to allow for a fast pace of change to alert variables some validations have been removed from this resource in order to unblock alert creation. Impacted areas have links to the MongoDB Atlas API documentation so always check it for the most current information: https://docs.atlas.mongodb.com/reference/api/alert-configurations-create-config/
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const testAlertConfiguration = new mongodbatlas.AlertConfiguration("test", {
    projectId: "<PROJECT-ID>",
    eventType: "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
    enabled: true,
    notifications: [{
        typeName: "GROUP",
        intervalMin: 5,
        delayMin: 0,
        smsEnabled: false,
        emailEnabled: true,
        roles: ["GROUP_CLUSTER_MANAGER"],
    }],
    matchers: [{
        fieldName: "HOSTNAME_AND_PORT",
        operator: "EQUALS",
        value: "SECONDARY",
    }],
    thresholdConfig: {
        operator: "LESS_THAN",
        threshold: 1,
        units: "HOURS",
    },
});
const test = mongodbatlas.getAlertConfigurationOutput({
    projectId: testAlertConfiguration.projectId,
    alertConfigurationId: testAlertConfiguration.alertConfigurationId,
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test_alert_configuration = mongodbatlas.AlertConfiguration("test",
    project_id="<PROJECT-ID>",
    event_type="REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
    enabled=True,
    notifications=[{
        "type_name": "GROUP",
        "interval_min": 5,
        "delay_min": 0,
        "sms_enabled": False,
        "email_enabled": True,
        "roles": ["GROUP_CLUSTER_MANAGER"],
    }],
    matchers=[{
        "field_name": "HOSTNAME_AND_PORT",
        "operator": "EQUALS",
        "value": "SECONDARY",
    }],
    threshold_config={
        "operator": "LESS_THAN",
        "threshold": 1,
        "units": "HOURS",
    })
test = mongodbatlas.get_alert_configuration_output(project_id=test_alert_configuration.project_id,
    alert_configuration_id=test_alert_configuration.alert_configuration_id)
package main
import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		testAlertConfiguration, err := mongodbatlas.NewAlertConfiguration(ctx, "test", &mongodbatlas.AlertConfigurationArgs{
			ProjectId: pulumi.String("<PROJECT-ID>"),
			EventType: pulumi.String("REPLICATION_OPLOG_WINDOW_RUNNING_OUT"),
			Enabled:   pulumi.Bool(true),
			Notifications: mongodbatlas.AlertConfigurationNotificationArray{
				&mongodbatlas.AlertConfigurationNotificationArgs{
					TypeName:     pulumi.String("GROUP"),
					IntervalMin:  pulumi.Int(5),
					DelayMin:     pulumi.Int(0),
					SmsEnabled:   pulumi.Bool(false),
					EmailEnabled: pulumi.Bool(true),
					Roles: pulumi.StringArray{
						pulumi.String("GROUP_CLUSTER_MANAGER"),
					},
				},
			},
			Matchers: mongodbatlas.AlertConfigurationMatcherArray{
				&mongodbatlas.AlertConfigurationMatcherArgs{
					FieldName: pulumi.String("HOSTNAME_AND_PORT"),
					Operator:  pulumi.String("EQUALS"),
					Value:     pulumi.String("SECONDARY"),
				},
			},
			ThresholdConfig: &mongodbatlas.AlertConfigurationThresholdConfigArgs{
				Operator:  pulumi.String("LESS_THAN"),
				Threshold: pulumi.Float64(1),
				Units:     pulumi.String("HOURS"),
			},
		})
		if err != nil {
			return err
		}
		_ = mongodbatlas.LookupAlertConfigurationOutput(ctx, mongodbatlas.GetAlertConfigurationOutputArgs{
			ProjectId:            testAlertConfiguration.ProjectId,
			AlertConfigurationId: testAlertConfiguration.AlertConfigurationId,
		}, nil)
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() => 
{
    var testAlertConfiguration = new Mongodbatlas.AlertConfiguration("test", new()
    {
        ProjectId = "<PROJECT-ID>",
        EventType = "REPLICATION_OPLOG_WINDOW_RUNNING_OUT",
        Enabled = true,
        Notifications = new[]
        {
            new Mongodbatlas.Inputs.AlertConfigurationNotificationArgs
            {
                TypeName = "GROUP",
                IntervalMin = 5,
                DelayMin = 0,
                SmsEnabled = false,
                EmailEnabled = true,
                Roles = new[]
                {
                    "GROUP_CLUSTER_MANAGER",
                },
            },
        },
        Matchers = new[]
        {
            new Mongodbatlas.Inputs.AlertConfigurationMatcherArgs
            {
                FieldName = "HOSTNAME_AND_PORT",
                Operator = "EQUALS",
                Value = "SECONDARY",
            },
        },
        ThresholdConfig = new Mongodbatlas.Inputs.AlertConfigurationThresholdConfigArgs
        {
            Operator = "LESS_THAN",
            Threshold = 1,
            Units = "HOURS",
        },
    });
    var test = Mongodbatlas.GetAlertConfiguration.Invoke(new()
    {
        ProjectId = testAlertConfiguration.ProjectId,
        AlertConfigurationId = testAlertConfiguration.AlertConfigurationId,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.AlertConfiguration;
import com.pulumi.mongodbatlas.AlertConfigurationArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationNotificationArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationMatcherArgs;
import com.pulumi.mongodbatlas.inputs.AlertConfigurationThresholdConfigArgs;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationArgs;
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 testAlertConfiguration = new AlertConfiguration("testAlertConfiguration", AlertConfigurationArgs.builder()
            .projectId("<PROJECT-ID>")
            .eventType("REPLICATION_OPLOG_WINDOW_RUNNING_OUT")
            .enabled(true)
            .notifications(AlertConfigurationNotificationArgs.builder()
                .typeName("GROUP")
                .intervalMin(5)
                .delayMin(0)
                .smsEnabled(false)
                .emailEnabled(true)
                .roles("GROUP_CLUSTER_MANAGER")
                .build())
            .matchers(AlertConfigurationMatcherArgs.builder()
                .fieldName("HOSTNAME_AND_PORT")
                .operator("EQUALS")
                .value("SECONDARY")
                .build())
            .thresholdConfig(AlertConfigurationThresholdConfigArgs.builder()
                .operator("LESS_THAN")
                .threshold(1)
                .units("HOURS")
                .build())
            .build());
        final var test = MongodbatlasFunctions.getAlertConfiguration(GetAlertConfigurationArgs.builder()
            .projectId(testAlertConfiguration.projectId())
            .alertConfigurationId(testAlertConfiguration.alertConfigurationId())
            .build());
    }
}
resources:
  testAlertConfiguration:
    type: mongodbatlas:AlertConfiguration
    name: test
    properties:
      projectId: <PROJECT-ID>
      eventType: REPLICATION_OPLOG_WINDOW_RUNNING_OUT
      enabled: true
      notifications:
        - typeName: GROUP
          intervalMin: 5
          delayMin: 0
          smsEnabled: false
          emailEnabled: true
          roles:
            - GROUP_CLUSTER_MANAGER
      matchers:
        - fieldName: HOSTNAME_AND_PORT
          operator: EQUALS
          value: SECONDARY
      thresholdConfig:
        operator: LESS_THAN
        threshold: 1
        units: HOURS
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getAlertConfiguration
      arguments:
        projectId: ${testAlertConfiguration.projectId}
        alertConfigurationId: ${testAlertConfiguration.alertConfigurationId}
Utilize data_source to generate resource hcl and import statement. Useful if you have a specific alert_configuration_id and are looking to manage it as is in state. To import all alerts, refer to the documentation on data_source_mongodbatlas_alert_configurations
import * as pulumi from "@pulumi/pulumi";
import * as mongodbatlas from "@pulumi/mongodbatlas";
const test = mongodbatlas.getAlertConfiguration({
    projectId: projectId,
    alertConfigurationId: alertConfigurationId,
    outputs: [
        {
            type: "resource_hcl",
            label: "test",
        },
        {
            type: "resource_import",
            label: "test",
        },
    ],
});
import pulumi
import pulumi_mongodbatlas as mongodbatlas
test = mongodbatlas.get_alert_configuration(project_id=project_id,
    alert_configuration_id=alert_configuration_id,
    outputs=[
        {
            "type": "resource_hcl",
            "label": "test",
        },
        {
            "type": "resource_import",
            "label": "test",
        },
    ])
package main
import (
	"github.com/pulumi/pulumi-mongodbatlas/sdk/v3/go/mongodbatlas"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := mongodbatlas.LookupAlertConfiguration(ctx, &mongodbatlas.LookupAlertConfigurationArgs{
			ProjectId:            projectId,
			AlertConfigurationId: alertConfigurationId,
			Outputs: []mongodbatlas.GetAlertConfigurationOutput{
				{
					Type:  "resource_hcl",
					Label: pulumi.StringRef("test"),
				},
				{
					Type:  "resource_import",
					Label: pulumi.StringRef("test"),
				},
			},
		}, nil)
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Mongodbatlas = Pulumi.Mongodbatlas;
return await Deployment.RunAsync(() => 
{
    var test = Mongodbatlas.GetAlertConfiguration.Invoke(new()
    {
        ProjectId = projectId,
        AlertConfigurationId = alertConfigurationId,
        Outputs = new[]
        {
            new Mongodbatlas.Inputs.GetAlertConfigurationOutputInputArgs
            {
                Type = "resource_hcl",
                Label = "test",
            },
            new Mongodbatlas.Inputs.GetAlertConfigurationOutputInputArgs
            {
                Type = "resource_import",
                Label = "test",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.mongodbatlas.MongodbatlasFunctions;
import com.pulumi.mongodbatlas.inputs.GetAlertConfigurationArgs;
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) {
        final var test = MongodbatlasFunctions.getAlertConfiguration(GetAlertConfigurationArgs.builder()
            .projectId(projectId)
            .alertConfigurationId(alertConfigurationId)
            .outputs(            
                GetAlertConfigurationOutputArgs.builder()
                    .type("resource_hcl")
                    .label("test")
                    .build(),
                GetAlertConfigurationOutputArgs.builder()
                    .type("resource_import")
                    .label("test")
                    .build())
            .build());
    }
}
variables:
  test:
    fn::invoke:
      function: mongodbatlas:getAlertConfiguration
      arguments:
        projectId: ${projectId}
        alertConfigurationId: ${alertConfigurationId}
        outputs:
          - type: resource_hcl
            label: test
          - type: resource_import
            label: test
Using getAlertConfiguration
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getAlertConfiguration(args: GetAlertConfigurationArgs, opts?: InvokeOptions): Promise<GetAlertConfigurationResult>
function getAlertConfigurationOutput(args: GetAlertConfigurationOutputArgs, opts?: InvokeOptions): Output<GetAlertConfigurationResult>def get_alert_configuration(alert_configuration_id: Optional[str] = None,
                            outputs: Optional[Sequence[GetAlertConfigurationOutput]] = None,
                            project_id: Optional[str] = None,
                            opts: Optional[InvokeOptions] = None) -> GetAlertConfigurationResult
def get_alert_configuration_output(alert_configuration_id: Optional[pulumi.Input[str]] = None,
                            outputs: Optional[pulumi.Input[Sequence[pulumi.Input[GetAlertConfigurationOutputArgs]]]] = None,
                            project_id: Optional[pulumi.Input[str]] = None,
                            opts: Optional[InvokeOptions] = None) -> Output[GetAlertConfigurationResult]func LookupAlertConfiguration(ctx *Context, args *LookupAlertConfigurationArgs, opts ...InvokeOption) (*LookupAlertConfigurationResult, error)
func LookupAlertConfigurationOutput(ctx *Context, args *LookupAlertConfigurationOutputArgs, opts ...InvokeOption) LookupAlertConfigurationResultOutput> Note: This function is named LookupAlertConfiguration in the Go SDK.
public static class GetAlertConfiguration 
{
    public static Task<GetAlertConfigurationResult> InvokeAsync(GetAlertConfigurationArgs args, InvokeOptions? opts = null)
    public static Output<GetAlertConfigurationResult> Invoke(GetAlertConfigurationInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetAlertConfigurationResult> getAlertConfiguration(GetAlertConfigurationArgs args, InvokeOptions options)
public static Output<GetAlertConfigurationResult> getAlertConfiguration(GetAlertConfigurationArgs args, InvokeOptions options)
fn::invoke:
  function: mongodbatlas:index/getAlertConfiguration:getAlertConfiguration
  arguments:
    # arguments dictionaryThe following arguments are supported:
- AlertConfiguration stringId 
- Unique identifier for the alert configuration.
- ProjectId string
- The ID of the project where the alert configuration will create.
- Outputs
List<GetAlert Configuration Output> 
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
- AlertConfiguration stringId 
- Unique identifier for the alert configuration.
- ProjectId string
- The ID of the project where the alert configuration will create.
- Outputs
[]GetAlert Configuration Output 
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
- alertConfiguration StringId 
- Unique identifier for the alert configuration.
- projectId String
- The ID of the project where the alert configuration will create.
- outputs
List<GetAlert Configuration Output> 
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
- alertConfiguration stringId 
- Unique identifier for the alert configuration.
- projectId string
- The ID of the project where the alert configuration will create.
- outputs
GetAlert Configuration Output[] 
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
- alert_configuration_ strid 
- Unique identifier for the alert configuration.
- project_id str
- The ID of the project where the alert configuration will create.
- outputs
Sequence[GetAlert Configuration Output] 
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
- alertConfiguration StringId 
- Unique identifier for the alert configuration.
- projectId String
- The ID of the project where the alert configuration will create.
- outputs List<Property Map>
- List of formatted output requested for this alert configuration- output.#.type- (Required) If the output is requested, you must specify its type. The format is computed as- output.#.value, the following are the supported types:
 
getAlertConfiguration Result
The following output properties are available:
- AlertConfiguration stringId 
- Created string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- Enabled bool
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- EventType string
- The type of event that will trigger an alert.
- Id string
- Matchers
List<GetAlert Configuration Matcher> 
- Rules to apply when matching an object against this alert configuration. See matchers.
- MetricThreshold List<GetConfigs Alert Configuration Metric Threshold Config> 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- Notifications
List<GetAlert Configuration Notification> 
- ProjectId string
- ThresholdConfigs List<GetAlert Configuration Threshold Config> 
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- Updated string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- Outputs
List<GetAlert Configuration Output> 
- AlertConfiguration stringId 
- Created string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- Enabled bool
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- EventType string
- The type of event that will trigger an alert.
- Id string
- Matchers
[]GetAlert Configuration Matcher 
- Rules to apply when matching an object against this alert configuration. See matchers.
- MetricThreshold []GetConfigs Alert Configuration Metric Threshold Config 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- Notifications
[]GetAlert Configuration Notification 
- ProjectId string
- ThresholdConfigs []GetAlert Configuration Threshold Config 
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- Updated string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- Outputs
[]GetAlert Configuration Output 
- alertConfiguration StringId 
- created String
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- enabled Boolean
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- eventType String
- The type of event that will trigger an alert.
- id String
- matchers
List<GetAlert Configuration Matcher> 
- Rules to apply when matching an object against this alert configuration. See matchers.
- metricThreshold List<GetConfigs Alert Configuration Metric Threshold Config> 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- notifications
List<GetAlert Configuration Notification> 
- projectId String
- thresholdConfigs List<GetAlert Configuration Threshold Config> 
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- updated String
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- outputs
List<GetAlert Configuration Output> 
- alertConfiguration stringId 
- created string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- enabled boolean
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- eventType string
- The type of event that will trigger an alert.
- id string
- matchers
GetAlert Configuration Matcher[] 
- Rules to apply when matching an object against this alert configuration. See matchers.
- metricThreshold GetConfigs Alert Configuration Metric Threshold Config[] 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- notifications
GetAlert Configuration Notification[] 
- projectId string
- thresholdConfigs GetAlert Configuration Threshold Config[] 
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- updated string
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- outputs
GetAlert Configuration Output[] 
- alert_configuration_ strid 
- created str
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- enabled bool
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- event_type str
- The type of event that will trigger an alert.
- id str
- matchers
Sequence[GetAlert Configuration Matcher] 
- Rules to apply when matching an object against this alert configuration. See matchers.
- metric_threshold_ Sequence[Getconfigs Alert Configuration Metric Threshold Config] 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- notifications
Sequence[GetAlert Configuration Notification] 
- project_id str
- threshold_configs Sequence[GetAlert Configuration Threshold Config] 
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- updated str
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- outputs
Sequence[GetAlert Configuration Output] 
- alertConfiguration StringId 
- created String
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was created.
- enabled Boolean
- If set to true, the alert configuration is enabled. If enabled is not exported it is set to false.
- eventType String
- The type of event that will trigger an alert.
- id String
- matchers List<Property Map>
- Rules to apply when matching an object against this alert configuration. See matchers.
- metricThreshold List<Property Map>Configs 
- The threshold that causes an alert to be triggered. Required if event_type_name:OUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See metric threshold config.
- notifications List<Property Map>
- projectId String
- thresholdConfigs List<Property Map>
- Threshold that triggers an alert. Required if event_type_nameis any value other thanOUTSIDE_METRIC_THRESHOLDorOUTSIDE_SERVERLESS_METRIC_THRESHOLD. See threshold config.
- updated String
- Timestamp in ISO 8601 date and time format in UTC when this alert configuration was last updated.
- outputs List<Property Map>
Supporting Types
GetAlertConfigurationMatcher   
- FieldName string
- Name of the field in the target object to match on.
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Value string
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
- FieldName string
- Name of the field in the target object to match on.
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Value string
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
- fieldName String
- Name of the field in the target object to match on.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- value String
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
- fieldName string
- Name of the field in the target object to match on.
- operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- value string
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
- field_name str
- Name of the field in the target object to match on.
- operator str
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- value str
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
- fieldName String
- Name of the field in the target object to match on.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- value String
- Value to test with the specified operator. If field_nameis set to TYPE_NAME, you can match on the following values:- PRIMARY
- SECONDARY
- STANDALONE
- CONFIG
- MONGOS
 
GetAlertConfigurationMetricThresholdConfig     
- MetricName string
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- Mode string
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Threshold double
- Threshold value outside of which an alert will be triggered.
- Units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- MetricName string
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- Mode string
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Threshold float64
- Threshold value outside of which an alert will be triggered.
- Units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- metricName String
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- mode String
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold Double
- Threshold value outside of which an alert will be triggered.
- units String
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- metricName string
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- mode string
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold number
- Threshold value outside of which an alert will be triggered.
- units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- metric_name str
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- mode str
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- operator str
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold float
- Threshold value outside of which an alert will be triggered.
- units str
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- metricName String
- Name of the metric to check. The full list being quite large, please refer to atlas docs here for general metrics and here for serverless metrics
- mode String
- This must be set to AVERAGE. Atlas computes the current metric value as an average.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold Number
- Threshold value outside of which an alert will be triggered.
- units String
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
GetAlertConfigurationNotification   
- ApiToken string
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- ChannelName string
- Slack channel name. Required for the SLACK notifications type.
- DatadogApi stringKey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- DatadogRegion string
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- DelayMin int
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- EmailAddress string
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- EmailEnabled bool
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- IntegrationId string
- The ID of the associated integration, the credentials of which to use for requests.
- IntervalMin int
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- MicrosoftTeams stringWebhook Url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- MobileNumber string
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- NotifierId string
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- OpsGenie stringApi Key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- OpsGenie stringRegion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- Roles List<string>
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- ServiceKey string
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- SmsEnabled bool
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- TeamId string
- Unique identifier of a team.
- TeamName string
- Label for the team that receives this notification.
- TypeName string
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- Username string
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- VictorOps stringApi Key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- VictorOps stringRouting Key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- WebhookSecret string
- Authentication secret for the WEBHOOKnotifications type.
- WebhookUrl string
- Target URL for the WEBHOOKnotifications type.
- ApiToken string
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- ChannelName string
- Slack channel name. Required for the SLACK notifications type.
- DatadogApi stringKey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- DatadogRegion string
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- DelayMin int
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- EmailAddress string
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- EmailEnabled bool
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- IntegrationId string
- The ID of the associated integration, the credentials of which to use for requests.
- IntervalMin int
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- MicrosoftTeams stringWebhook Url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- MobileNumber string
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- NotifierId string
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- OpsGenie stringApi Key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- OpsGenie stringRegion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- Roles []string
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- ServiceKey string
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- SmsEnabled bool
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- TeamId string
- Unique identifier of a team.
- TeamName string
- Label for the team that receives this notification.
- TypeName string
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- Username string
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- VictorOps stringApi Key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- VictorOps stringRouting Key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- WebhookSecret string
- Authentication secret for the WEBHOOKnotifications type.
- WebhookUrl string
- Target URL for the WEBHOOKnotifications type.
- apiToken String
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- channelName String
- Slack channel name. Required for the SLACK notifications type.
- datadogApi StringKey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- datadogRegion String
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- delayMin Integer
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- emailAddress String
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- emailEnabled Boolean
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- integrationId String
- The ID of the associated integration, the credentials of which to use for requests.
- intervalMin Integer
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- microsoftTeams StringWebhook Url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- mobileNumber String
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- notifierId String
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- opsGenie StringApi Key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- opsGenie StringRegion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- roles List<String>
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- serviceKey String
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- smsEnabled Boolean
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- teamId String
- Unique identifier of a team.
- teamName String
- Label for the team that receives this notification.
- typeName String
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- username String
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- victorOps StringApi Key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- victorOps StringRouting Key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- webhookSecret String
- Authentication secret for the WEBHOOKnotifications type.
- webhookUrl String
- Target URL for the WEBHOOKnotifications type.
- apiToken string
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- channelName string
- Slack channel name. Required for the SLACK notifications type.
- datadogApi stringKey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- datadogRegion string
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- delayMin number
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- emailAddress string
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- emailEnabled boolean
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- integrationId string
- The ID of the associated integration, the credentials of which to use for requests.
- intervalMin number
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- microsoftTeams stringWebhook Url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- mobileNumber string
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- notifierId string
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- opsGenie stringApi Key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- opsGenie stringRegion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- roles string[]
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- serviceKey string
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- smsEnabled boolean
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- teamId string
- Unique identifier of a team.
- teamName string
- Label for the team that receives this notification.
- typeName string
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- username string
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- victorOps stringApi Key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- victorOps stringRouting Key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- webhookSecret string
- Authentication secret for the WEBHOOKnotifications type.
- webhookUrl string
- Target URL for the WEBHOOKnotifications type.
- api_token str
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- channel_name str
- Slack channel name. Required for the SLACK notifications type.
- datadog_api_ strkey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- datadog_region str
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- delay_min int
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- email_address str
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- email_enabled bool
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- integration_id str
- The ID of the associated integration, the credentials of which to use for requests.
- interval_min int
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- microsoft_teams_ strwebhook_ url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- mobile_number str
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- notifier_id str
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- ops_genie_ strapi_ key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- ops_genie_ strregion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- roles Sequence[str]
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- service_key str
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- sms_enabled bool
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- team_id str
- Unique identifier of a team.
- team_name str
- Label for the team that receives this notification.
- type_name str
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- username str
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- victor_ops_ strapi_ key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- victor_ops_ strrouting_ key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- webhook_secret str
- Authentication secret for the WEBHOOKnotifications type.
- webhook_url str
- Target URL for the WEBHOOKnotifications type.
- apiToken String
- Slack API token. Required for the SLACK notifications type. If the token later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- channelName String
- Slack channel name. Required for the SLACK notifications type.
- datadogApi StringKey 
- Datadog API Key. Found in the Datadog dashboard. Required for the DATADOG notifications type.
- datadogRegion String
- Region that indicates which API URL to use. See the datadogRegionfield in thenotificationsrequest parameter of MongoDB API Alert Configuration documentation for more details. The default Datadog region is US.
- delayMin Number
- Number of minutes to wait after an alert condition is detected before sending out the first notification.
- emailAddress String
- Email address to which alert notifications are sent. Required for the EMAIL notifications type.
- emailEnabled Boolean
- Flag indicating email notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- integrationId String
- The ID of the associated integration, the credentials of which to use for requests.
- intervalMin Number
- Number of minutes to wait between successive notifications for unacknowledged alerts that are not resolved. The minimum value is 5.
- microsoftTeams StringWebhook Url 
- Microsoft Teams channel incoming webhook URL. Required for the MICROSOFT_TEAMSnotifications type.
- mobileNumber String
- Mobile number to which alert notifications are sent. Required for the SMS notifications type.
- notifierId String
- The notifier ID is a system-generated unique identifier assigned to each notification method. This is needed when updating third-party notifications without requiring explicit authentication credentials.
- opsGenie StringApi Key 
- Opsgenie API Key. Required for the OPS_GENIEnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the token.
- opsGenie StringRegion 
- Region that indicates which API URL to use. Accepted regions are: US,EU. The default Opsgenie region is US.
- roles List<String>
- Atlas role in current Project or Organization. Atlas returns this value if you set type_nametoORGorGROUP.
- serviceKey String
- PagerDuty service key. Required for the PAGER_DUTY notifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- smsEnabled Boolean
- Flag indicating text notifications should be sent. Atlas returns this value if type_nameis set toORG,GROUP, orUSER.
- teamId String
- Unique identifier of a team.
- teamName String
- Label for the team that receives this notification.
- typeName String
- Type of alert notification.
Accepted values are:- DATADOG
- EMAIL
- GROUP(Project)
- OPS_GENIE
- ORG
- PAGER_DUTY
- SLACK
- SMS
- TEAM
- USER
- VICTOR_OPS
- WEBHOOK
- MICROSOFT_TEAMS
 
- username String
- Name of the Atlas user to which to send notifications. Only a user in the project that owns the alert configuration is allowed here. Required for the USERnotifications type.
- victorOps StringApi Key 
- VictorOps API key. Required for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- victorOps StringRouting Key 
- VictorOps routing key. Optional for the VICTOR_OPSnotifications type. If the key later becomes invalid, Atlas sends an email to the project owner and eventually removes the key.
- webhookSecret String
- Authentication secret for the WEBHOOKnotifications type.
- webhookUrl String
- Target URL for the WEBHOOKnotifications type.
GetAlertConfigurationOutput   
GetAlertConfigurationThresholdConfig    
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Threshold double
- Threshold value outside of which an alert will be triggered.
- Units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- Operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- Threshold float64
- Threshold value outside of which an alert will be triggered.
- Units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold Double
- Threshold value outside of which an alert will be triggered.
- units String
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- operator string
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold number
- Threshold value outside of which an alert will be triggered.
- units string
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- operator str
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold float
- Threshold value outside of which an alert will be triggered.
- units str
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
- operator String
- The operator to apply when checking the current metric value against the threshold value.
Accepted values are:- GREATER_THAN
- LESS_THAN
 
- threshold Number
- Threshold value outside of which an alert will be triggered.
- units String
- The units for the threshold value. Depends on the type of metric. Refer to the MongoDB API Alert Configuration documentation for a list of accepted values.
Package Details
- Repository
- MongoDB Atlas pulumi/pulumi-mongodbatlas
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the mongodbatlasTerraform Provider.