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",
                    },
                ],
            },
        },
    },
});
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",
                    },
                ],
            },
        },
    })
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
	})
}
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",
                        },
                    },
                },
            },
        },
    });
});
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());
    }
}
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
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",
        ],
    }],
});
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",
        ],
    }])
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
	})
}
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",
                },
            },
        },
    });
});
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());
    }
}
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
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",
        ],
    }],
});
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",
        ],
    }])
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
	})
}
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",
                },
            },
        },
    });
});
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());
    }
}
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
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",
});
import pulumi
import pulumi_sumologic as sumologic
tf_monitor_folder1 = sumologic.MonitorFolder("tf_monitor_folder_1",
    name="test folder",
    description="a folder for monitors")
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
	})
}
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",
    });
});
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());
    }
}
resources:
  tfMonitorFolder1:
    type: sumologic:MonitorFolder
    name: tf_monitor_folder_1
    properties:
      name: test folder
      description: a folder for monitors
======= 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",
            ],
        },
    ],
});
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",
            ],
        },
    ])
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
	})
}
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",
                },
            },
        },
    });
});
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());
    }
}
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
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 string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args 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 string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args 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",
});
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"),
})
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());
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")
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",
});
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
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 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- NotificationGroup List<string>Fields 
- 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_messageidare not allowed for Alert Grouping.
- Notifications
List<Pulumi.Sumo Logic. Inputs. Monitor Notification> 
- The notifications the monitor will send when the respective trigger condition is met.
- ObjPermissions List<Pulumi.Sumo Logic. Inputs. Monitor Obj Permission> 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- PostRequest Dictionary<string, string>Map 
- Queries
List<Pulumi.Sumo Logic. Inputs. Monitor Query> 
- All queries from the monitor.
- SloId string
- Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
- Dictionary<string, string>
- A map defining tag keys and tag values for the Monitor.
- TimeZone string
- TriggerConditions Pulumi.Sumo Logic. Inputs. Monitor Trigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- Triggers
List<Pulumi.Sumo Logic. Inputs. Monitor Trigger> 
- Defines the conditions of when to send notifications.
- Type string
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- Version int
- MonitorType 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- NotificationGroup []stringFields 
- 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_messageidare not allowed for Alert Grouping.
- Notifications
[]MonitorNotification Args 
- The notifications the monitor will send when the respective trigger condition is met.
- ObjPermissions []MonitorObj Permission Args 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- PostRequest map[string]stringMap 
- Queries
[]MonitorQuery Args 
- All queries from the monitor.
- SloId string
- Identifier of the SLO definition for the monitor. This is only applicable & required for Slo monitor_type.
- map[string]string
- A map defining tag keys and tag values for the Monitor.
- TimeZone string
- TriggerConditions MonitorTrigger Conditions Args 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- Triggers
[]MonitorTrigger Args 
- Defines the conditions of when to send notifications.
- Type string
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- Version int
- monitorType 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup List<String>Fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
List<MonitorNotification> 
- The notifications the monitor will send when the respective trigger condition is met.
- objPermissions List<MonitorObj Permission> 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest Map<String,String>Map 
- 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.
- Map<String,String>
- A map defining tag keys and tag values for the Monitor.
- timeZone String
- triggerConditions MonitorTrigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
List<MonitorTrigger> 
- Defines the conditions of when to send notifications.
- type String
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- version Integer
- monitorType 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup string[]Fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
MonitorNotification[] 
- The notifications the monitor will send when the respective trigger condition is met.
- objPermissions MonitorObj Permission[] 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest {[key: string]: string}Map 
- 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.
- {[key: string]: string}
- A map defining tag keys and tag values for the Monitor.
- timeZone string
- triggerConditions MonitorTrigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
MonitorTrigger[] 
- Defines the conditions of when to send notifications.
- type string
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- version number
- monitor_type 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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_ Sequence[str]fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
Sequence[MonitorNotification Args] 
- The notifications the monitor will send when the respective trigger condition is met.
- obj_permissions Sequence[MonitorObj Permission Args] 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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_ Mapping[str, str]map 
- queries
Sequence[MonitorQuery Args] 
- 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.
- Mapping[str, str]
- A map defining tag keys and tag values for the Monitor.
- time_zone str
- trigger_conditions MonitorTrigger Conditions Args 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
Sequence[MonitorTrigger Args] 
- Defines the conditions of when to send notifications.
- type str
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- version int
- monitorType 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup List<String>Fields 
- 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_messageidare 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_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest Map<String>Map 
- 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.
- 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_conditionssupplants thetriggersargument.
- triggers List<Property Map>
- Defines the conditions of when to send notifications.
- 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:
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) -> Monitorfunc 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
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- AlertName string
- The display name when creating alerts. Monitor name will be used if alert_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- NotificationGroup List<string>Fields 
- 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_messageidare not allowed for Alert Grouping.
- Notifications
List<Pulumi.Sumo Logic. Inputs. Monitor Notification> 
- The notifications the monitor will send when the respective trigger condition is met.
- ObjPermissions List<Pulumi.Sumo Logic. Inputs. Monitor Obj Permission> 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- PostRequest Dictionary<string, string>Map 
- Queries
List<Pulumi.Sumo Logic. Inputs. Monitor Query> 
- 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
 
