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
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",
},
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",
},
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",
},
},
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"),
},
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"),
},
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"),
},
},
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")
.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")
.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")
.build())
.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",
},
"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",
},
"field": "string",
"warning": {
"alert": {
"threshold": 0,
"threshold_type": "string",
},
"resolution": {
"resolution_window": "string",
"threshold": 0,
"threshold_type": "string",
},
"time_range": "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",
},
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",
},
field: "string",
warning: {
alert: {
threshold: 0,
thresholdType: "string",
},
resolution: {
resolutionWindow: "string",
threshold: 0,
thresholdType: "string",
},
timeRange: "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:
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
resolution:
resolutionWindow: string
threshold: 0
thresholdType: string
timeRange: string
field: string
warning:
alert:
threshold: 0
thresholdType: string
resolution:
resolutionWindow: string
threshold: 0
thresholdType: string
timeRange: 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:
- Monitor
Type string - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- Alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - Content
Type string - The type of the content object. Valid value:
Monitor
- Created
At string - Created
By string - Description string
- The description of the monitor.
- Evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- Group
Notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- Is
Disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the monitor. The name must be alphanumeric.
- Notification
Group 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_messageid
are 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.
- Obj
Permissions List<Pulumi.Sumo Logic. Inputs. Monitor Obj Permission> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- Parent
Id 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.
- Post
Request Dictionary<string, string>Map - Queries
List<Pulumi.
Sumo Logic. Inputs. Monitor Query> - All queries from the monitor.
- Slo
Id 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.
- Time
Zone string - Trigger
Conditions Pulumi.Sumo Logic. Inputs. Monitor Trigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - 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
- Monitor
Type string - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- Alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - Content
Type string - The type of the content object. Valid value:
Monitor
- Created
At string - Created
By string - Description string
- The description of the monitor.
- Evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- Group
Notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- Is
Disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Name string
- The name of the monitor. The name must be alphanumeric.
- Notification
Group []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_messageid
are not allowed for Alert Grouping. - Notifications
[]Monitor
Notification Args - The notifications the monitor will send when the respective trigger condition is met.
- Obj
Permissions []MonitorObj Permission Args obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- Parent
Id 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.
- Post
Request map[string]stringMap - Queries
[]Monitor
Query Args - All queries from the monitor.
- Slo
Id 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.
- Time
Zone string - Trigger
Conditions MonitorTrigger Conditions Args - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - Triggers
[]Monitor
Trigger Args - Defines the conditions of when to send notifications.
- Type string
- The type of object model. Valid value:
MonitorsLibraryMonitor
- Version int
- monitor
Type String - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- alert
Name String - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type String - The type of the content object. Valid value:
Monitor
- created
At String - created
By String - description String
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications Boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled Boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the monitor. The name must be alphanumeric.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications
List<Monitor
Notification> - The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions List<MonitorObj Permission> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request Map<String,String>Map - queries
List<Monitor
Query> - All queries from the monitor.
- slo
Id 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.
- time
Zone String - trigger
Conditions MonitorTrigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - triggers
List<Monitor
Trigger> - Defines the conditions of when to send notifications.
- type String
- The type of object model. Valid value:
MonitorsLibraryMonitor
- version Integer
- monitor
Type string - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type string - The type of the content object. Valid value:
Monitor
- created
At string - created
By string - description string
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - name string
- The name of the monitor. The name must be alphanumeric.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications
Monitor
Notification[] - The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions MonitorObj Permission[] obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request {[key: string]: string}Map - queries
Monitor
Query[] - All queries from the monitor.
- slo
Id 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.
- time
Zone string - trigger
Conditions MonitorTrigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - triggers
Monitor
Trigger[] - 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_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content_
type str - The type of the content object. Valid value:
Monitor
- created_
at str - created_
by str - description str
- The description of the monitor.
- evaluation_
delay str Evaluation delay as a string consists of the following elements:
<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,2m50s
means 2 minutes and 50 seconds.- group_
notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is_
disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at str - modified_
by str - name str
- The name of the monitor. The name must be alphanumeric.
- notification_
group_ 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_messageid
are not allowed for Alert Grouping. - notifications
Sequence[Monitor
Notification Args] - The notifications the monitor will send when the respective trigger condition is met.
- obj_
permissions Sequence[MonitorObj Permission Args] obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent_
id str - The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
- playbook str
- Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
- post_
request_ Mapping[str, str]map - queries
Sequence[Monitor
Query 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_conditions
supplants thetriggers
argument. - triggers
Sequence[Monitor
Trigger Args] - Defines the conditions of when to send notifications.
- type str
- The type of object model. Valid value:
MonitorsLibraryMonitor
- version int
- monitor
Type String - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- alert
Name String - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type String - The type of the content object. Valid value:
Monitor
- created
At String - created
By String - description String
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications Boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled Boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - name String
- The name of the monitor. The name must be alphanumeric.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications List<Property Map>
- The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions List<Property Map> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request Map<String>Map - queries List<Property Map>
- All queries from the monitor.
- slo
Id 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.
- time
Zone String - trigger
Conditions Property Map - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - 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) -> Monitor
func GetMonitor(ctx *Context, name string, id IDInput, state *MonitorState, opts ...ResourceOption) (*Monitor, error)
public static Monitor Get(string name, Input<string> id, MonitorState? state, CustomResourceOptions? opts = null)
public static Monitor get(String name, Output<String> id, MonitorState state, CustomResourceOptions options)
Resource lookup is not supported in YAML
- 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.
- Alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - Content
Type string - The type of the content object. Valid value:
Monitor
- Created
At string - Created
By string - Description string
- The description of the monitor.
- Evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- Group
Notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- Is
Disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Monitor
Type 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.
- Notification
Group 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_messageid
are 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.
- Obj
Permissions List<Pulumi.Sumo Logic. Inputs. Monitor Obj Permission> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- Parent
Id 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.
- Post
Request Dictionary<string, string>Map - Queries
List<Pulumi.
Sumo Logic. Inputs. Monitor Query> - All queries from the monitor.
- Slo
Id 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.
- Time
Zone string - Trigger
Conditions Pulumi.Sumo Logic. Inputs. Monitor Trigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - 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
- Alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - Content
Type string - The type of the content object. Valid value:
Monitor
- Created
At string - Created
By string - Description string
- The description of the monitor.
- Evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- Group
Notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- Is
Disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- Is
Locked bool - Is
Mutable bool - Is
System bool - Modified
At string - Modified
By string - Monitor
Type 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.
- Notification
Group []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_messageid
are not allowed for Alert Grouping. - Notifications
[]Monitor
Notification Args - The notifications the monitor will send when the respective trigger condition is met.
- Obj
Permissions []MonitorObj Permission Args obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- Parent
Id 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.
- Post
Request map[string]stringMap - Queries
[]Monitor
Query Args - All queries from the monitor.
- Slo
Id 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.
- Time
Zone string - Trigger
Conditions MonitorTrigger Conditions Args - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - Triggers
[]Monitor
Trigger Args - Defines the conditions of when to send notifications.
- Type string
- The type of object model. Valid value:
MonitorsLibraryMonitor
- Version int
- alert
Name String - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type String - The type of the content object. Valid value:
Monitor
- created
At String - created
By String - description String
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications Boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled Boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - monitor
Type 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.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications
List<Monitor
Notification> - The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions List<MonitorObj Permission> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request Map<String,String>Map - queries
List<Monitor
Query> - All queries from the monitor.
- slo
Id 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.
- time
Zone String - trigger
Conditions MonitorTrigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - triggers
List<Monitor
Trigger> - Defines the conditions of when to send notifications.
- type String
- The type of object model. Valid value:
MonitorsLibraryMonitor
- version Integer
- alert
Name string - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type string - The type of the content object. Valid value:
Monitor
- created
At string - created
By string - description string
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked boolean - is
Mutable boolean - is
System boolean - modified
At string - modified
By string - monitor
Type 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.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications
Monitor
Notification[] - The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions MonitorObj Permission[] obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request {[key: string]: string}Map - queries
Monitor
Query[] - All queries from the monitor.
- slo
Id 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.
- time
Zone string - trigger
Conditions MonitorTrigger Conditions - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - triggers
Monitor
Trigger[] - 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_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content_
type str - The type of the content object. Valid value:
Monitor
- created_
at str - created_
by str - description str
- The description of the monitor.
- evaluation_
delay str Evaluation delay as a string consists of the following elements:
<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,2m50s
means 2 minutes and 50 seconds.- group_
notifications bool - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is_
disabled bool - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is_
locked bool - is_
mutable bool - is_
system bool - modified_
at str - modified_
by str - monitor_
type str - The type of monitor. Valid values:
Logs
: A logs query monitor.Metrics
: A metrics query monitor.Slo
: A SLO based monitor.
- name str
- The name of the monitor. The name must be alphanumeric.
- notification_
group_ 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_messageid
are not allowed for Alert Grouping. - notifications
Sequence[Monitor
Notification Args] - The notifications the monitor will send when the respective trigger condition is met.
- obj_
permissions Sequence[MonitorObj Permission Args] obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent_
id str - The ID of the Monitor Folder that contains this monitor. Defaults to the root folder.
- playbook str
- Notes such as links and instruction to help you resolve alerts triggered by this monitor. {{Markdown}} supported. It will be enabled only if available for your organization. Please contact your Sumo Logic account team to learn more.
- post_
request_ Mapping[str, str]map - queries
Sequence[Monitor
Query 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_conditions
supplants thetriggers
argument. - triggers
Sequence[Monitor
Trigger Args] - Defines the conditions of when to send notifications.
- type str
- The type of object model. Valid value:
MonitorsLibraryMonitor
- version int
- alert
Name String - The display name when creating alerts. Monitor name will be used if
alert_name
is not provided. All template variables can be used inalert_name
except{{AlertName}}
,{{AlertResponseURL}}
,{{ResultsJson}}
, and{{Playbook}}
. - content
Type String - The type of the content object. Valid value:
Monitor
- created
At String - created
By String - description String
- The description of the monitor.
- evaluation
Delay 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,2m50s
means 2 minutes and 50 seconds.- group
Notifications Boolean - Whether or not to group notifications for individual items that meet the trigger condition. Defaults to true.
- is
Disabled Boolean - Whether or not the monitor is disabled. Disabled monitors will not run and will not generate or send notifications.
- is
Locked Boolean - is
Mutable Boolean - is
System Boolean - modified
At String - modified
By String - monitor
Type 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.
- notification
Group 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_messageid
are not allowed for Alert Grouping. - notifications List<Property Map>
- The notifications the monitor will send when the respective trigger condition is met.
- obj
Permissions List<Property Map> obj_permission
construct represents a Permission Statement associated with this Monitor. A set ofobj_permission
constructs can be specified under a Monitor. Anobj_permission
construct can be used to control permissions Explicitly associated with a Monitor. But, it cannot be used to control permissions Inherited from a Parent / Ancestor. Default FGP would be still set to the Monitor upon creation (e.g. the creating user would have full permission), even if noobj_permission
construct is specified at a Monitor and the FGP feature is enabled at the account.- parent
Id 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.
- post
Request Map<String>Map - queries List<Property Map>
- All queries from the monitor.
- slo
Id 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.
- time
Zone String - trigger
Conditions Property Map - Defines the conditions of when to send notifications. NOTE:
trigger_conditions
supplants thetriggers
argument. - 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
- run
For List<String>Trigger Types
MonitorNotificationNotification, MonitorNotificationNotificationArgs
- Action
Type string - Connection
Id string - Connection
Type string - Message
Body string - Payload
Override string - Recipients List<string>
- Resolution
Payload stringOverride - Subject string
- Time
Zone string
- Action
Type string - Connection
Id string - Connection
Type string - Message
Body string - Payload
Override string - Recipients []string
- Resolution
Payload stringOverride - Subject string
- Time
Zone string
- action
Type String - connection
Id String - connection
Type String - message
Body String - payload
Override String - recipients List<String>
- resolution
Payload StringOverride - subject String
- time
Zone String
- action
Type string - connection
Id string - connection
Type string - message
Body string - payload
Override string - recipients string[]
- resolution
Payload stringOverride - subject string
- time
Zone 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
- action
Type String - connection
Id String - connection
Type String - message
Body String - payload
Override String - recipients List<String>
- resolution
Payload StringOverride - subject String
- time
Zone String
MonitorObjPermission, MonitorObjPermissionArgs
- Permissions List<string>
A Set of Permissions. Valid Permission Values:
Read
Update
Delete
Manage
Additional data provided in state:
- Subject
Id string - A Role ID or the Org ID of the account
- Subject
Type string - Valid values:
- Permissions []string
A Set of Permissions. Valid Permission Values:
Read
Update
Delete
Manage
Additional data provided in state:
- Subject
Id string - A Role ID or the Org ID of the account
- Subject
Type string - Valid values:
- permissions List<String>
A Set of Permissions. Valid Permission Values:
Read
Update
Delete
Manage
Additional data provided in state:
- subject
Id String - A Role ID or the Org ID of the account
- subject
Type String - Valid values:
- permissions string[]
A Set of Permissions. Valid Permission Values:
Read
Update
Delete
Manage
Additional data provided in state:
- subject
Id string - A Role ID or the Org ID of the account
- subject
Type 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:
- subject
Id String - A Role ID or the Org ID of the account
- subject
Type String - Valid values:
MonitorQuery, MonitorQueryArgs
MonitorTrigger, MonitorTriggerArgs
- Detection
Method string - Min
Data intPoints - Occurrence
Type string - Resolution
Window 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
- Threshold
Type string - Time
Range string - Trigger
Source string - Trigger
Type string
- Detection
Method string - Min
Data intPoints - Occurrence
Type string - Resolution
Window 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
- Threshold
Type string - Time
Range string - Trigger
Source string - Trigger
Type string
- detection
Method String - min
Data IntegerPoints - occurrence
Type String - resolution
Window 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
- threshold
Type String - time
Range String - trigger
Source String - trigger
Type String
- detection
Method string - min
Data numberPoints - occurrence
Type string - resolution
Window 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
- threshold
Type string - time
Range string - trigger
Source string - trigger
Type string
- detection_
method 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 - time_
range str - trigger_
source str - trigger_
type str
- detection
Method String - min
Data NumberPoints - occurrence
Type String - resolution
Window 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
- threshold
Type String - time
Range String - trigger
Source String - trigger
Type String
MonitorTriggerConditions, MonitorTriggerConditionsArgs
- Logs
Anomaly Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Anomaly Condition - Logs
Missing Pulumi.Data Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Missing Data Condition - Logs
Outlier Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Outlier Condition - Logs
Static Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Logs Static Condition - Metrics
Missing Pulumi.Data Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Missing Data Condition - Metrics
Outlier Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Outlier Condition - Metrics
Static Pulumi.Condition Sumo Logic. Inputs. Monitor Trigger Conditions Metrics Static Condition - Slo
Burn Pulumi.Rate Condition Sumo Logic. Inputs. Monitor Trigger Conditions Slo Burn Rate Condition - Slo
Sli Pulumi.Condition Sumo Logic. Inputs. Monitor 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
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
- 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
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
- 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
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
- 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_
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
- logs
Anomaly Property MapCondition - logs
Missing Property MapData Condition - logs
Outlier Property MapCondition - logs
Static Property MapCondition - metrics
Missing Property MapData Condition - metrics
Outlier Property MapCondition - metrics
Static Property MapCondition - slo
Burn Property MapRate Condition - slo
Sli Property MapCondition
MonitorTriggerConditionsLogsAnomalyCondition, MonitorTriggerConditionsLogsAnomalyConditionArgs
- anomaly
Detector StringType - critical Property Map
- field String
- direction String
MonitorTriggerConditionsLogsAnomalyConditionCritical, MonitorTriggerConditionsLogsAnomalyConditionCriticalArgs
- Time
Range string - Min
Anomaly intCount - Sensitivity double
- Time
Range string - Min
Anomaly intCount - Sensitivity float64
- time
Range String - min
Anomaly IntegerCount - sensitivity Double
- time
Range string - min
Anomaly numberCount - sensitivity number
- time_
range str - min_
anomaly_ intcount - sensitivity float
- time
Range String - min
Anomaly NumberCount - sensitivity Number
MonitorTriggerConditionsLogsMissingDataCondition, MonitorTriggerConditionsLogsMissingDataConditionArgs
- Time
Range string
- Time
Range string
- time
Range String
- time
Range string
- time_
range str
- time
Range String
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
MonitorTriggerConditionsLogsStaticConditionCriticalAlert, MonitorTriggerConditionsLogsStaticConditionCriticalAlertArgs
- Threshold double
- Threshold
Type string
- Threshold float64
- Threshold
Type string
- threshold Double
- threshold
Type String
- threshold number
- threshold
Type string
- threshold float
- threshold_
type str
- threshold Number
- threshold
Type String
MonitorTriggerConditionsLogsStaticConditionCriticalResolution, MonitorTriggerConditionsLogsStaticConditionCriticalResolutionArgs
- Resolution
Window 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
- Threshold
Type string
- Resolution
Window 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
- Threshold
Type string
- resolution
Window 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
- threshold
Type String
- resolution
Window 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
- threshold
Type 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
- resolution
Window 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
- threshold
Type String
MonitorTriggerConditionsLogsStaticConditionWarning, MonitorTriggerConditionsLogsStaticConditionWarningArgs
MonitorTriggerConditionsLogsStaticConditionWarningAlert, MonitorTriggerConditionsLogsStaticConditionWarningAlertArgs
- Threshold double
- Threshold
Type string
- Threshold float64
- Threshold
Type string
- threshold Double
- threshold
Type String
- threshold number
- threshold
Type string
- threshold float
- threshold_
type str
- threshold Number
- threshold
Type String
MonitorTriggerConditionsLogsStaticConditionWarningResolution, MonitorTriggerConditionsLogsStaticConditionWarningResolutionArgs
- Resolution
Window 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
- Threshold
Type string
- Resolution
Window 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
- Threshold
Type string
- resolution
Window 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
- threshold
Type String
- resolution
Window 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
- threshold
Type 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
- resolution
Window 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
- threshold
Type String
MonitorTriggerConditionsMetricsMissingDataCondition, MonitorTriggerConditionsMetricsMissingDataConditionArgs
- Time
Range string - Trigger
Source string
- Time
Range string - Trigger
Source string
- time
Range String - trigger
Source String
- time
Range string - trigger
Source string
- time_
range str - trigger_
source str
- time
Range String - trigger
Source String
MonitorTriggerConditionsMetricsOutlierCondition, MonitorTriggerConditionsMetricsOutlierConditionArgs
MonitorTriggerConditionsMetricsOutlierConditionCritical, MonitorTriggerConditionsMetricsOutlierConditionCriticalArgs
- Baseline
Window string - Threshold double
- Baseline
Window string - Threshold float64
- baseline
Window String - threshold Double
- baseline
Window string - threshold number
- baseline_
window str - threshold float
- baseline
Window String - threshold Number
MonitorTriggerConditionsMetricsOutlierConditionWarning, MonitorTriggerConditionsMetricsOutlierConditionWarningArgs
- Baseline
Window string - Threshold double
- Baseline
Window string - Threshold float64
- baseline
Window String - threshold Double
- baseline
Window string - threshold number
- baseline_
window str - threshold float
- baseline
Window String - threshold Number
MonitorTriggerConditionsMetricsStaticCondition, MonitorTriggerConditionsMetricsStaticConditionArgs
MonitorTriggerConditionsMetricsStaticConditionCritical, MonitorTriggerConditionsMetricsStaticConditionCriticalArgs
- alert Property Map
- occurrence
Type String - resolution Property Map
- time
Range String
MonitorTriggerConditionsMetricsStaticConditionCriticalAlert, MonitorTriggerConditionsMetricsStaticConditionCriticalAlertArgs
- Min
Data intPoints - Threshold double
- Threshold
Type string
- Min
Data intPoints - Threshold float64
- Threshold
Type string
- min
Data IntegerPoints - threshold Double
- threshold
Type String
- min
Data numberPoints - threshold number
- threshold
Type string
- min_
data_ intpoints - threshold float
- threshold_
type str
- min
Data NumberPoints - threshold Number
- threshold
Type String
MonitorTriggerConditionsMetricsStaticConditionCriticalResolution, MonitorTriggerConditionsMetricsStaticConditionCriticalResolutionArgs
- Min
Data intPoints - Occurrence
Type string - Threshold double
- Threshold
Type string
- Min
Data intPoints - Occurrence
Type string - Threshold float64
- Threshold
Type string
- min
Data IntegerPoints - occurrence
Type String - threshold Double
- threshold
Type String
- min
Data numberPoints - occurrence
Type string - threshold number
- threshold
Type string
- min_
data_ intpoints - occurrence_
type str - threshold float
- threshold_
type str
- min
Data NumberPoints - occurrence
Type String - threshold Number
- threshold
Type String
MonitorTriggerConditionsMetricsStaticConditionWarning, MonitorTriggerConditionsMetricsStaticConditionWarningArgs
- alert Property Map
- occurrence
Type String - resolution Property Map
- time
Range String
MonitorTriggerConditionsMetricsStaticConditionWarningAlert, MonitorTriggerConditionsMetricsStaticConditionWarningAlertArgs
- Min
Data intPoints - Threshold double
- Threshold
Type string
- Min
Data intPoints - Threshold float64
- Threshold
Type string
- min
Data IntegerPoints - threshold Double
- threshold
Type String
- min
Data numberPoints - threshold number
- threshold
Type string
- min_
data_ intpoints - threshold float
- threshold_
type str
- min
Data NumberPoints - threshold Number
- threshold
Type String
MonitorTriggerConditionsMetricsStaticConditionWarningResolution, MonitorTriggerConditionsMetricsStaticConditionWarningResolutionArgs
- Min
Data intPoints - Occurrence
Type string - Threshold double
- Threshold
Type string
- Min
Data intPoints - Occurrence
Type string - Threshold float64
- Threshold
Type string
- min
Data IntegerPoints - occurrence
Type String - threshold Double
- threshold
Type String
- min
Data numberPoints - occurrence
Type string - threshold number
- threshold
Type string
- min_
data_ intpoints - occurrence_
type str - threshold float
- threshold_
type str
- min
Data NumberPoints - occurrence
Type String - threshold Number
- threshold
Type String
MonitorTriggerConditionsSloBurnRateCondition, MonitorTriggerConditionsSloBurnRateConditionArgs
MonitorTriggerConditionsSloBurnRateConditionCritical, MonitorTriggerConditionsSloBurnRateConditionCriticalArgs
- burn
Rate NumberThreshold - burn
Rates List<Property Map> - time
Range String
MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRate, MonitorTriggerConditionsSloBurnRateConditionCriticalBurnRateArgs
- Burn
Rate doubleThreshold - Time
Range string
- Burn
Rate float64Threshold - Time
Range string
- burn
Rate DoubleThreshold - time
Range String
- burn
Rate numberThreshold - time
Range string
- burn_
rate_ floatthreshold - time_
range str
- burn
Rate NumberThreshold - time
Range String
MonitorTriggerConditionsSloBurnRateConditionWarning, MonitorTriggerConditionsSloBurnRateConditionWarningArgs
- burn
Rate NumberThreshold - burn
Rates List<Property Map> - time
Range String
MonitorTriggerConditionsSloBurnRateConditionWarningBurnRate, MonitorTriggerConditionsSloBurnRateConditionWarningBurnRateArgs
- Burn
Rate doubleThreshold - Time
Range string
- Burn
Rate float64Threshold - Time
Range string
- burn
Rate DoubleThreshold - time
Range String
- burn
Rate numberThreshold - time
Range string
- burn_
rate_ floatthreshold - time_
range str
- burn
Rate NumberThreshold - time
Range String
MonitorTriggerConditionsSloSliCondition, MonitorTriggerConditionsSloSliConditionArgs
MonitorTriggerConditionsSloSliConditionCritical, MonitorTriggerConditionsSloSliConditionCriticalArgs
- Sli
Threshold double
- Sli
Threshold float64
- sli
Threshold Double
- sli
Threshold number
- sli_
threshold float
- sli
Threshold Number
MonitorTriggerConditionsSloSliConditionWarning, MonitorTriggerConditionsSloSliConditionWarningArgs
- Sli
Threshold double
- Sli
Threshold float64
- sli
Threshold Double
- sli
Threshold number
- sli_
threshold float
- sli
Threshold 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
sumologic
Terraform Provider.