1. Packages
  2. Sumologic Provider
  3. API Docs
  4. Monitor
Sumo Logic v1.0.6 published on Tuesday, Mar 11, 2025 by Pulumi

sumologic.Monitor

Explore with Pulumi AI

Provides the ability to create, read, delete, and update Monitors. If Fine Grain Permission (FGP) feature is enabled with Monitors Content at one’s Sumo Logic account, one can also set those permission details under this monitor resource. For further details about FGP, please see this Monitor Permission document.

Example SLO Monitors

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfSloMonitor1 = new sumologic.Monitor("tf_slo_monitor_1", {
    name: "SLO SLI monitor",
    type: "MonitorsLibraryMonitor",
    isDisabled: false,
    contentType: "Monitor",
    monitorType: "Slo",
    sloId: "0000000000000009",
    evaluationDelay: "5m",
    tags: {
        team: "monitoring",
        application: "sumologic",
    },
    triggerConditions: {
        sloSliCondition: {
            critical: {
                sliThreshold: 99.5,
            },
            warning: {
                sliThreshold: 99.9,
            },
        },
    },
    notifications: [{
        notification: {
            connectionType: "Email",
            recipients: ["abc@example.com"],
            subject: "Monitor Alert: {{TriggerType}} on {{Name}}",
            timeZone: "PST",
            messageBody: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        runForTriggerTypes: [
            "Critical",
            "ResolvedCritical",
        ],
    }],
    playbook: "test playbook",
});
const tfSloMonitor2 = new sumologic.Monitor("tf_slo_monitor_2", {
    name: "SLO Burn rate monitor",
    type: "MonitorsLibraryMonitor",
    isDisabled: false,
    contentType: "Monitor",
    monitorType: "Slo",
    sloId: "0000000000000009",
    evaluationDelay: "5m",
    tags: {
        team: "monitoring",
        application: "sumologic",
    },
    triggerConditions: {
        sloBurnRateCondition: {
            critical: {
                burnRates: [{
                    burnRateThreshold: 50,
                    timeRange: "1d",
                }],
            },
            warning: {
                burnRates: [
                    {
                        burnRateThreshold: 30,
                        timeRange: "3d",
                    },
                    {
                        burnRateThreshold: 20,
                        timeRange: "4d",
                    },
                ],
            },
        },
    },
});
Copy
import pulumi
import pulumi_sumologic as sumologic

tf_slo_monitor1 = sumologic.Monitor("tf_slo_monitor_1",
    name="SLO SLI monitor",
    type="MonitorsLibraryMonitor",
    is_disabled=False,
    content_type="Monitor",
    monitor_type="Slo",
    slo_id="0000000000000009",
    evaluation_delay="5m",
    tags={
        "team": "monitoring",
        "application": "sumologic",
    },
    trigger_conditions={
        "slo_sli_condition": {
            "critical": {
                "sli_threshold": 99.5,
            },
            "warning": {
                "sli_threshold": 99.9,
            },
        },
    },
    notifications=[{
        "notification": {
            "connection_type": "Email",
            "recipients": ["abc@example.com"],
            "subject": "Monitor Alert: {{TriggerType}} on {{Name}}",
            "time_zone": "PST",
            "message_body": "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        "run_for_trigger_types": [
            "Critical",
            "ResolvedCritical",
        ],
    }],
    playbook="test playbook")
tf_slo_monitor2 = sumologic.Monitor("tf_slo_monitor_2",
    name="SLO Burn rate monitor",
    type="MonitorsLibraryMonitor",
    is_disabled=False,
    content_type="Monitor",
    monitor_type="Slo",
    slo_id="0000000000000009",
    evaluation_delay="5m",
    tags={
        "team": "monitoring",
        "application": "sumologic",
    },
    trigger_conditions={
        "slo_burn_rate_condition": {
            "critical": {
                "burn_rates": [{
                    "burn_rate_threshold": 50,
                    "time_range": "1d",
                }],
            },
            "warning": {
                "burn_rates": [
                    {
                        "burn_rate_threshold": 30,
                        "time_range": "3d",
                    },
                    {
                        "burn_rate_threshold": 20,
                        "time_range": "4d",
                    },
                ],
            },
        },
    })
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewMonitor(ctx, "tf_slo_monitor_1", &sumologic.MonitorArgs{
			Name:            pulumi.String("SLO SLI monitor"),
			Type:            pulumi.String("MonitorsLibraryMonitor"),
			IsDisabled:      pulumi.Bool(false),
			ContentType:     pulumi.String("Monitor"),
			MonitorType:     pulumi.String("Slo"),
			SloId:           pulumi.String("0000000000000009"),
			EvaluationDelay: pulumi.String("5m"),
			Tags: pulumi.StringMap{
				"team":        pulumi.String("monitoring"),
				"application": pulumi.String("sumologic"),
			},
			TriggerConditions: &sumologic.MonitorTriggerConditionsArgs{
				SloSliCondition: &sumologic.MonitorTriggerConditionsSloSliConditionArgs{
					Critical: &sumologic.MonitorTriggerConditionsSloSliConditionCriticalArgs{
						SliThreshold: pulumi.Float64(99.5),
					},
					Warning: &sumologic.MonitorTriggerConditionsSloSliConditionWarningArgs{
						SliThreshold: pulumi.Float64(99.9),
					},
				},
			},
			Notifications: sumologic.MonitorNotificationArray{
				&sumologic.MonitorNotificationArgs{
					Notification: &sumologic.MonitorNotificationNotificationArgs{
						ConnectionType: pulumi.String("Email"),
						Recipients: pulumi.StringArray{
							pulumi.String("abc@example.com"),
						},
						Subject:     pulumi.String("Monitor Alert: {{TriggerType}} on {{Name}}"),
						TimeZone:    pulumi.String("PST"),
						MessageBody: pulumi.String("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}"),
					},
					RunForTriggerTypes: pulumi.StringArray{
						pulumi.String("Critical"),
						pulumi.String("ResolvedCritical"),
					},
				},
			},
			Playbook: pulumi.String("test playbook"),
		})
		if err != nil {
			return err
		}
		_, err = sumologic.NewMonitor(ctx, "tf_slo_monitor_2", &sumologic.MonitorArgs{
			Name:            pulumi.String("SLO Burn rate monitor"),
			Type:            pulumi.String("MonitorsLibraryMonitor"),
			IsDisabled:      pulumi.Bool(false),
			ContentType:     pulumi.String("Monitor"),
			MonitorType:     pulumi.String("Slo"),
			SloId:           pulumi.String("0000000000000009"),
			EvaluationDelay: pulumi.String("5m"),
			Tags: pulumi.StringMap{
				"team":        pulumi.String("monitoring"),
				"application": pulumi.String("sumologic"),
			},
			TriggerConditions: &sumologic.MonitorTriggerConditionsArgs{
				SloBurnRateCondition: &sumologic.MonitorTriggerConditionsSloBurnRateConditionArgs{
					Critical: &sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalArgs{
						BurnRates: sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArray{
							&sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs{
								BurnRateThreshold: pulumi.Float64(50),
								TimeRange:         pulumi.String("1d"),
							},
						},
					},
					Warning: &sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningArgs{
						BurnRates: sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArray{
							&sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs{
								BurnRateThreshold: pulumi.Float64(30),
								TimeRange:         pulumi.String("3d"),
							},
							&sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs{
								BurnRateThreshold: pulumi.Float64(20),
								TimeRange:         pulumi.String("4d"),
							},
						},
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfSloMonitor1 = new SumoLogic.Monitor("tf_slo_monitor_1", new()
    {
        Name = "SLO SLI monitor",
        Type = "MonitorsLibraryMonitor",
        IsDisabled = false,
        ContentType = "Monitor",
        MonitorType = "Slo",
        SloId = "0000000000000009",
        EvaluationDelay = "5m",
        Tags = 
        {
            { "team", "monitoring" },
            { "application", "sumologic" },
        },
        TriggerConditions = new SumoLogic.Inputs.MonitorTriggerConditionsArgs
        {
            SloSliCondition = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionArgs
            {
                Critical = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionCriticalArgs
                {
                    SliThreshold = 99.5,
                },
                Warning = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionWarningArgs
                {
                    SliThreshold = 99.9,
                },
            },
        },
        Notifications = new[]
        {
            new SumoLogic.Inputs.MonitorNotificationArgs
            {
                Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
                {
                    ConnectionType = "Email",
                    Recipients = new[]
                    {
                        "abc@example.com",
                    },
                    Subject = "Monitor Alert: {{TriggerType}} on {{Name}}",
                    TimeZone = "PST",
                    MessageBody = "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
                },
                RunForTriggerTypes = new[]
                {
                    "Critical",
                    "ResolvedCritical",
                },
            },
        },
        Playbook = "test playbook",
    });

    var tfSloMonitor2 = new SumoLogic.Monitor("tf_slo_monitor_2", new()
    {
        Name = "SLO Burn rate monitor",
        Type = "MonitorsLibraryMonitor",
        IsDisabled = false,
        ContentType = "Monitor",
        MonitorType = "Slo",
        SloId = "0000000000000009",
        EvaluationDelay = "5m",
        Tags = 
        {
            { "team", "monitoring" },
            { "application", "sumologic" },
        },
        TriggerConditions = new SumoLogic.Inputs.MonitorTriggerConditionsArgs
        {
            SloBurnRateCondition = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionArgs
            {
                Critical = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionCriticalArgs
                {
                    BurnRates = new[]
                    {
                        new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs
                        {
                            BurnRateThreshold = 50,
                            TimeRange = "1d",
                        },
                    },
                },
                Warning = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionWarningArgs
                {
                    BurnRates = new[]
                    {
                        new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs
                        {
                            BurnRateThreshold = 30,
                            TimeRange = "3d",
                        },
                        new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs
                        {
                            BurnRateThreshold = 20,
                            TimeRange = "4d",
                        },
                    },
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Monitor;
import com.pulumi.sumologic.MonitorArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloSliConditionArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloSliConditionCriticalArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloSliConditionWarningArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationNotificationArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloBurnRateConditionArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloBurnRateConditionCriticalArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsSloBurnRateConditionWarningArgs;
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 tfSloMonitor1 = new Monitor("tfSloMonitor1", MonitorArgs.builder()
            .name("SLO SLI monitor")
            .type("MonitorsLibraryMonitor")
            .isDisabled(false)
            .contentType("Monitor")
            .monitorType("Slo")
            .sloId("0000000000000009")
            .evaluationDelay("5m")
            .tags(Map.ofEntries(
                Map.entry("team", "monitoring"),
                Map.entry("application", "sumologic")
            ))
            .triggerConditions(MonitorTriggerConditionsArgs.builder()
                .sloSliCondition(MonitorTriggerConditionsSloSliConditionArgs.builder()
                    .critical(MonitorTriggerConditionsSloSliConditionCriticalArgs.builder()
                        .sliThreshold(99.5)
                        .build())
                    .warning(MonitorTriggerConditionsSloSliConditionWarningArgs.builder()
                        .sliThreshold(99.9)
                        .build())
                    .build())
                .build())
            .notifications(MonitorNotificationArgs.builder()
                .notification(MonitorNotificationNotificationArgs.builder()
                    .connectionType("Email")
                    .recipients("abc@example.com")
                    .subject("Monitor Alert: {{TriggerType}} on {{Name}}")
                    .timeZone("PST")
                    .messageBody("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}")
                    .build())
                .runForTriggerTypes(                
                    "Critical",
                    "ResolvedCritical")
                .build())
            .playbook("test playbook")
            .build());

        var tfSloMonitor2 = new Monitor("tfSloMonitor2", MonitorArgs.builder()
            .name("SLO Burn rate monitor")
            .type("MonitorsLibraryMonitor")
            .isDisabled(false)
            .contentType("Monitor")
            .monitorType("Slo")
            .sloId("0000000000000009")
            .evaluationDelay("5m")
            .tags(Map.ofEntries(
                Map.entry("team", "monitoring"),
                Map.entry("application", "sumologic")
            ))
            .triggerConditions(MonitorTriggerConditionsArgs.builder()
                .sloBurnRateCondition(MonitorTriggerConditionsSloBurnRateConditionArgs.builder()
                    .critical(MonitorTriggerConditionsSloBurnRateConditionCriticalArgs.builder()
                        .burnRates(MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs.builder()
                            .burnRateThreshold(50)
                            .timeRange("1d")
                            .build())
                        .build())
                    .warning(MonitorTriggerConditionsSloBurnRateConditionWarningArgs.builder()
                        .burnRates(                        
                            MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs.builder()
                                .burnRateThreshold(30)
                                .timeRange("3d")
                                .build(),
                            MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs.builder()
                                .burnRateThreshold(20)
                                .timeRange("4d")
                                .build())
                        .build())
                    .build())
                .build())
            .build());

    }
}
Copy
resources:
  tfSloMonitor1:
    type: sumologic:Monitor
    name: tf_slo_monitor_1
    properties:
      name: SLO SLI monitor
      type: MonitorsLibraryMonitor
      isDisabled: false
      contentType: Monitor
      monitorType: Slo
      sloId: '0000000000000009'
      evaluationDelay: 5m
      tags:
        team: monitoring
        application: sumologic
      triggerConditions:
        sloSliCondition:
          critical:
            sliThreshold: 99.5
          warning:
            sliThreshold: 99.9
      notifications:
        - notification:
            connectionType: Email
            recipients:
              - abc@example.com
            subject: 'Monitor Alert: {{TriggerType}} on {{Name}}'
            timeZone: PST
            messageBody: 'Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}'
          runForTriggerTypes:
            - Critical
            - ResolvedCritical
      playbook: test playbook
  tfSloMonitor2:
    type: sumologic:Monitor
    name: tf_slo_monitor_2
    properties:
      name: SLO Burn rate monitor
      type: MonitorsLibraryMonitor
      isDisabled: false
      contentType: Monitor
      monitorType: Slo
      sloId: '0000000000000009'
      evaluationDelay: 5m
      tags:
        team: monitoring
        application: sumologic
      triggerConditions:
        sloBurnRateCondition:
          critical:
            burnRates:
              - burnRateThreshold: 50
                timeRange: 1d
          warning:
            burnRates:
              - burnRateThreshold: 30
                timeRange: 3d
              - burnRateThreshold: 20
                timeRange: 4d
Copy

Example Logs Anomaly Monitor

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfExampleAnomalyMonitor = new sumologic.Monitor("tf_example_anomaly_monitor", {
    name: "Example Anomaly Monitor",
    description: "example anomaly monitor",
    type: "MonitorsLibraryMonitor",
    monitorType: "Logs",
    isDisabled: false,
    queries: [{
        rowId: "A",
        query: "_sourceCategory=api error | timeslice 5m | count by _sourceHost",
    }],
    triggerConditions: {
        logsAnomalyCondition: {
            field: "_count",
            anomalyDetectorType: "Cluster",
            critical: {
                sensitivity: 0.4,
                minAnomalyCount: 9,
                timeRange: "-3h",
            },
        },
    },
    notifications: [{
        notification: {
            connectionType: "Email",
            recipients: ["anomaly@example.com"],
            subject: "Monitor Alert: {{TriggerType}} on {{Name}}",
            timeZone: "PST",
            messageBody: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        runForTriggerTypes: [
            "Critical",
            "ResolvedCritical",
        ],
    }],
});
Copy
import pulumi
import pulumi_sumologic as sumologic

tf_example_anomaly_monitor = sumologic.Monitor("tf_example_anomaly_monitor",
    name="Example Anomaly Monitor",
    description="example anomaly monitor",
    type="MonitorsLibraryMonitor",
    monitor_type="Logs",
    is_disabled=False,
    queries=[{
        "row_id": "A",
        "query": "_sourceCategory=api error | timeslice 5m | count by _sourceHost",
    }],
    trigger_conditions={
        "logs_anomaly_condition": {
            "field": "_count",
            "anomaly_detector_type": "Cluster",
            "critical": {
                "sensitivity": 0.4,
                "min_anomaly_count": 9,
                "time_range": "-3h",
            },
        },
    },
    notifications=[{
        "notification": {
            "connection_type": "Email",
            "recipients": ["anomaly@example.com"],
            "subject": "Monitor Alert: {{TriggerType}} on {{Name}}",
            "time_zone": "PST",
            "message_body": "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        "run_for_trigger_types": [
            "Critical",
            "ResolvedCritical",
        ],
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewMonitor(ctx, "tf_example_anomaly_monitor", &sumologic.MonitorArgs{
			Name:        pulumi.String("Example Anomaly Monitor"),
			Description: pulumi.String("example anomaly monitor"),
			Type:        pulumi.String("MonitorsLibraryMonitor"),
			MonitorType: pulumi.String("Logs"),
			IsDisabled:  pulumi.Bool(false),
			Queries: sumologic.MonitorQueryArray{
				&sumologic.MonitorQueryArgs{
					RowId: pulumi.String("A"),
					Query: pulumi.String("_sourceCategory=api error | timeslice 5m | count by _sourceHost"),
				},
			},
			TriggerConditions: &sumologic.MonitorTriggerConditionsArgs{
				LogsAnomalyCondition: &sumologic.MonitorTriggerConditionsLogsAnomalyConditionArgs{
					Field:               pulumi.String("_count"),
					AnomalyDetectorType: pulumi.String("Cluster"),
					Critical: &sumologic.MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs{
						Sensitivity:     pulumi.Float64(0.4),
						MinAnomalyCount: pulumi.Int(9),
						TimeRange:       pulumi.String("-3h"),
					},
				},
			},
			Notifications: sumologic.MonitorNotificationArray{
				&sumologic.MonitorNotificationArgs{
					Notification: &sumologic.MonitorNotificationNotificationArgs{
						ConnectionType: pulumi.String("Email"),
						Recipients: pulumi.StringArray{
							pulumi.String("anomaly@example.com"),
						},
						Subject:     pulumi.String("Monitor Alert: {{TriggerType}} on {{Name}}"),
						TimeZone:    pulumi.String("PST"),
						MessageBody: pulumi.String("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}"),
					},
					RunForTriggerTypes: pulumi.StringArray{
						pulumi.String("Critical"),
						pulumi.String("ResolvedCritical"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfExampleAnomalyMonitor = new SumoLogic.Monitor("tf_example_anomaly_monitor", new()
    {
        Name = "Example Anomaly Monitor",
        Description = "example anomaly monitor",
        Type = "MonitorsLibraryMonitor",
        MonitorType = "Logs",
        IsDisabled = false,
        Queries = new[]
        {
            new SumoLogic.Inputs.MonitorQueryArgs
            {
                RowId = "A",
                Query = "_sourceCategory=api error | timeslice 5m | count by _sourceHost",
            },
        },
        TriggerConditions = new SumoLogic.Inputs.MonitorTriggerConditionsArgs
        {
            LogsAnomalyCondition = new SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyConditionArgs
            {
                Field = "_count",
                AnomalyDetectorType = "Cluster",
                Critical = new SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs
                {
                    Sensitivity = 0.4,
                    MinAnomalyCount = 9,
                    TimeRange = "-3h",
                },
            },
        },
        Notifications = new[]
        {
            new SumoLogic.Inputs.MonitorNotificationArgs
            {
                Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
                {
                    ConnectionType = "Email",
                    Recipients = new[]
                    {
                        "anomaly@example.com",
                    },
                    Subject = "Monitor Alert: {{TriggerType}} on {{Name}}",
                    TimeZone = "PST",
                    MessageBody = "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
                },
                RunForTriggerTypes = new[]
                {
                    "Critical",
                    "ResolvedCritical",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Monitor;
import com.pulumi.sumologic.MonitorArgs;
import com.pulumi.sumologic.inputs.MonitorQueryArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsLogsAnomalyConditionArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationNotificationArgs;
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 tfExampleAnomalyMonitor = new Monitor("tfExampleAnomalyMonitor", MonitorArgs.builder()
            .name("Example Anomaly Monitor")
            .description("example anomaly monitor")
            .type("MonitorsLibraryMonitor")
            .monitorType("Logs")
            .isDisabled(false)
            .queries(MonitorQueryArgs.builder()
                .rowId("A")
                .query("_sourceCategory=api error | timeslice 5m | count by _sourceHost")
                .build())
            .triggerConditions(MonitorTriggerConditionsArgs.builder()
                .logsAnomalyCondition(MonitorTriggerConditionsLogsAnomalyConditionArgs.builder()
                    .field("_count")
                    .anomalyDetectorType("Cluster")
                    .critical(MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs.builder()
                        .sensitivity(0.4)
                        .minAnomalyCount(9)
                        .timeRange("-3h")
                        .build())
                    .build())
                .build())
            .notifications(MonitorNotificationArgs.builder()
                .notification(MonitorNotificationNotificationArgs.builder()
                    .connectionType("Email")
                    .recipients("anomaly@example.com")
                    .subject("Monitor Alert: {{TriggerType}} on {{Name}}")
                    .timeZone("PST")
                    .messageBody("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}")
                    .build())
                .runForTriggerTypes(                
                    "Critical",
                    "ResolvedCritical")
                .build())
            .build());

    }
}
Copy
resources:
  tfExampleAnomalyMonitor:
    type: sumologic:Monitor
    name: tf_example_anomaly_monitor
    properties:
      name: Example Anomaly Monitor
      description: example anomaly monitor
      type: MonitorsLibraryMonitor
      monitorType: Logs
      isDisabled: false
      queries:
        - rowId: A
          query: _sourceCategory=api error | timeslice 5m | count by _sourceHost
      triggerConditions:
        logsAnomalyCondition:
          field: _count
          anomalyDetectorType: Cluster
          critical:
            sensitivity: 0.4
            minAnomalyCount: 9
            timeRange: -3h
      notifications:
        - notification:
            connectionType: Email
            recipients:
              - anomaly@example.com
            subject: 'Monitor Alert: {{TriggerType}} on {{Name}}'
            timeZone: PST
            messageBody: 'Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}'
          runForTriggerTypes:
            - Critical
            - ResolvedCritical
Copy

Example Metrics Anomaly Monitor

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfExampleMetricsAnomalyMonitor = new sumologic.Monitor("tf_example_metrics_anomaly_monitor", {
    name: "Example Metrics Anomaly Monitor",
    description: "example metrics anomaly monitor",
    type: "MonitorsLibraryMonitor",
    monitorType: "Metrics",
    isDisabled: false,
    queries: [{
        rowId: "A",
        query: "service=auth api=login metric=HTTP_5XX_Count | avg",
    }],
    triggerConditions: {
        metricsAnomalyCondition: {
            anomalyDetectorType: "Cluster",
            critical: {
                sensitivity: 0.4,
                minAnomalyCount: 9,
                timeRange: "-3h",
            },
        },
    },
    notifications: [{
        notification: {
            connectionType: "Email",
            recipients: ["anomaly@example.com"],
            subject: "Monitor Alert: {{TriggerType}} on {{Name}}",
            timeZone: "PST",
            messageBody: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        runForTriggerTypes: [
            "Critical",
            "ResolvedCritical",
        ],
    }],
});
Copy
import pulumi
import pulumi_sumologic as sumologic

tf_example_metrics_anomaly_monitor = sumologic.Monitor("tf_example_metrics_anomaly_monitor",
    name="Example Metrics Anomaly Monitor",
    description="example metrics anomaly monitor",
    type="MonitorsLibraryMonitor",
    monitor_type="Metrics",
    is_disabled=False,
    queries=[{
        "row_id": "A",
        "query": "service=auth api=login metric=HTTP_5XX_Count | avg",
    }],
    trigger_conditions={
        "metrics_anomaly_condition": {
            "anomaly_detector_type": "Cluster",
            "critical": {
                "sensitivity": 0.4,
                "min_anomaly_count": 9,
                "time_range": "-3h",
            },
        },
    },
    notifications=[{
        "notification": {
            "connection_type": "Email",
            "recipients": ["anomaly@example.com"],
            "subject": "Monitor Alert: {{TriggerType}} on {{Name}}",
            "time_zone": "PST",
            "message_body": "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
        },
        "run_for_trigger_types": [
            "Critical",
            "ResolvedCritical",
        ],
    }])
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewMonitor(ctx, "tf_example_metrics_anomaly_monitor", &sumologic.MonitorArgs{
			Name:        pulumi.String("Example Metrics Anomaly Monitor"),
			Description: pulumi.String("example metrics anomaly monitor"),
			Type:        pulumi.String("MonitorsLibraryMonitor"),
			MonitorType: pulumi.String("Metrics"),
			IsDisabled:  pulumi.Bool(false),
			Queries: sumologic.MonitorQueryArray{
				&sumologic.MonitorQueryArgs{
					RowId: pulumi.String("A"),
					Query: pulumi.String("service=auth api=login metric=HTTP_5XX_Count | avg"),
				},
			},
			TriggerConditions: &sumologic.MonitorTriggerConditionsArgs{
				MetricsAnomalyCondition: &sumologic.MonitorTriggerConditionsMetricsAnomalyConditionArgs{
					AnomalyDetectorType: pulumi.String("Cluster"),
					Critical: &sumologic.MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs{
						Sensitivity:     pulumi.Float64(0.4),
						MinAnomalyCount: pulumi.Int(9),
						TimeRange:       pulumi.String("-3h"),
					},
				},
			},
			Notifications: sumologic.MonitorNotificationArray{
				&sumologic.MonitorNotificationArgs{
					Notification: &sumologic.MonitorNotificationNotificationArgs{
						ConnectionType: pulumi.String("Email"),
						Recipients: pulumi.StringArray{
							pulumi.String("anomaly@example.com"),
						},
						Subject:     pulumi.String("Monitor Alert: {{TriggerType}} on {{Name}}"),
						TimeZone:    pulumi.String("PST"),
						MessageBody: pulumi.String("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}"),
					},
					RunForTriggerTypes: pulumi.StringArray{
						pulumi.String("Critical"),
						pulumi.String("ResolvedCritical"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfExampleMetricsAnomalyMonitor = new SumoLogic.Monitor("tf_example_metrics_anomaly_monitor", new()
    {
        Name = "Example Metrics Anomaly Monitor",
        Description = "example metrics anomaly monitor",
        Type = "MonitorsLibraryMonitor",
        MonitorType = "Metrics",
        IsDisabled = false,
        Queries = new[]
        {
            new SumoLogic.Inputs.MonitorQueryArgs
            {
                RowId = "A",
                Query = "service=auth api=login metric=HTTP_5XX_Count | avg",
            },
        },
        TriggerConditions = new SumoLogic.Inputs.MonitorTriggerConditionsArgs
        {
            MetricsAnomalyCondition = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsAnomalyConditionArgs
            {
                AnomalyDetectorType = "Cluster",
                Critical = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs
                {
                    Sensitivity = 0.4,
                    MinAnomalyCount = 9,
                    TimeRange = "-3h",
                },
            },
        },
        Notifications = new[]
        {
            new SumoLogic.Inputs.MonitorNotificationArgs
            {
                Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
                {
                    ConnectionType = "Email",
                    Recipients = new[]
                    {
                        "anomaly@example.com",
                    },
                    Subject = "Monitor Alert: {{TriggerType}} on {{Name}}",
                    TimeZone = "PST",
                    MessageBody = "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
                },
                RunForTriggerTypes = new[]
                {
                    "Critical",
                    "ResolvedCritical",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Monitor;
import com.pulumi.sumologic.MonitorArgs;
import com.pulumi.sumologic.inputs.MonitorQueryArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsMetricsAnomalyConditionArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationNotificationArgs;
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 tfExampleMetricsAnomalyMonitor = new Monitor("tfExampleMetricsAnomalyMonitor", MonitorArgs.builder()
            .name("Example Metrics Anomaly Monitor")
            .description("example metrics anomaly monitor")
            .type("MonitorsLibraryMonitor")
            .monitorType("Metrics")
            .isDisabled(false)
            .queries(MonitorQueryArgs.builder()
                .rowId("A")
                .query("service=auth api=login metric=HTTP_5XX_Count | avg")
                .build())
            .triggerConditions(MonitorTriggerConditionsArgs.builder()
                .metricsAnomalyCondition(MonitorTriggerConditionsMetricsAnomalyConditionArgs.builder()
                    .anomalyDetectorType("Cluster")
                    .critical(MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs.builder()
                        .sensitivity(0.4)
                        .minAnomalyCount(9)
                        .timeRange("-3h")
                        .build())
                    .build())
                .build())
            .notifications(MonitorNotificationArgs.builder()
                .notification(MonitorNotificationNotificationArgs.builder()
                    .connectionType("Email")
                    .recipients("anomaly@example.com")
                    .subject("Monitor Alert: {{TriggerType}} on {{Name}}")
                    .timeZone("PST")
                    .messageBody("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}")
                    .build())
                .runForTriggerTypes(                
                    "Critical",
                    "ResolvedCritical")
                .build())
            .build());

    }
}
Copy
resources:
  tfExampleMetricsAnomalyMonitor:
    type: sumologic:Monitor
    name: tf_example_metrics_anomaly_monitor
    properties:
      name: Example Metrics Anomaly Monitor
      description: example metrics anomaly monitor
      type: MonitorsLibraryMonitor
      monitorType: Metrics
      isDisabled: false
      queries:
        - rowId: A
          query: service=auth api=login metric=HTTP_5XX_Count | avg
      triggerConditions:
        metricsAnomalyCondition:
          anomalyDetectorType: Cluster
          critical:
            sensitivity: 0.4
            minAnomalyCount: 9
            timeRange: -3h
      notifications:
        - notification:
            connectionType: Email
            recipients:
              - anomaly@example.com
            subject: 'Monitor Alert: {{TriggerType}} on {{Name}}'
            timeZone: PST
            messageBody: 'Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}'
          runForTriggerTypes:
            - Critical
            - ResolvedCritical
Copy

Monitor Folders

«««< HEAD NOTE: Monitor folders are considered a different resource from Library content folders.

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfMonitorFolder1 = new sumologic.MonitorFolder("tf_monitor_folder_1", {
    name: "test folder",
    description: "a folder for monitors",
});
Copy
import pulumi
import pulumi_sumologic as sumologic

tf_monitor_folder1 = sumologic.MonitorFolder("tf_monitor_folder_1",
    name="test folder",
    description="a folder for monitors")
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewMonitorFolder(ctx, "tf_monitor_folder_1", &sumologic.MonitorFolderArgs{
			Name:        pulumi.String("test folder"),
			Description: pulumi.String("a folder for monitors"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfMonitorFolder1 = new SumoLogic.MonitorFolder("tf_monitor_folder_1", new()
    {
        Name = "test folder",
        Description = "a folder for monitors",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.MonitorFolder;
import com.pulumi.sumologic.MonitorFolderArgs;
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 tfMonitorFolder1 = new MonitorFolder("tfMonitorFolder1", MonitorFolderArgs.builder()
            .name("test folder")
            .description("a folder for monitors")
            .build());

    }
}
Copy
resources:
  tfMonitorFolder1:
    type: sumologic:MonitorFolder
    name: tf_monitor_folder_1
    properties:
      name: test folder
      description: a folder for monitors
Copy

======= NOTE: Monitor folders are considered a different resource from Library content folders. See sumologic.MonitorFolder for more details.

v2.11.0

The trigger_conditions block

A trigger_conditions block configures conditions for sending notifications.

The triggers block

The triggers block is deprecated. Please use trigger_conditions to specify notification conditions.

Here’s an example logs monitor that uses triggers to specify trigger conditions:

import * as pulumi from "@pulumi/pulumi";
import * as sumologic from "@pulumi/sumologic";

const tfLogsMonitor1 = new sumologic.Monitor("tf_logs_monitor_1", {
    name: "Terraform Logs Monitor",
    description: "tf logs monitor",
    type: "MonitorsLibraryMonitor",
    isDisabled: false,
    contentType: "Monitor",
    monitorType: "Logs",
    queries: [{
        rowId: "A",
        query: "_sourceCategory=event-action info",
    }],
    triggers: [
        {
            thresholdType: "GreaterThan",
            threshold: 40,
            timeRange: "15m",
            occurrenceType: "ResultCount",
            triggerSource: "AllResults",
            triggerType: "Critical",
            detectionMethod: "StaticCondition",
        },
        {
            thresholdType: "LessThanOrEqual",
            threshold: 40,
            timeRange: "15m",
            occurrenceType: "ResultCount",
            triggerSource: "AllResults",
            triggerType: "ResolvedCritical",
            detectionMethod: "StaticCondition",
            resolutionWindow: "5m",
        },
    ],
    notifications: [
        {
            notification: {
                connectionType: "Email",
                recipients: ["abc@example.com"],
                subject: "Monitor Alert: {{TriggerType}} on {{Name}}",
                timeZone: "PST",
                messageBody: "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
            },
            runForTriggerTypes: [
                "Critical",
                "ResolvedCritical",
            ],
        },
        {
            notification: {
                connectionType: "Webhook",
                connectionId: "0000000000ABC123",
            },
            runForTriggerTypes: [
                "Critical",
                "ResolvedCritical",
            ],
        },
    ],
});
Copy
import pulumi
import pulumi_sumologic as sumologic

tf_logs_monitor1 = sumologic.Monitor("tf_logs_monitor_1",
    name="Terraform Logs Monitor",
    description="tf logs monitor",
    type="MonitorsLibraryMonitor",
    is_disabled=False,
    content_type="Monitor",
    monitor_type="Logs",
    queries=[{
        "row_id": "A",
        "query": "_sourceCategory=event-action info",
    }],
    triggers=[
        {
            "threshold_type": "GreaterThan",
            "threshold": 40,
            "time_range": "15m",
            "occurrence_type": "ResultCount",
            "trigger_source": "AllResults",
            "trigger_type": "Critical",
            "detection_method": "StaticCondition",
        },
        {
            "threshold_type": "LessThanOrEqual",
            "threshold": 40,
            "time_range": "15m",
            "occurrence_type": "ResultCount",
            "trigger_source": "AllResults",
            "trigger_type": "ResolvedCritical",
            "detection_method": "StaticCondition",
            "resolution_window": "5m",
        },
    ],
    notifications=[
        {
            "notification": {
                "connection_type": "Email",
                "recipients": ["abc@example.com"],
                "subject": "Monitor Alert: {{TriggerType}} on {{Name}}",
                "time_zone": "PST",
                "message_body": "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
            },
            "run_for_trigger_types": [
                "Critical",
                "ResolvedCritical",
            ],
        },
        {
            "notification": {
                "connection_type": "Webhook",
                "connection_id": "0000000000ABC123",
            },
            "run_for_trigger_types": [
                "Critical",
                "ResolvedCritical",
            ],
        },
    ])
Copy
package main

import (
	"github.com/pulumi/pulumi-sumologic/sdk/go/sumologic"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := sumologic.NewMonitor(ctx, "tf_logs_monitor_1", &sumologic.MonitorArgs{
			Name:        pulumi.String("Terraform Logs Monitor"),
			Description: pulumi.String("tf logs monitor"),
			Type:        pulumi.String("MonitorsLibraryMonitor"),
			IsDisabled:  pulumi.Bool(false),
			ContentType: pulumi.String("Monitor"),
			MonitorType: pulumi.String("Logs"),
			Queries: sumologic.MonitorQueryArray{
				&sumologic.MonitorQueryArgs{
					RowId: pulumi.String("A"),
					Query: pulumi.String("_sourceCategory=event-action info"),
				},
			},
			Triggers: sumologic.MonitorTriggerArray{
				&sumologic.MonitorTriggerArgs{
					ThresholdType:   pulumi.String("GreaterThan"),
					Threshold:       pulumi.Float64(40),
					TimeRange:       pulumi.String("15m"),
					OccurrenceType:  pulumi.String("ResultCount"),
					TriggerSource:   pulumi.String("AllResults"),
					TriggerType:     pulumi.String("Critical"),
					DetectionMethod: pulumi.String("StaticCondition"),
				},
				&sumologic.MonitorTriggerArgs{
					ThresholdType:    pulumi.String("LessThanOrEqual"),
					Threshold:        pulumi.Float64(40),
					TimeRange:        pulumi.String("15m"),
					OccurrenceType:   pulumi.String("ResultCount"),
					TriggerSource:    pulumi.String("AllResults"),
					TriggerType:      pulumi.String("ResolvedCritical"),
					DetectionMethod:  pulumi.String("StaticCondition"),
					ResolutionWindow: pulumi.String("5m"),
				},
			},
			Notifications: sumologic.MonitorNotificationArray{
				&sumologic.MonitorNotificationArgs{
					Notification: &sumologic.MonitorNotificationNotificationArgs{
						ConnectionType: pulumi.String("Email"),
						Recipients: pulumi.StringArray{
							pulumi.String("abc@example.com"),
						},
						Subject:     pulumi.String("Monitor Alert: {{TriggerType}} on {{Name}}"),
						TimeZone:    pulumi.String("PST"),
						MessageBody: pulumi.String("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}"),
					},
					RunForTriggerTypes: pulumi.StringArray{
						pulumi.String("Critical"),
						pulumi.String("ResolvedCritical"),
					},
				},
				&sumologic.MonitorNotificationArgs{
					Notification: &sumologic.MonitorNotificationNotificationArgs{
						ConnectionType: pulumi.String("Webhook"),
						ConnectionId:   pulumi.String("0000000000ABC123"),
					},
					RunForTriggerTypes: pulumi.StringArray{
						pulumi.String("Critical"),
						pulumi.String("ResolvedCritical"),
					},
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using SumoLogic = Pulumi.SumoLogic;

return await Deployment.RunAsync(() => 
{
    var tfLogsMonitor1 = new SumoLogic.Monitor("tf_logs_monitor_1", new()
    {
        Name = "Terraform Logs Monitor",
        Description = "tf logs monitor",
        Type = "MonitorsLibraryMonitor",
        IsDisabled = false,
        ContentType = "Monitor",
        MonitorType = "Logs",
        Queries = new[]
        {
            new SumoLogic.Inputs.MonitorQueryArgs
            {
                RowId = "A",
                Query = "_sourceCategory=event-action info",
            },
        },
        Triggers = new[]
        {
            new SumoLogic.Inputs.MonitorTriggerArgs
            {
                ThresholdType = "GreaterThan",
                Threshold = 40,
                TimeRange = "15m",
                OccurrenceType = "ResultCount",
                TriggerSource = "AllResults",
                TriggerType = "Critical",
                DetectionMethod = "StaticCondition",
            },
            new SumoLogic.Inputs.MonitorTriggerArgs
            {
                ThresholdType = "LessThanOrEqual",
                Threshold = 40,
                TimeRange = "15m",
                OccurrenceType = "ResultCount",
                TriggerSource = "AllResults",
                TriggerType = "ResolvedCritical",
                DetectionMethod = "StaticCondition",
                ResolutionWindow = "5m",
            },
        },
        Notifications = new[]
        {
            new SumoLogic.Inputs.MonitorNotificationArgs
            {
                Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
                {
                    ConnectionType = "Email",
                    Recipients = new[]
                    {
                        "abc@example.com",
                    },
                    Subject = "Monitor Alert: {{TriggerType}} on {{Name}}",
                    TimeZone = "PST",
                    MessageBody = "Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}",
                },
                RunForTriggerTypes = new[]
                {
                    "Critical",
                    "ResolvedCritical",
                },
            },
            new SumoLogic.Inputs.MonitorNotificationArgs
            {
                Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
                {
                    ConnectionType = "Webhook",
                    ConnectionId = "0000000000ABC123",
                },
                RunForTriggerTypes = new[]
                {
                    "Critical",
                    "ResolvedCritical",
                },
            },
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sumologic.Monitor;
import com.pulumi.sumologic.MonitorArgs;
import com.pulumi.sumologic.inputs.MonitorQueryArgs;
import com.pulumi.sumologic.inputs.MonitorTriggerArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationArgs;
import com.pulumi.sumologic.inputs.MonitorNotificationNotificationArgs;
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 tfLogsMonitor1 = new Monitor("tfLogsMonitor1", MonitorArgs.builder()
            .name("Terraform Logs Monitor")
            .description("tf logs monitor")
            .type("MonitorsLibraryMonitor")
            .isDisabled(false)
            .contentType("Monitor")
            .monitorType("Logs")
            .queries(MonitorQueryArgs.builder()
                .rowId("A")
                .query("_sourceCategory=event-action info")
                .build())
            .triggers(            
                MonitorTriggerArgs.builder()
                    .thresholdType("GreaterThan")
                    .threshold(40)
                    .timeRange("15m")
                    .occurrenceType("ResultCount")
                    .triggerSource("AllResults")
                    .triggerType("Critical")
                    .detectionMethod("StaticCondition")
                    .build(),
                MonitorTriggerArgs.builder()
                    .thresholdType("LessThanOrEqual")
                    .threshold(40)
                    .timeRange("15m")
                    .occurrenceType("ResultCount")
                    .triggerSource("AllResults")
                    .triggerType("ResolvedCritical")
                    .detectionMethod("StaticCondition")
                    .resolutionWindow("5m")
                    .build())
            .notifications(            
                MonitorNotificationArgs.builder()
                    .notification(MonitorNotificationNotificationArgs.builder()
                        .connectionType("Email")
                        .recipients("abc@example.com")
                        .subject("Monitor Alert: {{TriggerType}} on {{Name}}")
                        .timeZone("PST")
                        .messageBody("Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}")
                        .build())
                    .runForTriggerTypes(                    
                        "Critical",
                        "ResolvedCritical")
                    .build(),
                MonitorNotificationArgs.builder()
                    .notification(MonitorNotificationNotificationArgs.builder()
                        .connectionType("Webhook")
                        .connectionId("0000000000ABC123")
                        .build())
                    .runForTriggerTypes(                    
                        "Critical",
                        "ResolvedCritical")
                    .build())
            .build());

    }
}
Copy
resources:
  tfLogsMonitor1:
    type: sumologic:Monitor
    name: tf_logs_monitor_1
    properties:
      name: Terraform Logs Monitor
      description: tf logs monitor
      type: MonitorsLibraryMonitor
      isDisabled: false
      contentType: Monitor
      monitorType: Logs
      queries:
        - rowId: A
          query: _sourceCategory=event-action info
      triggers:
        - thresholdType: GreaterThan
          threshold: 40
          timeRange: 15m
          occurrenceType: ResultCount
          triggerSource: AllResults
          triggerType: Critical
          detectionMethod: StaticCondition
        - thresholdType: LessThanOrEqual
          threshold: 40
          timeRange: 15m
          occurrenceType: ResultCount
          triggerSource: AllResults
          triggerType: ResolvedCritical
          detectionMethod: StaticCondition
          resolutionWindow: 5m
      notifications:
        - notification:
            connectionType: Email
            recipients:
              - abc@example.com
            subject: 'Monitor Alert: {{TriggerType}} on {{Name}}'
            timeZone: PST
            messageBody: 'Triggered {{TriggerType}} Alert on {{Name}}: {{QueryURL}}'
          runForTriggerTypes:
            - Critical
            - ResolvedCritical
        - notification:
            connectionType: Webhook
            connectionId: 0000000000ABC123
          runForTriggerTypes:
            - Critical
            - ResolvedCritical
Copy

Create Monitor Resource

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

Constructor syntax

new Monitor(name: string, args: MonitorArgs, opts?: CustomResourceOptions);
@overload
def Monitor(resource_name: str,
            args: MonitorArgs,
            opts: Optional[ResourceOptions] = None)

@overload
def Monitor(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            monitor_type: Optional[str] = None,
            name: Optional[str] = None,
            triggers: Optional[Sequence[MonitorTriggerArgs]] = None,
            created_by: Optional[str] = None,
            description: Optional[str] = None,
            evaluation_delay: Optional[str] = None,
            group_notifications: Optional[bool] = None,
            is_disabled: Optional[bool] = None,
            is_locked: Optional[bool] = None,
            is_mutable: Optional[bool] = None,
            is_system: Optional[bool] = None,
            modified_at: Optional[str] = None,
            modified_by: Optional[str] = None,
            version: Optional[int] = None,
            created_at: Optional[str] = None,
            playbook: Optional[str] = None,
            notifications: Optional[Sequence[MonitorNotificationArgs]] = None,
            obj_permissions: Optional[Sequence[MonitorObjPermissionArgs]] = None,
            parent_id: Optional[str] = None,
            notification_group_fields: Optional[Sequence[str]] = None,
            post_request_map: Optional[Mapping[str, str]] = None,
            queries: Optional[Sequence[MonitorQueryArgs]] = None,
            slo_id: Optional[str] = None,
            tags: Optional[Mapping[str, str]] = None,
            time_zone: Optional[str] = None,
            trigger_conditions: Optional[MonitorTriggerConditionsArgs] = None,
            alert_name: Optional[str] = None,
            type: Optional[str] = None,
            content_type: Optional[str] = None)
func NewMonitor(ctx *Context, name string, args MonitorArgs, opts ...ResourceOption) (*Monitor, error)
public Monitor(string name, MonitorArgs args, CustomResourceOptions? opts = null)
public Monitor(String name, MonitorArgs args)
public Monitor(String name, MonitorArgs args, CustomResourceOptions options)
type: sumologic:Monitor
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. MonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. MonitorArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. MonitorArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. MonitorArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. MonitorArgs
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 monitorResource = new SumoLogic.Monitor("monitorResource", new()
{
    MonitorType = "string",
    Name = "string",
    CreatedBy = "string",
    Description = "string",
    EvaluationDelay = "string",
    GroupNotifications = false,
    IsDisabled = false,
    IsLocked = false,
    IsMutable = false,
    IsSystem = false,
    ModifiedAt = "string",
    ModifiedBy = "string",
    Version = 0,
    CreatedAt = "string",
    Playbook = "string",
    Notifications = new[]
    {
        new SumoLogic.Inputs.MonitorNotificationArgs
        {
            Notification = new SumoLogic.Inputs.MonitorNotificationNotificationArgs
            {
                ConnectionId = "string",
                ConnectionType = "string",
                MessageBody = "string",
                PayloadOverride = "string",
                Recipients = new[]
                {
                    "string",
                },
                ResolutionPayloadOverride = "string",
                Subject = "string",
                TimeZone = "string",
            },
            RunForTriggerTypes = new[]
            {
                "string",
            },
        },
    },
    ObjPermissions = new[]
    {
        new SumoLogic.Inputs.MonitorObjPermissionArgs
        {
            Permissions = new[]
            {
                "string",
            },
            SubjectId = "string",
            SubjectType = "string",
        },
    },
    ParentId = "string",
    NotificationGroupFields = new[]
    {
        "string",
    },
    PostRequestMap = 
    {
        { "string", "string" },
    },
    Queries = new[]
    {
        new SumoLogic.Inputs.MonitorQueryArgs
        {
            Query = "string",
            RowId = "string",
        },
    },
    SloId = "string",
    Tags = 
    {
        { "string", "string" },
    },
    TimeZone = "string",
    TriggerConditions = new SumoLogic.Inputs.MonitorTriggerConditionsArgs
    {
        LogsAnomalyCondition = new SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyConditionArgs
        {
            AnomalyDetectorType = "string",
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs
            {
                TimeRange = "string",
                MinAnomalyCount = 0,
                Sensitivity = 0,
            },
            Field = "string",
            Direction = "string",
        },
        LogsMissingDataCondition = new SumoLogic.Inputs.MonitorTriggerConditionsLogsMissingDataConditionArgs
        {
            TimeRange = "string",
            Frequency = "string",
        },
        LogsOutlierCondition = new SumoLogic.Inputs.MonitorTriggerConditionsLogsOutlierConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsLogsOutlierConditionCriticalArgs
            {
                Consecutive = 0,
                Threshold = 0,
                Window = 0,
            },
            Direction = "string",
            Field = "string",
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsLogsOutlierConditionWarningArgs
            {
                Consecutive = 0,
                Threshold = 0,
                Window = 0,
            },
        },
        LogsStaticCondition = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionCriticalArgs
            {
                Alert = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs
                {
                    Threshold = 0,
                    ThresholdType = "string",
                },
                Resolution = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs
                {
                    ResolutionWindow = "string",
                    Threshold = 0,
                    ThresholdType = "string",
                },
                TimeRange = "string",
                Frequency = "string",
            },
            Field = "string",
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionWarningArgs
            {
                Alert = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs
                {
                    Threshold = 0,
                    ThresholdType = "string",
                },
                Resolution = new SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs
                {
                    ResolutionWindow = "string",
                    Threshold = 0,
                    ThresholdType = "string",
                },
                TimeRange = "string",
                Frequency = "string",
            },
        },
        MetricsAnomalyCondition = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsAnomalyConditionArgs
        {
            AnomalyDetectorType = "string",
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs
            {
                TimeRange = "string",
                MinAnomalyCount = 0,
                Sensitivity = 0,
            },
            Direction = "string",
        },
        MetricsMissingDataCondition = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsMissingDataConditionArgs
        {
            TimeRange = "string",
            TriggerSource = "string",
        },
        MetricsOutlierCondition = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsOutlierConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs
            {
                BaselineWindow = "string",
                Threshold = 0,
            },
            Direction = "string",
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsOutlierConditionWarningArgs
            {
                BaselineWindow = "string",
                Threshold = 0,
            },
        },
        MetricsStaticCondition = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionCriticalArgs
            {
                Alert = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs
                {
                    MinDataPoints = 0,
                    Threshold = 0,
                    ThresholdType = "string",
                },
                OccurrenceType = "string",
                Resolution = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs
                {
                    MinDataPoints = 0,
                    OccurrenceType = "string",
                    Threshold = 0,
                    ThresholdType = "string",
                },
                TimeRange = "string",
            },
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionWarningArgs
            {
                Alert = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs
                {
                    MinDataPoints = 0,
                    Threshold = 0,
                    ThresholdType = "string",
                },
                OccurrenceType = "string",
                Resolution = new SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs
                {
                    MinDataPoints = 0,
                    OccurrenceType = "string",
                    Threshold = 0,
                    ThresholdType = "string",
                },
                TimeRange = "string",
            },
        },
        SloBurnRateCondition = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionCriticalArgs
            {
                BurnRateThreshold = 0,
                BurnRates = new[]
                {
                    new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs
                    {
                        BurnRateThreshold = 0,
                        TimeRange = "string",
                    },
                },
                TimeRange = "string",
            },
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionWarningArgs
            {
                BurnRateThreshold = 0,
                BurnRates = new[]
                {
                    new SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs
                    {
                        BurnRateThreshold = 0,
                        TimeRange = "string",
                    },
                },
                TimeRange = "string",
            },
        },
        SloSliCondition = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionArgs
        {
            Critical = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionCriticalArgs
            {
                SliThreshold = 0,
            },
            Warning = new SumoLogic.Inputs.MonitorTriggerConditionsSloSliConditionWarningArgs
            {
                SliThreshold = 0,
            },
        },
    },
    AlertName = "string",
    Type = "string",
    ContentType = "string",
});
Copy
example, err := sumologic.NewMonitor(ctx, "monitorResource", &sumologic.MonitorArgs{
	MonitorType:        pulumi.String("string"),
	Name:               pulumi.String("string"),
	CreatedBy:          pulumi.String("string"),
	Description:        pulumi.String("string"),
	EvaluationDelay:    pulumi.String("string"),
	GroupNotifications: pulumi.Bool(false),
	IsDisabled:         pulumi.Bool(false),
	IsLocked:           pulumi.Bool(false),
	IsMutable:          pulumi.Bool(false),
	IsSystem:           pulumi.Bool(false),
	ModifiedAt:         pulumi.String("string"),
	ModifiedBy:         pulumi.String("string"),
	Version:            pulumi.Int(0),
	CreatedAt:          pulumi.String("string"),
	Playbook:           pulumi.String("string"),
	Notifications: sumologic.MonitorNotificationArray{
		&sumologic.MonitorNotificationArgs{
			Notification: &sumologic.MonitorNotificationNotificationArgs{
				ConnectionId:    pulumi.String("string"),
				ConnectionType:  pulumi.String("string"),
				MessageBody:     pulumi.String("string"),
				PayloadOverride: pulumi.String("string"),
				Recipients: pulumi.StringArray{
					pulumi.String("string"),
				},
				ResolutionPayloadOverride: pulumi.String("string"),
				Subject:                   pulumi.String("string"),
				TimeZone:                  pulumi.String("string"),
			},
			RunForTriggerTypes: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	ObjPermissions: sumologic.MonitorObjPermissionArray{
		&sumologic.MonitorObjPermissionArgs{
			Permissions: pulumi.StringArray{
				pulumi.String("string"),
			},
			SubjectId:   pulumi.String("string"),
			SubjectType: pulumi.String("string"),
		},
	},
	ParentId: pulumi.String("string"),
	NotificationGroupFields: pulumi.StringArray{
		pulumi.String("string"),
	},
	PostRequestMap: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Queries: sumologic.MonitorQueryArray{
		&sumologic.MonitorQueryArgs{
			Query: pulumi.String("string"),
			RowId: pulumi.String("string"),
		},
	},
	SloId: pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	TimeZone: pulumi.String("string"),
	TriggerConditions: &sumologic.MonitorTriggerConditionsArgs{
		LogsAnomalyCondition: &sumologic.MonitorTriggerConditionsLogsAnomalyConditionArgs{
			AnomalyDetectorType: pulumi.String("string"),
			Critical: &sumologic.MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs{
				TimeRange:       pulumi.String("string"),
				MinAnomalyCount: pulumi.Int(0),
				Sensitivity:     pulumi.Float64(0),
			},
			Field:     pulumi.String("string"),
			Direction: pulumi.String("string"),
		},
		LogsMissingDataCondition: &sumologic.MonitorTriggerConditionsLogsMissingDataConditionArgs{
			TimeRange: pulumi.String("string"),
			Frequency: pulumi.String("string"),
		},
		LogsOutlierCondition: &sumologic.MonitorTriggerConditionsLogsOutlierConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsLogsOutlierConditionCriticalArgs{
				Consecutive: pulumi.Int(0),
				Threshold:   pulumi.Float64(0),
				Window:      pulumi.Int(0),
			},
			Direction: pulumi.String("string"),
			Field:     pulumi.String("string"),
			Warning: &sumologic.MonitorTriggerConditionsLogsOutlierConditionWarningArgs{
				Consecutive: pulumi.Int(0),
				Threshold:   pulumi.Float64(0),
				Window:      pulumi.Int(0),
			},
		},
		LogsStaticCondition: &sumologic.MonitorTriggerConditionsLogsStaticConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsLogsStaticConditionCriticalArgs{
				Alert: &sumologic.MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs{
					Threshold:     pulumi.Float64(0),
					ThresholdType: pulumi.String("string"),
				},
				Resolution: &sumologic.MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs{
					ResolutionWindow: pulumi.String("string"),
					Threshold:        pulumi.Float64(0),
					ThresholdType:    pulumi.String("string"),
				},
				TimeRange: pulumi.String("string"),
				Frequency: pulumi.String("string"),
			},
			Field: pulumi.String("string"),
			Warning: &sumologic.MonitorTriggerConditionsLogsStaticConditionWarningArgs{
				Alert: &sumologic.MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs{
					Threshold:     pulumi.Float64(0),
					ThresholdType: pulumi.String("string"),
				},
				Resolution: &sumologic.MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs{
					ResolutionWindow: pulumi.String("string"),
					Threshold:        pulumi.Float64(0),
					ThresholdType:    pulumi.String("string"),
				},
				TimeRange: pulumi.String("string"),
				Frequency: pulumi.String("string"),
			},
		},
		MetricsAnomalyCondition: &sumologic.MonitorTriggerConditionsMetricsAnomalyConditionArgs{
			AnomalyDetectorType: pulumi.String("string"),
			Critical: &sumologic.MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs{
				TimeRange:       pulumi.String("string"),
				MinAnomalyCount: pulumi.Int(0),
				Sensitivity:     pulumi.Float64(0),
			},
			Direction: pulumi.String("string"),
		},
		MetricsMissingDataCondition: &sumologic.MonitorTriggerConditionsMetricsMissingDataConditionArgs{
			TimeRange:     pulumi.String("string"),
			TriggerSource: pulumi.String("string"),
		},
		MetricsOutlierCondition: &sumologic.MonitorTriggerConditionsMetricsOutlierConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs{
				BaselineWindow: pulumi.String("string"),
				Threshold:      pulumi.Float64(0),
			},
			Direction: pulumi.String("string"),
			Warning: &sumologic.MonitorTriggerConditionsMetricsOutlierConditionWarningArgs{
				BaselineWindow: pulumi.String("string"),
				Threshold:      pulumi.Float64(0),
			},
		},
		MetricsStaticCondition: &sumologic.MonitorTriggerConditionsMetricsStaticConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsMetricsStaticConditionCriticalArgs{
				Alert: &sumologic.MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs{
					MinDataPoints: pulumi.Int(0),
					Threshold:     pulumi.Float64(0),
					ThresholdType: pulumi.String("string"),
				},
				OccurrenceType: pulumi.String("string"),
				Resolution: &sumologic.MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs{
					MinDataPoints:  pulumi.Int(0),
					OccurrenceType: pulumi.String("string"),
					Threshold:      pulumi.Float64(0),
					ThresholdType:  pulumi.String("string"),
				},
				TimeRange: pulumi.String("string"),
			},
			Warning: &sumologic.MonitorTriggerConditionsMetricsStaticConditionWarningArgs{
				Alert: &sumologic.MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs{
					MinDataPoints: pulumi.Int(0),
					Threshold:     pulumi.Float64(0),
					ThresholdType: pulumi.String("string"),
				},
				OccurrenceType: pulumi.String("string"),
				Resolution: &sumologic.MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs{
					MinDataPoints:  pulumi.Int(0),
					OccurrenceType: pulumi.String("string"),
					Threshold:      pulumi.Float64(0),
					ThresholdType:  pulumi.String("string"),
				},
				TimeRange: pulumi.String("string"),
			},
		},
		SloBurnRateCondition: &sumologic.MonitorTriggerConditionsSloBurnRateConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalArgs{
				BurnRateThreshold: pulumi.Float64(0),
				BurnRates: sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArray{
					&sumologic.MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs{
						BurnRateThreshold: pulumi.Float64(0),
						TimeRange:         pulumi.String("string"),
					},
				},
				TimeRange: pulumi.String("string"),
			},
			Warning: &sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningArgs{
				BurnRateThreshold: pulumi.Float64(0),
				BurnRates: sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArray{
					&sumologic.MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs{
						BurnRateThreshold: pulumi.Float64(0),
						TimeRange:         pulumi.String("string"),
					},
				},
				TimeRange: pulumi.String("string"),
			},
		},
		SloSliCondition: &sumologic.MonitorTriggerConditionsSloSliConditionArgs{
			Critical: &sumologic.MonitorTriggerConditionsSloSliConditionCriticalArgs{
				SliThreshold: pulumi.Float64(0),
			},
			Warning: &sumologic.MonitorTriggerConditionsSloSliConditionWarningArgs{
				SliThreshold: pulumi.Float64(0),
			},
		},
	},
	AlertName:   pulumi.String("string"),
	Type:        pulumi.String("string"),
	ContentType: pulumi.String("string"),
})
Copy
var monitorResource = new Monitor("monitorResource", MonitorArgs.builder()
    .monitorType("string")
    .name("string")
    .createdBy("string")
    .description("string")
    .evaluationDelay("string")
    .groupNotifications(false)
    .isDisabled(false)
    .isLocked(false)
    .isMutable(false)
    .isSystem(false)
    .modifiedAt("string")
    .modifiedBy("string")
    .version(0)
    .createdAt("string")
    .playbook("string")
    .notifications(MonitorNotificationArgs.builder()
        .notification(MonitorNotificationNotificationArgs.builder()
            .connectionId("string")
            .connectionType("string")
            .messageBody("string")
            .payloadOverride("string")
            .recipients("string")
            .resolutionPayloadOverride("string")
            .subject("string")
            .timeZone("string")
            .build())
        .runForTriggerTypes("string")
        .build())
    .objPermissions(MonitorObjPermissionArgs.builder()
        .permissions("string")
        .subjectId("string")
        .subjectType("string")
        .build())
    .parentId("string")
    .notificationGroupFields("string")
    .postRequestMap(Map.of("string", "string"))
    .queries(MonitorQueryArgs.builder()
        .query("string")
        .rowId("string")
        .build())
    .sloId("string")
    .tags(Map.of("string", "string"))
    .timeZone("string")
    .triggerConditions(MonitorTriggerConditionsArgs.builder()
        .logsAnomalyCondition(MonitorTriggerConditionsLogsAnomalyConditionArgs.builder()
            .anomalyDetectorType("string")
            .critical(MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs.builder()
                .timeRange("string")
                .minAnomalyCount(0)
                .sensitivity(0)
                .build())
            .field("string")
            .direction("string")
            .build())
        .logsMissingDataCondition(MonitorTriggerConditionsLogsMissingDataConditionArgs.builder()
            .timeRange("string")
            .frequency("string")
            .build())
        .logsOutlierCondition(MonitorTriggerConditionsLogsOutlierConditionArgs.builder()
            .critical(MonitorTriggerConditionsLogsOutlierConditionCriticalArgs.builder()
                .consecutive(0)
                .threshold(0)
                .window(0)
                .build())
            .direction("string")
            .field("string")
            .warning(MonitorTriggerConditionsLogsOutlierConditionWarningArgs.builder()
                .consecutive(0)
                .threshold(0)
                .window(0)
                .build())
            .build())
        .logsStaticCondition(MonitorTriggerConditionsLogsStaticConditionArgs.builder()
            .critical(MonitorTriggerConditionsLogsStaticConditionCriticalArgs.builder()
                .alert(MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs.builder()
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .resolution(MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs.builder()
                    .resolutionWindow("string")
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .timeRange("string")
                .frequency("string")
                .build())
            .field("string")
            .warning(MonitorTriggerConditionsLogsStaticConditionWarningArgs.builder()
                .alert(MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs.builder()
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .resolution(MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs.builder()
                    .resolutionWindow("string")
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .timeRange("string")
                .frequency("string")
                .build())
            .build())
        .metricsAnomalyCondition(MonitorTriggerConditionsMetricsAnomalyConditionArgs.builder()
            .anomalyDetectorType("string")
            .critical(MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs.builder()
                .timeRange("string")
                .minAnomalyCount(0)
                .sensitivity(0)
                .build())
            .direction("string")
            .build())
        .metricsMissingDataCondition(MonitorTriggerConditionsMetricsMissingDataConditionArgs.builder()
            .timeRange("string")
            .triggerSource("string")
            .build())
        .metricsOutlierCondition(MonitorTriggerConditionsMetricsOutlierConditionArgs.builder()
            .critical(MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs.builder()
                .baselineWindow("string")
                .threshold(0)
                .build())
            .direction("string")
            .warning(MonitorTriggerConditionsMetricsOutlierConditionWarningArgs.builder()
                .baselineWindow("string")
                .threshold(0)
                .build())
            .build())
        .metricsStaticCondition(MonitorTriggerConditionsMetricsStaticConditionArgs.builder()
            .critical(MonitorTriggerConditionsMetricsStaticConditionCriticalArgs.builder()
                .alert(MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs.builder()
                    .minDataPoints(0)
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .occurrenceType("string")
                .resolution(MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs.builder()
                    .minDataPoints(0)
                    .occurrenceType("string")
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .timeRange("string")
                .build())
            .warning(MonitorTriggerConditionsMetricsStaticConditionWarningArgs.builder()
                .alert(MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs.builder()
                    .minDataPoints(0)
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .occurrenceType("string")
                .resolution(MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs.builder()
                    .minDataPoints(0)
                    .occurrenceType("string")
                    .threshold(0)
                    .thresholdType("string")
                    .build())
                .timeRange("string")
                .build())
            .build())
        .sloBurnRateCondition(MonitorTriggerConditionsSloBurnRateConditionArgs.builder()
            .critical(MonitorTriggerConditionsSloBurnRateConditionCriticalArgs.builder()
                .burnRateThreshold(0)
                .burnRates(MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs.builder()
                    .burnRateThreshold(0)
                    .timeRange("string")
                    .build())
                .timeRange("string")
                .build())
            .warning(MonitorTriggerConditionsSloBurnRateConditionWarningArgs.builder()
                .burnRateThreshold(0)
                .burnRates(MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs.builder()
                    .burnRateThreshold(0)
                    .timeRange("string")
                    .build())
                .timeRange("string")
                .build())
            .build())
        .sloSliCondition(MonitorTriggerConditionsSloSliConditionArgs.builder()
            .critical(MonitorTriggerConditionsSloSliConditionCriticalArgs.builder()
                .sliThreshold(0)
                .build())
            .warning(MonitorTriggerConditionsSloSliConditionWarningArgs.builder()
                .sliThreshold(0)
                .build())
            .build())
        .build())
    .alertName("string")
    .type("string")
    .contentType("string")
    .build());
Copy
monitor_resource = sumologic.Monitor("monitorResource",
    monitor_type="string",
    name="string",
    created_by="string",
    description="string",
    evaluation_delay="string",
    group_notifications=False,
    is_disabled=False,
    is_locked=False,
    is_mutable=False,
    is_system=False,
    modified_at="string",
    modified_by="string",
    version=0,
    created_at="string",
    playbook="string",
    notifications=[{
        "notification": {
            "connection_id": "string",
            "connection_type": "string",
            "message_body": "string",
            "payload_override": "string",
            "recipients": ["string"],
            "resolution_payload_override": "string",
            "subject": "string",
            "time_zone": "string",
        },
        "run_for_trigger_types": ["string"],
    }],
    obj_permissions=[{
        "permissions": ["string"],
        "subject_id": "string",
        "subject_type": "string",
    }],
    parent_id="string",
    notification_group_fields=["string"],
    post_request_map={
        "string": "string",
    },
    queries=[{
        "query": "string",
        "row_id": "string",
    }],
    slo_id="string",
    tags={
        "string": "string",
    },
    time_zone="string",
    trigger_conditions={
        "logs_anomaly_condition": {
            "anomaly_detector_type": "string",
            "critical": {
                "time_range": "string",
                "min_anomaly_count": 0,
                "sensitivity": 0,
            },
            "field": "string",
            "direction": "string",
        },
        "logs_missing_data_condition": {
            "time_range": "string",
            "frequency": "string",
        },
        "logs_outlier_condition": {
            "critical": {
                "consecutive": 0,
                "threshold": 0,
                "window": 0,
            },
            "direction": "string",
            "field": "string",
            "warning": {
                "consecutive": 0,
                "threshold": 0,
                "window": 0,
            },
        },
        "logs_static_condition": {
            "critical": {
                "alert": {
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "resolution": {
                    "resolution_window": "string",
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "time_range": "string",
                "frequency": "string",
            },
            "field": "string",
            "warning": {
                "alert": {
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "resolution": {
                    "resolution_window": "string",
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "time_range": "string",
                "frequency": "string",
            },
        },
        "metrics_anomaly_condition": {
            "anomaly_detector_type": "string",
            "critical": {
                "time_range": "string",
                "min_anomaly_count": 0,
                "sensitivity": 0,
            },
            "direction": "string",
        },
        "metrics_missing_data_condition": {
            "time_range": "string",
            "trigger_source": "string",
        },
        "metrics_outlier_condition": {
            "critical": {
                "baseline_window": "string",
                "threshold": 0,
            },
            "direction": "string",
            "warning": {
                "baseline_window": "string",
                "threshold": 0,
            },
        },
        "metrics_static_condition": {
            "critical": {
                "alert": {
                    "min_data_points": 0,
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "occurrence_type": "string",
                "resolution": {
                    "min_data_points": 0,
                    "occurrence_type": "string",
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "time_range": "string",
            },
            "warning": {
                "alert": {
                    "min_data_points": 0,
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "occurrence_type": "string",
                "resolution": {
                    "min_data_points": 0,
                    "occurrence_type": "string",
                    "threshold": 0,
                    "threshold_type": "string",
                },
                "time_range": "string",
            },
        },
        "slo_burn_rate_condition": {
            "critical": {
                "burn_rate_threshold": 0,
                "burn_rates": [{
                    "burn_rate_threshold": 0,
                    "time_range": "string",
                }],
                "time_range": "string",
            },
            "warning": {
                "burn_rate_threshold": 0,
                "burn_rates": [{
                    "burn_rate_threshold": 0,
                    "time_range": "string",
                }],
                "time_range": "string",
            },
        },
        "slo_sli_condition": {
            "critical": {
                "sli_threshold": 0,
            },
            "warning": {
                "sli_threshold": 0,
            },
        },
    },
    alert_name="string",
    type="string",
    content_type="string")
Copy
const monitorResource = new sumologic.Monitor("monitorResource", {
    monitorType: "string",
    name: "string",
    createdBy: "string",
    description: "string",
    evaluationDelay: "string",
    groupNotifications: false,
    isDisabled: false,
    isLocked: false,
    isMutable: false,
    isSystem: false,
    modifiedAt: "string",
    modifiedBy: "string",
    version: 0,
    createdAt: "string",
    playbook: "string",
    notifications: [{
        notification: {
            connectionId: "string",
            connectionType: "string",
            messageBody: "string",
            payloadOverride: "string",
            recipients: ["string"],
            resolutionPayloadOverride: "string",
            subject: "string",
            timeZone: "string",
        },
        runForTriggerTypes: ["string"],
    }],
    objPermissions: [{
        permissions: ["string"],
        subjectId: "string",
        subjectType: "string",
    }],
    parentId: "string",
    notificationGroupFields: ["string"],
    postRequestMap: {
        string: "string",
    },
    queries: [{
        query: "string",
        rowId: "string",
    }],
    sloId: "string",
    tags: {
        string: "string",
    },
    timeZone: "string",
    triggerConditions: {
        logsAnomalyCondition: {
            anomalyDetectorType: "string",
            critical: {
                timeRange: "string",
                minAnomalyCount: 0,
                sensitivity: 0,
            },
            field: "string",
            direction: "string",
        },
        logsMissingDataCondition: {
            timeRange: "string",
            frequency: "string",
        },
        logsOutlierCondition: {
            critical: {
                consecutive: 0,
                threshold: 0,
                window: 0,
            },
            direction: "string",
            field: "string",
            warning: {
                consecutive: 0,
                threshold: 0,
                window: 0,
            },
        },
        logsStaticCondition: {
            critical: {
                alert: {
                    threshold: 0,
                    thresholdType: "string",
                },
                resolution: {
                    resolutionWindow: "string",
                    threshold: 0,
                    thresholdType: "string",
                },
                timeRange: "string",
                frequency: "string",
            },
            field: "string",
            warning: {
                alert: {
                    threshold: 0,
                    thresholdType: "string",
                },
                resolution: {
                    resolutionWindow: "string",
                    threshold: 0,
                    thresholdType: "string",
                },
                timeRange: "string",
                frequency: "string",
            },
        },
        metricsAnomalyCondition: {
            anomalyDetectorType: "string",
            critical: {
                timeRange: "string",
                minAnomalyCount: 0,
                sensitivity: 0,
            },
            direction: "string",
        },
        metricsMissingDataCondition: {
            timeRange: "string",
            triggerSource: "string",
        },
        metricsOutlierCondition: {
            critical: {
                baselineWindow: "string",
                threshold: 0,
            },
            direction: "string",
            warning: {
                baselineWindow: "string",
                threshold: 0,
            },
        },
        metricsStaticCondition: {
            critical: {
                alert: {
                    minDataPoints: 0,
                    threshold: 0,
                    thresholdType: "string",
                },
                occurrenceType: "string",
                resolution: {
                    minDataPoints: 0,
                    occurrenceType: "string",
                    threshold: 0,
                    thresholdType: "string",
                },
                timeRange: "string",
            },
            warning: {
                alert: {
                    minDataPoints: 0,
                    threshold: 0,
                    thresholdType: "string",
                },
                occurrenceType: "string",
                resolution: {
                    minDataPoints: 0,
                    occurrenceType: "string",
                    threshold: 0,
                    thresholdType: "string",
                },
                timeRange: "string",
            },
        },
        sloBurnRateCondition: {
            critical: {
                burnRateThreshold: 0,
                burnRates: [{
                    burnRateThreshold: 0,
                    timeRange: "string",
                }],
                timeRange: "string",
            },
            warning: {
                burnRateThreshold: 0,
                burnRates: [{
                    burnRateThreshold: 0,
                    timeRange: "string",
                }],
                timeRange: "string",
            },
        },
        sloSliCondition: {
            critical: {
                sliThreshold: 0,
            },
            warning: {
                sliThreshold: 0,
            },
        },
    },
    alertName: "string",
    type: "string",
    contentType: "string",
});
Copy
type: sumologic:Monitor
properties:
    alertName: string
    contentType: string
    createdAt: string
    createdBy: string
    description: string
    evaluationDelay: string
    groupNotifications: false
    isDisabled: false
    isLocked: false
    isMutable: false
    isSystem: false
    modifiedAt: string
    modifiedBy: string
    monitorType: string
    name: string
    notificationGroupFields:
        - string
    notifications:
        - notification:
            connectionId: string
            connectionType: string
            messageBody: string
            payloadOverride: string
            recipients:
                - string
            resolutionPayloadOverride: string
            subject: string
            timeZone: string
          runForTriggerTypes:
            - string
    objPermissions:
        - permissions:
            - string
          subjectId: string
          subjectType: string
    parentId: string
    playbook: string
    postRequestMap:
        string: string
    queries:
        - query: string
          rowId: string
    sloId: string
    tags:
        string: string
    timeZone: string
    triggerConditions:
        logsAnomalyCondition:
            anomalyDetectorType: string
            critical:
                minAnomalyCount: 0
                sensitivity: 0
                timeRange: string
            direction: string
            field: string
        logsMissingDataCondition:
            frequency: string
            timeRange: string
        logsOutlierCondition:
            critical:
                consecutive: 0
                threshold: 0
                window: 0
            direction: string
            field: string
            warning:
                consecutive: 0
                threshold: 0
                window: 0
        logsStaticCondition:
            critical:
                alert:
                    threshold: 0
                    thresholdType: string
                frequency: string
                resolution:
                    resolutionWindow: string
                    threshold: 0
                    thresholdType: string
                timeRange: string
            field: string
            warning:
                alert:
                    threshold: 0
                    thresholdType: string
                frequency: string
                resolution:
                    resolutionWindow: string
                    threshold: 0
                    thresholdType: string
                timeRange: string
        metricsAnomalyCondition:
            anomalyDetectorType: string
            critical:
                minAnomalyCount: 0
                sensitivity: 0
                timeRange: string
            direction: string
        metricsMissingDataCondition:
            timeRange: string
            triggerSource: string
        metricsOutlierCondition:
            critical:
                baselineWindow: string
                threshold: 0
            direction: string
            warning:
                baselineWindow: string
                threshold: 0
        metricsStaticCondition:
            critical:
                alert:
                    minDataPoints: 0
                    threshold: 0
                    thresholdType: string
                occurrenceType: string
                resolution:
                    minDataPoints: 0
                    occurrenceType: string
                    threshold: 0
                    thresholdType: string
                timeRange: string
            warning:
                alert:
                    minDataPoints: 0
                    threshold: 0
                    thresholdType: string
                occurrenceType: string
                resolution:
                    minDataPoints: 0
                    occurrenceType: string
                    threshold: 0
                    thresholdType: string
                timeRange: string
        sloBurnRateCondition:
            critical:
                burnRateThreshold: 0
                burnRates:
                    - burnRateThreshold: 0
                      timeRange: string
                timeRange: string
            warning:
                burnRateThreshold: 0
                burnRates:
                    - burnRateThreshold: 0
                      timeRange: string
                timeRange: string
        sloSliCondition:
            critical:
                sliThreshold: 0
            warning:
                sliThreshold: 0
    type: string
    version: 0
Copy

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

MonitorType This property is required. string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
AlertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
ContentType string
The type of the content object. Valid value:

  • Monitor
CreatedAt string
CreatedBy string
Description string
The description of the monitor.
EvaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

GroupNotifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
IsDisabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string
The name of the monitor. The name must be alphanumeric.
NotificationGroupFields List<string>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
Notifications List<Pulumi.SumoLogic.Inputs.MonitorNotification>
The notifications the monitor will send when the respective trigger condition is met.
ObjPermissions List<Pulumi.SumoLogic.Inputs.MonitorObjPermission>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
ParentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
Playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
PostRequestMap Dictionary<string, string>
Queries List<Pulumi.SumoLogic.Inputs.MonitorQuery>
All queries from the monitor.
SloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
Tags Dictionary<string, string>
A map defining tag keys and tag values for the Monitor.
TimeZone string
TriggerConditions Pulumi.SumoLogic.Inputs.MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
Triggers List<Pulumi.SumoLogic.Inputs.MonitorTrigger>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

Type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
Version int
MonitorType This property is required. string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
AlertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
ContentType string
The type of the content object. Valid value:

  • Monitor
CreatedAt string
CreatedBy string
Description string
The description of the monitor.
EvaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

GroupNotifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
IsDisabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
Name string
The name of the monitor. The name must be alphanumeric.
NotificationGroupFields []string
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
Notifications []MonitorNotificationArgs
The notifications the monitor will send when the respective trigger condition is met.
ObjPermissions []MonitorObjPermissionArgs
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
ParentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
Playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
PostRequestMap map[string]string
Queries []MonitorQueryArgs
All queries from the monitor.
SloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
Tags map[string]string
A map defining tag keys and tag values for the Monitor.
TimeZone string
TriggerConditions MonitorTriggerConditionsArgs
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
Triggers []MonitorTriggerArgs
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

Type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
Version int
monitorType This property is required. String
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
alertName String
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType String
The type of the content object. Valid value:

  • Monitor
createdAt String
createdBy String
description String
The description of the monitor.
evaluationDelay String

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications Boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled Boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String
The name of the monitor. The name must be alphanumeric.
notificationGroupFields List<String>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications List<MonitorNotification>
The notifications the monitor will send when the respective trigger condition is met.
objPermissions List<MonitorObjPermission>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId String
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook String
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap Map<String,String>
queries List<MonitorQuery>
All queries from the monitor.
sloId String
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
tags Map<String,String>
A map defining tag keys and tag values for the Monitor.
timeZone String
triggerConditions MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers List<MonitorTrigger>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type String
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version Integer
monitorType This property is required. string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
alertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType string
The type of the content object. Valid value:

  • Monitor
createdAt string
createdBy string
description string
The description of the monitor.
evaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked boolean
isMutable boolean
isSystem boolean
modifiedAt string
modifiedBy string
name string
The name of the monitor. The name must be alphanumeric.
notificationGroupFields string[]
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications MonitorNotification[]
The notifications the monitor will send when the respective trigger condition is met.
objPermissions MonitorObjPermission[]
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap {[key: string]: string}
queries MonitorQuery[]
All queries from the monitor.
sloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
tags {[key: string]: string}
A map defining tag keys and tag values for the Monitor.
timeZone string
triggerConditions MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers MonitorTrigger[]
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version number
monitor_type This property is required. str
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
alert_name str
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
content_type str
The type of the content object. Valid value:

  • Monitor
created_at str
created_by str
description str
The description of the monitor.
evaluation_delay str

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

group_notifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
is_disabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
is_locked bool
is_mutable bool
is_system bool
modified_at str
modified_by str
name str
The name of the monitor. The name must be alphanumeric.
notification_group_fields Sequence[str]
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications Sequence[MonitorNotificationArgs]
The notifications the monitor will send when the respective trigger condition is met.
obj_permissions Sequence[MonitorObjPermissionArgs]
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parent_id str
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook str
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
post_request_map Mapping[str, str]
queries Sequence[MonitorQueryArgs]
All queries from the monitor.
slo_id str
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
tags Mapping[str, str]
A map defining tag keys and tag values for the Monitor.
time_zone str
trigger_conditions MonitorTriggerConditionsArgs
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers Sequence[MonitorTriggerArgs]
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type str
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version int
monitorType This property is required. String
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
alertName String
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType String
The type of the content object. Valid value:

  • Monitor
createdAt String
createdBy String
description String
The description of the monitor.
evaluationDelay String

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications Boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled Boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
name String
The name of the monitor. The name must be alphanumeric.
notificationGroupFields List<String>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications List<Property Map>
The notifications the monitor will send when the respective trigger condition is met.
objPermissions List<Property Map>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId String
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook String
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap Map<String>
queries List<Property Map>
All queries from the monitor.
sloId String
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
tags Map<String>
A map defining tag keys and tag values for the Monitor.
timeZone String
triggerConditions Property Map
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers List<Property Map>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type String
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version Number

Outputs

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

Id string
The provider-assigned unique ID for this managed resource.
Statuses List<string>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
Id string
The provider-assigned unique ID for this managed resource.
Statuses []string
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
id String
The provider-assigned unique ID for this managed resource.
statuses List<String>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
id string
The provider-assigned unique ID for this managed resource.
statuses string[]
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
id str
The provider-assigned unique ID for this managed resource.
statuses Sequence[str]
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
id String
The provider-assigned unique ID for this managed resource.
statuses List<String>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled

Look up Existing Monitor Resource

Get an existing Monitor 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?: MonitorState, opts?: CustomResourceOptions): Monitor
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        alert_name: Optional[str] = None,
        content_type: Optional[str] = None,
        created_at: Optional[str] = None,
        created_by: Optional[str] = None,
        description: Optional[str] = None,
        evaluation_delay: Optional[str] = None,
        group_notifications: Optional[bool] = None,
        is_disabled: Optional[bool] = None,
        is_locked: Optional[bool] = None,
        is_mutable: Optional[bool] = None,
        is_system: Optional[bool] = None,
        modified_at: Optional[str] = None,
        modified_by: Optional[str] = None,
        monitor_type: Optional[str] = None,
        name: Optional[str] = None,
        notification_group_fields: Optional[Sequence[str]] = None,
        notifications: Optional[Sequence[MonitorNotificationArgs]] = None,
        obj_permissions: Optional[Sequence[MonitorObjPermissionArgs]] = None,
        parent_id: Optional[str] = None,
        playbook: Optional[str] = None,
        post_request_map: Optional[Mapping[str, str]] = None,
        queries: Optional[Sequence[MonitorQueryArgs]] = None,
        slo_id: Optional[str] = None,
        statuses: Optional[Sequence[str]] = None,
        tags: Optional[Mapping[str, str]] = None,
        time_zone: Optional[str] = None,
        trigger_conditions: Optional[MonitorTriggerConditionsArgs] = None,
        triggers: Optional[Sequence[MonitorTriggerArgs]] = None,
        type: Optional[str] = None,
        version: Optional[int] = None) -> Monitor
func GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)
public static Monitor Get(string name, Input<string> id, MonitorState? state, CustomResourceOptions? opts = null)
public static Monitor get(String name, Output<String> id, MonitorState state, CustomResourceOptions options)
resources:  _:    type: sumologic:Monitor    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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:
AlertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
ContentType string
The type of the content object. Valid value:

  • Monitor
CreatedAt string
CreatedBy string
Description string
The description of the monitor.
EvaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

GroupNotifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
IsDisabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
MonitorType string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
Name string
The name of the monitor. The name must be alphanumeric.
NotificationGroupFields List<string>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
Notifications List<Pulumi.SumoLogic.Inputs.MonitorNotification>
The notifications the monitor will send when the respective trigger condition is met.
ObjPermissions List<Pulumi.SumoLogic.Inputs.MonitorObjPermission>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
ParentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
Playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
PostRequestMap Dictionary<string, string>
Queries List<Pulumi.SumoLogic.Inputs.MonitorQuery>
All queries from the monitor.
SloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
Statuses List<string>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
Tags Dictionary<string, string>
A map defining tag keys and tag values for the Monitor.
TimeZone string
TriggerConditions Pulumi.SumoLogic.Inputs.MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
Triggers List<Pulumi.SumoLogic.Inputs.MonitorTrigger>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

Type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
Version int
AlertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
ContentType string
The type of the content object. Valid value:

  • Monitor
CreatedAt string
CreatedBy string
Description string
The description of the monitor.
EvaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

GroupNotifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
IsDisabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
IsLocked bool
IsMutable bool
IsSystem bool
ModifiedAt string
ModifiedBy string
MonitorType string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
Name string
The name of the monitor. The name must be alphanumeric.
NotificationGroupFields []string
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
Notifications []MonitorNotificationArgs
The notifications the monitor will send when the respective trigger condition is met.
ObjPermissions []MonitorObjPermissionArgs
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
ParentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
Playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
PostRequestMap map[string]string
Queries []MonitorQueryArgs
All queries from the monitor.
SloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
Statuses []string
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
Tags map[string]string
A map defining tag keys and tag values for the Monitor.
TimeZone string
TriggerConditions MonitorTriggerConditionsArgs
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
Triggers []MonitorTriggerArgs
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

Type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
Version int
alertName String
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType String
The type of the content object. Valid value:

  • Monitor
createdAt String
createdBy String
description String
The description of the monitor.
evaluationDelay String

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications Boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled Boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
monitorType String
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
name String
The name of the monitor. The name must be alphanumeric.
notificationGroupFields List<String>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications List<MonitorNotification>
The notifications the monitor will send when the respective trigger condition is met.
objPermissions List<MonitorObjPermission>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId String
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook String
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap Map<String,String>
queries List<MonitorQuery>
All queries from the monitor.
sloId String
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
statuses List<String>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
tags Map<String,String>
A map defining tag keys and tag values for the Monitor.
timeZone String
triggerConditions MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers List<MonitorTrigger>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type String
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version Integer
alertName string
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType string
The type of the content object. Valid value:

  • Monitor
createdAt string
createdBy string
description string
The description of the monitor.
evaluationDelay string

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked boolean
isMutable boolean
isSystem boolean
modifiedAt string
modifiedBy string
monitorType string
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
name string
The name of the monitor. The name must be alphanumeric.
notificationGroupFields string[]
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications MonitorNotification[]
The notifications the monitor will send when the respective trigger condition is met.
objPermissions MonitorObjPermission[]
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId string
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook string
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap {[key: string]: string}
queries MonitorQuery[]
All queries from the monitor.
sloId string
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
statuses string[]
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
tags {[key: string]: string}
A map defining tag keys and tag values for the Monitor.
timeZone string
triggerConditions MonitorTriggerConditions
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers MonitorTrigger[]
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type string
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version number
alert_name str
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
content_type str
The type of the content object. Valid value:

  • Monitor
created_at str
created_by str
description str
The description of the monitor.
evaluation_delay str

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

group_notifications bool
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
is_disabled bool
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
is_locked bool
is_mutable bool
is_system bool
modified_at str
modified_by str
monitor_type str
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
name str
The name of the monitor. The name must be alphanumeric.
notification_group_fields Sequence[str]
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications Sequence[MonitorNotificationArgs]
The notifications the monitor will send when the respective trigger condition is met.
obj_permissions Sequence[MonitorObjPermissionArgs]
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parent_id str
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook str
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
post_request_map Mapping[str, str]
queries Sequence[MonitorQueryArgs]
All queries from the monitor.
slo_id str
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
statuses Sequence[str]
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
tags Mapping[str, str]
A map defining tag keys and tag values for the Monitor.
time_zone str
trigger_conditions MonitorTriggerConditionsArgs
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers Sequence[MonitorTriggerArgs]
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type str
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version int
alertName String
The display name when creating alerts. Monitor name will be used if alert_name is not provided. All template variables can be used in alert_name except {{AlertName}}, {{AlertResponseURL}}, {{ResultsJson}}, and {{Playbook}}.
contentType String
The type of the content object. Valid value:

  • Monitor
createdAt String
createdBy String
description String
The description of the monitor.
evaluationDelay String

Evaluation delay as a string consists of the following elements:

  1. <number>: number of time units,
  2. <time_unit>: time unit; possible values are: h (hour), m (minute), s (second).

Multiple pairs of <number><time_unit> may be provided. For example, 2m50s means 2 minutes and 50 seconds.

groupNotifications Boolean
Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
isDisabled Boolean
Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
isLocked Boolean
isMutable Boolean
isSystem Boolean
modifiedAt String
modifiedBy String
monitorType String
The type of monitor. Valid values:

  • Logs: A logs query monitor.
  • Metrics: A metrics query monitor.
  • Slo: A SLO based monitor.
name String
The name of the monitor. The name must be alphanumeric.
notificationGroupFields List<String>
The set of fields to be used to group alerts and notifications for a monitor. The value of this field will be considered only when 'groupNotifications' is true. The fields with very high cardinality such as _blockid, _raw, _messagetime, _receipttime, and _messageid are not allowed for Alert Grouping.
notifications List<Property Map>
The notifications the monitor will send when the respective trigger condition is met.
objPermissions List<Property Map>
obj_permission construct represents a Permission Statement associated with this Monitor. A set of obj_permission constructs can be specified under a Monitor. An obj_permission construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if no obj_permission construct is specified at a Monitor and the FGP feature is enabled at the account.
parentId String
The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
playbook String
Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
postRequestMap Map<String>
queries List<Property Map>
All queries from the monitor.
sloId String
Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
statuses List<String>
The current status for this monitor. Values are:

  • Critical
  • Warning
  • MissingData
  • Normal
  • Disabled
tags Map<String>
A map defining tag keys and tag values for the Monitor.
timeZone String
triggerConditions Property Map
Defines the conditions of when to send notifications. NOTE: trigger_conditions supplants the triggers argument.
triggers List<Property Map>
Defines the conditions of when to send notifications.

Deprecated: The field triggers is deprecated and will be removed in a future release of the provider -- please use trigger_conditions instead.

type String
The type of object model. Valid value:

  • MonitorsLibraryMonitor
version Number

Supporting Types

MonitorNotification
, MonitorNotificationArgs

Notification This property is required. Pulumi.SumoLogic.Inputs.MonitorNotificationNotification
RunForTriggerTypes This property is required. List<string>
Notification This property is required. MonitorNotificationNotification
RunForTriggerTypes This property is required. []string
notification This property is required. MonitorNotificationNotification
runForTriggerTypes This property is required. List<String>
notification This property is required. MonitorNotificationNotification
runForTriggerTypes This property is required. string[]
notification This property is required. MonitorNotificationNotification
run_for_trigger_types This property is required. Sequence[str]
notification This property is required. Property Map
runForTriggerTypes This property is required. List<String>

MonitorNotificationNotification
, MonitorNotificationNotificationArgs

ActionType string

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

ConnectionId string
ConnectionType string
MessageBody string
PayloadOverride string
Recipients List<string>
ResolutionPayloadOverride string
Subject string
TimeZone string
ActionType string

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

ConnectionId string
ConnectionType string
MessageBody string
PayloadOverride string
Recipients []string
ResolutionPayloadOverride string
Subject string
TimeZone string
actionType String

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

connectionId String
connectionType String
messageBody String
payloadOverride String
recipients List<String>
resolutionPayloadOverride String
subject String
timeZone String
actionType string

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

connectionId string
connectionType string
messageBody string
payloadOverride string
recipients string[]
resolutionPayloadOverride string
subject string
timeZone string
action_type str

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

connection_id str
connection_type str
message_body str
payload_override str
recipients Sequence[str]
resolution_payload_override str
subject str
time_zone str
actionType String

Deprecated: The field action_type is deprecated and will be removed in a future release of the provider - please use connection_type instead.

connectionId String
connectionType String
messageBody String
payloadOverride String
recipients List<String>
resolutionPayloadOverride String
subject String
timeZone String

MonitorObjPermission
, MonitorObjPermissionArgs

Permissions This property is required. List<string>

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

SubjectId This property is required. string
A Role ID or the Org ID of the account
SubjectType This property is required. string
Valid values:
Permissions This property is required. []string

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

SubjectId This property is required. string
A Role ID or the Org ID of the account
SubjectType This property is required. string
Valid values:
permissions This property is required. List<String>

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

subjectId This property is required. String
A Role ID or the Org ID of the account
subjectType This property is required. String
Valid values:
permissions This property is required. string[]

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

subjectId This property is required. string
A Role ID or the Org ID of the account
subjectType This property is required. string
Valid values:
permissions This property is required. Sequence[str]

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

subject_id This property is required. str
A Role ID or the Org ID of the account
subject_type This property is required. str
Valid values:
permissions This property is required. List<String>

A Set of Permissions. Valid Permission Values:

  • Read
  • Update
  • Delete
  • Manage

Additional data provided in state:

subjectId This property is required. String
A Role ID or the Org ID of the account
subjectType This property is required. String
Valid values:

MonitorQuery
, MonitorQueryArgs

Query This property is required. string
RowId This property is required. string
Query This property is required. string
RowId This property is required. string
query This property is required. String
rowId This property is required. String
query This property is required. string
rowId This property is required. string
query This property is required. str
row_id This property is required. str
query This property is required. String
rowId This property is required. String

MonitorTrigger
, MonitorTriggerArgs

TimeRange This property is required. string
DetectionMethod string
Frequency string
MinDataPoints int
OccurrenceType string
ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold double
ThresholdType string
TriggerSource string
TriggerType string
TimeRange This property is required. string
DetectionMethod string
Frequency string
MinDataPoints int
OccurrenceType string
ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold float64
ThresholdType string
TriggerSource string
TriggerType string
timeRange This property is required. String
detectionMethod String
frequency String
minDataPoints Integer
occurrenceType String
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Double
thresholdType String
triggerSource String
triggerType String
timeRange This property is required. string
detectionMethod string
frequency string
minDataPoints number
occurrenceType string
resolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold number
thresholdType string
triggerSource string
triggerType string
time_range This property is required. str
detection_method str
frequency str
min_data_points int
occurrence_type str
resolution_window str
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold float
threshold_type str
trigger_source str
trigger_type str
timeRange This property is required. String
detectionMethod String
frequency String
minDataPoints Number
occurrenceType String
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Number
thresholdType String
triggerSource String
triggerType String

MonitorTriggerConditions
, MonitorTriggerConditionsArgs

LogsAnomalyCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyCondition
LogsMissingDataCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsLogsMissingDataCondition
LogsOutlierCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsLogsOutlierCondition
LogsStaticCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsLogsStaticCondition
MetricsAnomalyCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsMetricsAnomalyCondition
MetricsMissingDataCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsMetricsMissingDataCondition
MetricsOutlierCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsMetricsOutlierCondition
MetricsStaticCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsMetricsStaticCondition
SloBurnRateCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsSloBurnRateCondition
SloSliCondition Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsSloSliCondition

MonitorTriggerConditionsLogsAnomalyCondition
, MonitorTriggerConditionsLogsAnomalyConditionArgs

AnomalyDetectorType This property is required. string
Critical This property is required. Pulumi.SumoLogic.Inputs.MonitorTriggerConditionsLogsAnomalyConditionCritical
Field This property is required. string
Direction string
AnomalyDetectorType This property is required. string
Critical This property is required. MonitorTriggerConditionsLogsAnomalyConditionCritical
Field This property is required. string
Direction string
anomalyDetectorType This property is required. String
critical This property is required. MonitorTriggerConditionsLogsAnomalyConditionCritical
field This property is required. String
direction String
anomalyDetectorType This property is required. string
critical This property is required. MonitorTriggerConditionsLogsAnomalyConditionCritical
field This property is required. string
direction string
anomaly_detector_type This property is required. str
critical This property is required. MonitorTriggerConditionsLogsAnomalyConditionCritical
field This property is required. str
direction str
anomalyDetectorType This property is required. String
critical This property is required. Property Map
field This property is required. String
direction String

MonitorTriggerConditionsLogsAnomalyConditionCritical
, MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs

TimeRange This property is required. string
MinAnomalyCount int
Sensitivity double
TimeRange This property is required. string
MinAnomalyCount int
Sensitivity float64
timeRange This property is required. String
minAnomalyCount Integer
sensitivity Double
timeRange This property is required. string
minAnomalyCount number
sensitivity number
time_range This property is required. str
min_anomaly_count int
sensitivity float
timeRange This property is required. String
minAnomalyCount Number
sensitivity Number

MonitorTriggerConditionsLogsMissingDataCondition
, MonitorTriggerConditionsLogsMissingDataConditionArgs

TimeRange This property is required. string
Frequency string
TimeRange This property is required. string
Frequency string
timeRange This property is required. String
frequency String
timeRange This property is required. string
frequency string
time_range This property is required. str
frequency str
timeRange This property is required. String
frequency String

MonitorTriggerConditionsLogsOutlierCondition
, MonitorTriggerConditionsLogsOutlierConditionArgs

MonitorTriggerConditionsLogsOutlierConditionCritical
, MonitorTriggerConditionsLogsOutlierConditionCriticalArgs

consecutive Integer
threshold Double
window Integer
consecutive number
threshold number
window number
consecutive Number
threshold Number
window Number

MonitorTriggerConditionsLogsOutlierConditionWarning
, MonitorTriggerConditionsLogsOutlierConditionWarningArgs

consecutive Integer
threshold Double
window Integer
consecutive number
threshold number
window number
consecutive Number
threshold Number
window Number

MonitorTriggerConditionsLogsStaticCondition
, MonitorTriggerConditionsLogsStaticConditionArgs

MonitorTriggerConditionsLogsStaticConditionCritical
, MonitorTriggerConditionsLogsStaticConditionCriticalArgs

alert This property is required. Property Map
resolution This property is required. Property Map
timeRange This property is required. String
frequency String

MonitorTriggerConditionsLogsStaticConditionCriticalAlert
, MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs

Threshold float64
ThresholdType string

MonitorTriggerConditionsLogsStaticConditionCriticalResolution
, MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs

ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold double
ThresholdType string
ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold float64
ThresholdType string
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Double
thresholdType String
resolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold number
thresholdType string
resolution_window str
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold float
threshold_type str
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Number
thresholdType String

MonitorTriggerConditionsLogsStaticConditionWarning
, MonitorTriggerConditionsLogsStaticConditionWarningArgs

alert This property is required. Property Map
resolution This property is required. Property Map
timeRange This property is required. String
frequency String

MonitorTriggerConditionsLogsStaticConditionWarningAlert
, MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs

Threshold float64
ThresholdType string

MonitorTriggerConditionsLogsStaticConditionWarningResolution
, MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs

ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold double
ThresholdType string
ResolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
Threshold float64
ThresholdType string
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Double
thresholdType String
resolutionWindow string
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold number
thresholdType string
resolution_window str
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold float
threshold_type str
resolutionWindow String
The resolution window that the recovery condition must be met in each evaluation that happens within this entire duration before the alert is recovered (resolved). If not specified, the time range of your trigger will be used.
threshold Number
thresholdType String

MonitorTriggerConditionsMetricsAnomalyCondition
, MonitorTriggerConditionsMetricsAnomalyConditionArgs

AnomalyDetectorType This property is required. string
Critical This property is required. MonitorTriggerConditionsMetricsAnomalyConditionCritical
Direction string
anomalyDetectorType This property is required. String
critical This property is required. MonitorTriggerConditionsMetricsAnomalyConditionCritical
direction String
anomalyDetectorType This property is required. string
critical This property is required. MonitorTriggerConditionsMetricsAnomalyConditionCritical
direction string
anomaly_detector_type This property is required. str
critical This property is required. MonitorTriggerConditionsMetricsAnomalyConditionCritical
direction str
anomalyDetectorType This property is required. String
critical This property is required. Property Map
direction String

MonitorTriggerConditionsMetricsAnomalyConditionCritical
, MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs

TimeRange This property is required. string
MinAnomalyCount int
Sensitivity double
TimeRange This property is required. string
MinAnomalyCount int
Sensitivity float64
timeRange This property is required. String
minAnomalyCount Integer
sensitivity Double
timeRange This property is required. string
minAnomalyCount number
sensitivity number
time_range This property is required. str
min_anomaly_count int
sensitivity float
timeRange This property is required. String
minAnomalyCount Number
sensitivity Number

MonitorTriggerConditionsMetricsMissingDataCondition
, MonitorTriggerConditionsMetricsMissingDataConditionArgs

TimeRange This property is required. string
TriggerSource This property is required. string
TimeRange This property is required. string
TriggerSource This property is required. string
timeRange This property is required. String
triggerSource This property is required. String
timeRange This property is required. string
triggerSource This property is required. string
time_range This property is required. str
trigger_source This property is required. str
timeRange This property is required. String
triggerSource This property is required. String

MonitorTriggerConditionsMetricsOutlierCondition
, MonitorTriggerConditionsMetricsOutlierConditionArgs

MonitorTriggerConditionsMetricsOutlierConditionCritical
, MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs

MonitorTriggerConditionsMetricsOutlierConditionWarning
, MonitorTriggerConditionsMetricsOutlierConditionWarningArgs

MonitorTriggerConditionsMetricsStaticCondition
, MonitorTriggerConditionsMetricsStaticConditionArgs

MonitorTriggerConditionsMetricsStaticConditionCritical
, MonitorTriggerConditionsMetricsStaticConditionCriticalArgs

Alert This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalAlert
OccurrenceType This property is required. string
Resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalResolution
TimeRange This property is required. string
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalAlert
occurrenceType This property is required. String
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalResolution
timeRange This property is required. String
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalAlert
occurrenceType This property is required. string
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalResolution
timeRange This property is required. string
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalAlert
occurrence_type This property is required. str
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionCriticalResolution
time_range This property is required. str
alert This property is required. Property Map
occurrenceType This property is required. String
resolution This property is required. Property Map
timeRange This property is required. String

MonitorTriggerConditionsMetricsStaticConditionCriticalAlert
, MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs

MonitorTriggerConditionsMetricsStaticConditionCriticalResolution
, MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs

MonitorTriggerConditionsMetricsStaticConditionWarning
, MonitorTriggerConditionsMetricsStaticConditionWarningArgs

Alert This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningAlert
OccurrenceType This property is required. string
Resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningResolution
TimeRange This property is required. string
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningAlert
occurrenceType This property is required. String
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningResolution
timeRange This property is required. String
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningAlert
occurrenceType This property is required. string
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningResolution
timeRange This property is required. string
alert This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningAlert
occurrence_type This property is required. str
resolution This property is required. MonitorTriggerConditionsMetricsStaticConditionWarningResolution
time_range This property is required. str
alert This property is required. Property Map
occurrenceType This property is required. String
resolution This property is required. Property Map
timeRange This property is required. String

MonitorTriggerConditionsMetricsStaticConditionWarningAlert
, MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs

MonitorTriggerConditionsMetricsStaticConditionWarningResolution
, MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs

MonitorTriggerConditionsSloBurnRateCondition
, MonitorTriggerConditionsSloBurnRateConditionArgs

MonitorTriggerConditionsSloBurnRateConditionCritical
, MonitorTriggerConditionsSloBurnRateConditionCriticalArgs

MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRate
, MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs

BurnRateThreshold This property is required. double
TimeRange This property is required. string
BurnRateThreshold This property is required. float64
TimeRange This property is required. string
burnRateThreshold This property is required. Double
timeRange This property is required. String
burnRateThreshold This property is required. number
timeRange This property is required. string
burn_rate_threshold This property is required. float
time_range This property is required. str
burnRateThreshold This property is required. Number
timeRange This property is required. String

MonitorTriggerConditionsSloBurnRateConditionWarning
, MonitorTriggerConditionsSloBurnRateConditionWarningArgs

MonitorTriggerConditionsSloBurnRateConditionWarningBurnRate
, MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs

BurnRateThreshold This property is required. double
TimeRange This property is required. string
BurnRateThreshold This property is required. float64
TimeRange This property is required. string
burnRateThreshold This property is required. Double
timeRange This property is required. String
burnRateThreshold This property is required. number
timeRange This property is required. string
burn_rate_threshold This property is required. float
time_range This property is required. str
burnRateThreshold This property is required. Number
timeRange This property is required. String

MonitorTriggerConditionsSloSliCondition
, MonitorTriggerConditionsSloSliConditionArgs

MonitorTriggerConditionsSloSliConditionCritical
, MonitorTriggerConditionsSloSliConditionCriticalArgs

SliThreshold This property is required. double
SliThreshold This property is required. float64
sliThreshold This property is required. Double
sliThreshold This property is required. number
sli_threshold This property is required. float
sliThreshold This property is required. Number

MonitorTriggerConditionsSloSliConditionWarning
, MonitorTriggerConditionsSloSliConditionWarningArgs

SliThreshold This property is required. double
SliThreshold This property is required. float64
sliThreshold This property is required. Double
sliThreshold This property is required. number
sli_threshold This property is required. float
sliThreshold This property is required. Number

Import

Monitors can be imported using the monitor ID, such as:

hcl

$ pulumi import sumologic:index/monitor:Monitor test 1234567890
Copy

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

Package Details

Repository
Sumo Logic pulumi/pulumi-sumologic
License
Apache-2.0
Notes
This Pulumi package is based on the sumologic Terraform Provider.