- Dictionary<string, string>
- A map defining tag keys and tag values for the Monitor.
- TimeZone string
- TriggerConditions Pulumi.Sumo Logic. Inputs. Monitor Trigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- Triggers
List<Pulumi.Sumo Logic. Inputs. Monitor Trigger> 
- Defines the conditions of when to send notifications.
- 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- NotificationGroup []stringFields 
- 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_messageidare not allowed for Alert Grouping.
- Notifications
[]MonitorNotification Args 
- The notifications the monitor will send when the respective trigger condition is met.
- ObjPermissions []MonitorObj Permission Args 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- PostRequest map[string]stringMap 
- Queries
[]MonitorQuery Args 
- 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
 
- map[string]string
- A map defining tag keys and tag values for the Monitor.
- TimeZone string
- TriggerConditions MonitorTrigger Conditions Args 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- Triggers
[]MonitorTrigger Args 
- Defines the conditions of when to send notifications.
- 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup List<String>Fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
List<MonitorNotification> 
- The notifications the monitor will send when the respective trigger condition is met.
- objPermissions List<MonitorObj Permission> 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest Map<String,String>Map 
- 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
 
- Map<String,String>
- A map defining tag keys and tag values for the Monitor.
- timeZone String
- triggerConditions MonitorTrigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
List<MonitorTrigger> 
- Defines the conditions of when to send notifications.
- 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup string[]Fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
MonitorNotification[] 
- The notifications the monitor will send when the respective trigger condition is met.
- objPermissions MonitorObj Permission[] 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest {[key: string]: string}Map 
- 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
 
- {[key: string]: string}
- A map defining tag keys and tag values for the Monitor.
- timeZone string
- triggerConditions MonitorTrigger Conditions 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
MonitorTrigger[] 
- Defines the conditions of when to send notifications.
- 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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_ Sequence[str]fields 
- 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_messageidare not allowed for Alert Grouping.
- notifications
Sequence[MonitorNotification Args] 
- The notifications the monitor will send when the respective trigger condition is met.
- obj_permissions Sequence[MonitorObj Permission Args] 
- obj_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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_ Mapping[str, str]map 
- queries
Sequence[MonitorQuery Args] 
- 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
 
- Mapping[str, str]
- A map defining tag keys and tag values for the Monitor.
- time_zone str
- trigger_conditions MonitorTrigger Conditions Args 
- Defines the conditions of when to send notifications. NOTE: trigger_conditionssupplants thetriggersargument.
- triggers
Sequence[MonitorTrigger Args] 
- Defines the conditions of when to send notifications.
- 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_nameis not provided. All template variables can be used inalert_nameexcept{{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: - <number>: number of time units,
- <time_unit>: time unit; possible values are:- h(hour),- m(minute),- s(second).
 - Multiple pairs of - <number><time_unit>may be provided. For example,- 2m50smeans 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.
- notificationGroup List<String>Fields 
- 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_messageidare 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_permissionconstruct represents a Permission Statement associated with this Monitor. A set of- obj_permissionconstructs can be specified under a Monitor. An- obj_permissionconstruct 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_permissionconstruct 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.
- postRequest Map<String>Map 
- 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
 
- 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_conditionssupplants thetriggersargument.
- triggers List<Property Map>
- Defines the conditions of when to send notifications.
- type String
- The type of object model. Valid value:- MonitorsLibraryMonitor
 
- version Number
Supporting Types
MonitorNotification, MonitorNotificationArgs    
- notification Property Map
- runFor List<String>Trigger Types 
MonitorNotificationNotification, MonitorNotificationNotificationArgs      
- ActionType string
- ConnectionId string
- ConnectionType string
- MessageBody string
- PayloadOverride string
- Recipients List<string>
- ResolutionPayload stringOverride 
- Subject string
- TimeZone string
- ActionType string
- ConnectionId string
- ConnectionType string
- MessageBody string
- PayloadOverride string
- Recipients []string
- ResolutionPayload stringOverride 
- Subject string
- TimeZone string
- actionType String
- connectionId String
- connectionType String
- messageBody String
- payloadOverride String
- recipients List<String>
- resolutionPayload StringOverride 
- subject String
- timeZone String
- actionType string
- connectionId string
- connectionType string
- messageBody string
- payloadOverride string
- recipients string[]
- resolutionPayload stringOverride 
- subject string
- timeZone string
- action_type str
- connection_id str
- connection_type str
- message_body str
- payload_override str
- recipients Sequence[str]
- resolution_payload_ stroverride 
- subject str
- time_zone str
- actionType String
- connectionId String
- connectionType String
- messageBody String
- payloadOverride String
- recipients List<String>
- resolutionPayload StringOverride 
- subject String
- timeZone String
MonitorObjPermission, MonitorObjPermissionArgs      
- Permissions List<string>
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- SubjectId string
- A Role ID or the Org ID of the account
- SubjectType string
- Valid values:
- Permissions []string
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- SubjectId string
- A Role ID or the Org ID of the account
- SubjectType string
- Valid values:
- permissions List<String>
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- subjectId String
- A Role ID or the Org ID of the account
- subjectType String
- Valid values:
- permissions string[]
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- subjectId string
- A Role ID or the Org ID of the account
- subjectType string
- Valid values:
- permissions Sequence[str]
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- subject_id str
- A Role ID or the Org ID of the account
- subject_type str
- Valid values:
- permissions List<String>
- A Set of Permissions. Valid Permission Values: - Read
- Update
- Delete
- Manage
 - Additional data provided in state: 
- subjectId String
- A Role ID or the Org ID of the account
- subjectType String
- Valid values:
MonitorQuery, MonitorQueryArgs    
MonitorTrigger, MonitorTriggerArgs    
- TimeRange string
- DetectionMethod string
- Frequency string
- MinData intPoints 
- 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 string
- DetectionMethod string
- Frequency string
- MinData intPoints 
- 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 String
- detectionMethod String
- frequency String
- minData IntegerPoints 
- 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 string
- detectionMethod string
- frequency string
- minData numberPoints 
- 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 str
- detection_method str
- frequency str
- min_data_ intpoints 
- 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 String
- detectionMethod String
- frequency String
- minData NumberPoints 
- 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      
- LogsAnomaly Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Anomaly Condition 
- LogsMissing Pulumi.Data Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Missing Data Condition 
- LogsOutlier Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Outlier Condition 
- LogsStatic Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Static Condition 
- MetricsAnomaly Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Anomaly Condition 
- MetricsMissing Pulumi.Data Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Missing Data Condition 
- MetricsOutlier Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Outlier Condition 
- MetricsStatic Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Static Condition 
- SloBurn Pulumi.Rate Condition Sumo Logic. Inputs. Monitor Trigger Conditions Slo Burn Rate Condition 
- SloSli Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Slo Sli Condition 
- LogsAnomaly MonitorCondition Trigger Conditions Logs Anomaly Condition 
- LogsMissing MonitorData Condition Trigger Conditions Logs Missing Data Condition 
- LogsOutlier MonitorCondition Trigger Conditions Logs Outlier Condition 
- LogsStatic MonitorCondition Trigger Conditions Logs Static Condition 
- MetricsAnomaly MonitorCondition Trigger Conditions Metrics Anomaly Condition 
- MetricsMissing MonitorData Condition Trigger Conditions Metrics Missing Data Condition 
- MetricsOutlier MonitorCondition Trigger Conditions Metrics Outlier Condition 
- MetricsStatic MonitorCondition Trigger Conditions Metrics Static Condition 
- SloBurn MonitorRate Condition Trigger Conditions Slo Burn Rate Condition 
- SloSli MonitorCondition Trigger Conditions Slo Sli Condition 
- logsAnomaly MonitorCondition Trigger Conditions Logs Anomaly Condition 
- logsMissing MonitorData Condition Trigger Conditions Logs Missing Data Condition 
- logsOutlier MonitorCondition Trigger Conditions Logs Outlier Condition 
- logsStatic MonitorCondition Trigger Conditions Logs Static Condition 
- metricsAnomaly MonitorCondition Trigger Conditions Metrics Anomaly Condition 
- metricsMissing MonitorData Condition Trigger Conditions Metrics Missing Data Condition 
- metricsOutlier MonitorCondition Trigger Conditions Metrics Outlier Condition 
- metricsStatic MonitorCondition Trigger Conditions Metrics Static Condition 
- sloBurn MonitorRate Condition Trigger Conditions Slo Burn Rate Condition 
- sloSli MonitorCondition Trigger Conditions Slo Sli Condition 
- logsAnomaly MonitorCondition Trigger Conditions Logs Anomaly Condition 
- logsMissing MonitorData Condition Trigger Conditions Logs Missing Data Condition 
- logsOutlier MonitorCondition Trigger Conditions Logs Outlier Condition 
- logsStatic MonitorCondition Trigger Conditions Logs Static Condition 
- metricsAnomaly MonitorCondition Trigger Conditions Metrics Anomaly Condition 
- metricsMissing MonitorData Condition Trigger Conditions Metrics Missing Data Condition 
- metricsOutlier MonitorCondition Trigger Conditions Metrics Outlier Condition 
- metricsStatic MonitorCondition Trigger Conditions Metrics Static Condition 
- sloBurn MonitorRate Condition Trigger Conditions Slo Burn Rate Condition 
- sloSli MonitorCondition Trigger Conditions Slo Sli Condition 
- logs_anomaly_ Monitorcondition Trigger Conditions Logs Anomaly Condition 
- logs_missing_ Monitordata_ condition Trigger Conditions Logs Missing Data Condition 
- logs_outlier_ Monitorcondition Trigger Conditions Logs Outlier Condition 
- logs_static_ Monitorcondition Trigger Conditions Logs Static Condition 
- metrics_anomaly_ Monitorcondition Trigger Conditions Metrics Anomaly Condition 
- metrics_missing_ Monitordata_ condition Trigger Conditions Metrics Missing Data Condition 
- metrics_outlier_ Monitorcondition Trigger Conditions Metrics Outlier Condition 
- metrics_static_ Monitorcondition Trigger Conditions Metrics Static Condition 
- slo_burn_ Monitorrate_ condition Trigger Conditions Slo Burn Rate Condition 
- slo_sli_ Monitorcondition Trigger Conditions Slo Sli Condition 
- logsAnomaly Property MapCondition 
- logsMissing Property MapData Condition 
- logsOutlier Property MapCondition 
- logsStatic Property MapCondition 
- metricsAnomaly Property MapCondition 
- metricsMissing Property MapData Condition 
- metricsOutlier Property MapCondition 
- metricsStatic Property MapCondition 
- sloBurn Property MapRate Condition 
- sloSli Property MapCondition 
MonitorTriggerConditionsLogsAnomalyCondition, MonitorTriggerConditionsLogsAnomalyConditionArgs            
- anomalyDetector StringType 
- critical Property Map
- field String
- direction String
MonitorTriggerConditionsLogsAnomalyConditionCritical, MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs              
- TimeRange string
- MinAnomaly intCount 
- Sensitivity double
- TimeRange string
- MinAnomaly intCount 
- Sensitivity float64
- timeRange String
- minAnomaly IntegerCount 
- sensitivity Double
- timeRange string
- minAnomaly numberCount 
- sensitivity number
- time_range str
- min_anomaly_ intcount 
- sensitivity float
- timeRange String
- minAnomaly NumberCount 
- sensitivity Number
MonitorTriggerConditionsLogsMissingDataCondition, MonitorTriggerConditionsLogsMissingDataConditionArgs              
- time_range str
- frequency str
MonitorTriggerConditionsLogsOutlierCondition, MonitorTriggerConditionsLogsOutlierConditionArgs            
- critical Property Map
- direction String
- field String
- warning Property Map
MonitorTriggerConditionsLogsOutlierConditionCritical, MonitorTriggerConditionsLogsOutlierConditionCriticalArgs              
- Consecutive int
- Threshold double
- Window int
- Consecutive int
- Threshold float64
- Window int
- consecutive Integer
- threshold Double
- window Integer
- consecutive number
- threshold number
- window number
- consecutive int
- threshold float
- window int
- consecutive Number
- threshold Number
- window Number
MonitorTriggerConditionsLogsOutlierConditionWarning, MonitorTriggerConditionsLogsOutlierConditionWarningArgs              
- Consecutive int
- Threshold double
- Window int
- Consecutive int
- Threshold float64
- Window int
- consecutive Integer
- threshold Double
- window Integer
- consecutive number
- threshold number
- window number
- consecutive int
- threshold float
- window int
- consecutive Number
- threshold Number
- window Number
MonitorTriggerConditionsLogsStaticCondition, MonitorTriggerConditionsLogsStaticConditionArgs            
MonitorTriggerConditionsLogsStaticConditionCritical, MonitorTriggerConditionsLogsStaticConditionCriticalArgs              
- alert Property Map
- resolution Property Map
- timeRange String
- frequency String
MonitorTriggerConditionsLogsStaticConditionCriticalAlert, MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs                
- Threshold double
- ThresholdType string
- Threshold float64
- ThresholdType string
- threshold Double
- thresholdType String
- threshold number
- thresholdType string
- threshold float
- threshold_type str
- threshold Number
- 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 Property Map
- resolution Property Map
- timeRange String
- frequency String
MonitorTriggerConditionsLogsStaticConditionWarningAlert, MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs                
- Threshold double
- ThresholdType string
- Threshold float64
- ThresholdType string
- threshold Double
- thresholdType String
- threshold number
- thresholdType string
- threshold float
- threshold_type str
- threshold Number
- 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            
- anomalyDetector StringType 
- critical Property Map
- direction String
MonitorTriggerConditionsMetricsAnomalyConditionCritical, MonitorTriggerConditionsMetricsAnomalyConditionCriticalArgs              
- TimeRange string
- MinAnomaly intCount 
- Sensitivity double
- TimeRange string
- MinAnomaly intCount 
- Sensitivity float64
- timeRange String
- minAnomaly IntegerCount 
- sensitivity Double
- timeRange string
- minAnomaly numberCount 
- sensitivity number
- time_range str
- min_anomaly_ intcount 
- sensitivity float
- timeRange String
- minAnomaly NumberCount 
- sensitivity Number
MonitorTriggerConditionsMetricsMissingDataCondition, MonitorTriggerConditionsMetricsMissingDataConditionArgs              
- TimeRange string
- TriggerSource string
- TimeRange string
- TriggerSource string
- timeRange String
- triggerSource String
- timeRange string
- triggerSource string
- time_range str
- trigger_source str
- timeRange String
- triggerSource String
MonitorTriggerConditionsMetricsOutlierCondition, MonitorTriggerConditionsMetricsOutlierConditionArgs            
MonitorTriggerConditionsMetricsOutlierConditionCritical, MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs              
- BaselineWindow string
- Threshold double
- BaselineWindow string
- Threshold float64
- baselineWindow String
- threshold Double
- baselineWindow string
- threshold number
- baseline_window str
- threshold float
- baselineWindow String
- threshold Number
MonitorTriggerConditionsMetricsOutlierConditionWarning, MonitorTriggerConditionsMetricsOutlierConditionWarningArgs              
- BaselineWindow string
- Threshold double
- BaselineWindow string
- Threshold float64
- baselineWindow String
- threshold Double
- baselineWindow string
- threshold number
- baseline_window str
- threshold float
- baselineWindow String
- threshold Number
MonitorTriggerConditionsMetricsStaticCondition, MonitorTriggerConditionsMetricsStaticConditionArgs            
MonitorTriggerConditionsMetricsStaticConditionCritical, MonitorTriggerConditionsMetricsStaticConditionCriticalArgs              
- alert Property Map
- occurrenceType String
- resolution Property Map
- timeRange String
MonitorTriggerConditionsMetricsStaticConditionCriticalAlert, MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs                
- MinData intPoints 
- Threshold double
- ThresholdType string
- MinData intPoints 
- Threshold float64
- ThresholdType string
- minData IntegerPoints 
- threshold Double
- thresholdType String
- minData numberPoints 
- threshold number
- thresholdType string
- min_data_ intpoints 
- threshold float
- threshold_type str
- minData NumberPoints 
- threshold Number
- thresholdType String
MonitorTriggerConditionsMetricsStaticConditionCriticalResolution, MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs                
- MinData intPoints 
- OccurrenceType string
- Threshold double
- ThresholdType string
- MinData intPoints 
- OccurrenceType string
- Threshold float64
- ThresholdType string
- minData IntegerPoints 
- occurrenceType String
- threshold Double
- thresholdType String
- minData numberPoints 
- occurrenceType string
- threshold number
- thresholdType string
- min_data_ intpoints 
- occurrence_type str
- threshold float
- threshold_type str
- minData NumberPoints 
- occurrenceType String
- threshold Number
- thresholdType String
MonitorTriggerConditionsMetricsStaticConditionWarning, MonitorTriggerConditionsMetricsStaticConditionWarningArgs              
- alert Property Map
- occurrenceType String
- resolution Property Map
- timeRange String
MonitorTriggerConditionsMetricsStaticConditionWarningAlert, MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs                
- MinData intPoints 
- Threshold double
- ThresholdType string
- MinData intPoints 
- Threshold float64
- ThresholdType string
- minData IntegerPoints 
- threshold Double
- thresholdType String
- minData numberPoints 
- threshold number
- thresholdType string
- min_data_ intpoints 
- threshold float
- threshold_type str
- minData NumberPoints 
- threshold Number
- thresholdType String
MonitorTriggerConditionsMetricsStaticConditionWarningResolution, MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs                
- MinData intPoints 
- OccurrenceType string
- Threshold double
- ThresholdType string
- MinData intPoints 
- OccurrenceType string
- Threshold float64
- ThresholdType string
- minData IntegerPoints 
- occurrenceType String
- threshold Double
- thresholdType String
- minData numberPoints 
- occurrenceType string
- threshold number
- thresholdType string
- min_data_ intpoints 
- occurrence_type str
- threshold float
- threshold_type str
- minData NumberPoints 
- occurrenceType String
- threshold Number
- thresholdType String
MonitorTriggerConditionsSloBurnRateCondition, MonitorTriggerConditionsSloBurnRateConditionArgs              
MonitorTriggerConditionsSloBurnRateConditionCritical, MonitorTriggerConditionsSloBurnRateConditionCriticalArgs                
- burnRate NumberThreshold 
- burnRates List<Property Map>
- timeRange String
MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRate, MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs                    
- BurnRate doubleThreshold 
- TimeRange string
- BurnRate float64Threshold 
- TimeRange string
- burnRate DoubleThreshold 
- timeRange String
- burnRate numberThreshold 
- timeRange string
- burn_rate_ floatthreshold 
- time_range str
- burnRate NumberThreshold 
- timeRange String
MonitorTriggerConditionsSloBurnRateConditionWarning, MonitorTriggerConditionsSloBurnRateConditionWarningArgs                
- burnRate NumberThreshold 
- burnRates List<Property Map>
- timeRange String
MonitorTriggerConditionsSloBurnRateConditionWarningBurnRate, MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs                    
- BurnRate doubleThreshold 
- TimeRange string
- BurnRate float64Threshold 
- TimeRange string
- burnRate DoubleThreshold 
- timeRange String
- burnRate numberThreshold 
- timeRange string
- burn_rate_ floatthreshold 
- time_range str
- burnRate NumberThreshold 
- timeRange String
MonitorTriggerConditionsSloSliCondition, MonitorTriggerConditionsSloSliConditionArgs            
MonitorTriggerConditionsSloSliConditionCritical, MonitorTriggerConditionsSloSliConditionCriticalArgs              
- SliThreshold double
- SliThreshold float64
- sliThreshold Double
- sliThreshold number
- sli_threshold float
- sliThreshold Number
MonitorTriggerConditionsSloSliConditionWarning, MonitorTriggerConditionsSloSliConditionWarningArgs              
- SliThreshold double
- SliThreshold float64
- sliThreshold Double
- sliThreshold number
- sli_threshold float
- sliThreshold Number
Import
Monitors can be imported using the monitor ID, such as:
hcl
$ pulumi import sumologic:index/monitor:Monitor test 1234567890
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 sumologicTerraform Provider.