sysdig.MonitorAlertV2Downtime
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample = new sysdig.MonitorAlertV2Downtime("sample", {
groupBies: [
"host_hostname",
"program_name",
],
metric: "sysdig_program_up",
notificationChannels: [{
id: 1234,
}],
rangeSeconds: 600,
scopes: [{
label: "host_hostname",
operator: "in",
values: [
"my-cluster-1",
"my-server-2",
],
}],
severity: "high",
threshold: 75,
});
import pulumi
import pulumi_sysdig as sysdig
sample = sysdig.MonitorAlertV2Downtime("sample",
group_bies=[
"host_hostname",
"program_name",
],
metric="sysdig_program_up",
notification_channels=[{
"id": 1234,
}],
range_seconds=600,
scopes=[{
"label": "host_hostname",
"operator": "in",
"values": [
"my-cluster-1",
"my-server-2",
],
}],
severity="high",
threshold=75)
package main
import (
"github.com/pulumi/pulumi-terraform-provider/sdks/go/sysdig/sysdig"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := sysdig.NewMonitorAlertV2Downtime(ctx, "sample", &sysdig.MonitorAlertV2DowntimeArgs{
GroupBies: pulumi.StringArray{
pulumi.String("host_hostname"),
pulumi.String("program_name"),
},
Metric: pulumi.String("sysdig_program_up"),
NotificationChannels: sysdig.MonitorAlertV2DowntimeNotificationChannelArray{
&sysdig.MonitorAlertV2DowntimeNotificationChannelArgs{
Id: pulumi.Float64(1234),
},
},
RangeSeconds: pulumi.Float64(600),
Scopes: sysdig.MonitorAlertV2DowntimeScopeArray{
&sysdig.MonitorAlertV2DowntimeScopeArgs{
Label: pulumi.String("host_hostname"),
Operator: pulumi.String("in"),
Values: pulumi.StringArray{
pulumi.String("my-cluster-1"),
pulumi.String("my-server-2"),
},
},
},
Severity: pulumi.String("high"),
Threshold: pulumi.Float64(75),
})
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Sysdig = Pulumi.Sysdig;
return await Deployment.RunAsync(() =>
{
var sample = new Sysdig.MonitorAlertV2Downtime("sample", new()
{
GroupBies = new[]
{
"host_hostname",
"program_name",
},
Metric = "sysdig_program_up",
NotificationChannels = new[]
{
new Sysdig.Inputs.MonitorAlertV2DowntimeNotificationChannelArgs
{
Id = 1234,
},
},
RangeSeconds = 600,
Scopes = new[]
{
new Sysdig.Inputs.MonitorAlertV2DowntimeScopeArgs
{
Label = "host_hostname",
Operator = "in",
Values = new[]
{
"my-cluster-1",
"my-server-2",
},
},
},
Severity = "high",
Threshold = 75,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorAlertV2Downtime;
import com.pulumi.sysdig.MonitorAlertV2DowntimeArgs;
import com.pulumi.sysdig.inputs.MonitorAlertV2DowntimeNotificationChannelArgs;
import com.pulumi.sysdig.inputs.MonitorAlertV2DowntimeScopeArgs;
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 sample = new MonitorAlertV2Downtime("sample", MonitorAlertV2DowntimeArgs.builder()
.groupBies(
"host_hostname",
"program_name")
.metric("sysdig_program_up")
.notificationChannels(MonitorAlertV2DowntimeNotificationChannelArgs.builder()
.id(1234)
.build())
.rangeSeconds(600)
.scopes(MonitorAlertV2DowntimeScopeArgs.builder()
.label("host_hostname")
.operator("in")
.values(
"my-cluster-1",
"my-server-2")
.build())
.severity("high")
.threshold(75)
.build());
}
}
resources:
sample:
type: sysdig:MonitorAlertV2Downtime
properties:
groupBies:
- host_hostname
- program_name
metric: sysdig_program_up
notificationChannels:
- id: 1234
rangeSeconds: 600
scopes:
- label: host_hostname
operator: in
values:
- my-cluster-1
- my-server-2
severity: high
threshold: 75
Create MonitorAlertV2Downtime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlertV2Downtime(name: string, args: MonitorAlertV2DowntimeArgs, opts?: CustomResourceOptions);
@overload
def MonitorAlertV2Downtime(resource_name: str,
args: MonitorAlertV2DowntimeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlertV2Downtime(resource_name: str,
opts: Optional[ResourceOptions] = None,
metric: Optional[str] = None,
group: Optional[str] = None,
notification_channels: Optional[Sequence[MonitorAlertV2DowntimeNotificationChannelArgs]] = None,
enabled: Optional[bool] = None,
capture: Optional[MonitorAlertV2DowntimeCaptureArgs] = None,
group_bies: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
links: Optional[Sequence[MonitorAlertV2DowntimeLinkArgs]] = None,
custom_notification: Optional[MonitorAlertV2DowntimeCustomNotificationArgs] = None,
description: Optional[str] = None,
monitor_alert_v2_downtime_id: Optional[str] = None,
name: Optional[str] = None,
range_seconds: Optional[float] = None,
scopes: Optional[Sequence[MonitorAlertV2DowntimeScopeArgs]] = None,
severity: Optional[str] = None,
threshold: Optional[float] = None,
timeouts: Optional[MonitorAlertV2DowntimeTimeoutsArgs] = None,
trigger_after_minutes: Optional[float] = None,
unreported_alert_notifications_retention_seconds: Optional[float] = None)
func NewMonitorAlertV2Downtime(ctx *Context, name string, args MonitorAlertV2DowntimeArgs, opts ...ResourceOption) (*MonitorAlertV2Downtime, error)
public MonitorAlertV2Downtime(string name, MonitorAlertV2DowntimeArgs args, CustomResourceOptions? opts = null)
public MonitorAlertV2Downtime(String name, MonitorAlertV2DowntimeArgs args)
public MonitorAlertV2Downtime(String name, MonitorAlertV2DowntimeArgs args, CustomResourceOptions options)
type: sysdig:MonitorAlertV2Downtime
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 MonitorAlertV2DowntimeArgs
- 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 MonitorAlertV2DowntimeArgs
- 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 MonitorAlertV2DowntimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertV2DowntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertV2DowntimeArgs
- 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 monitorAlertV2DowntimeResource = new Sysdig.MonitorAlertV2Downtime("monitorAlertV2DowntimeResource", new()
{
Metric = "string",
Group = "string",
NotificationChannels = new[]
{
new Sysdig.Inputs.MonitorAlertV2DowntimeNotificationChannelArgs
{
Id = 0,
MainThreshold = false,
NotifyOnResolve = false,
RenotifyEveryMinutes = 0,
WarningThreshold = false,
},
},
Enabled = false,
Capture = new Sysdig.Inputs.MonitorAlertV2DowntimeCaptureArgs
{
Filename = "string",
DurationSeconds = 0,
Enabled = false,
Filter = "string",
Storage = "string",
},
GroupBies = new[]
{
"string",
},
Labels =
{
{ "string", "string" },
},
Links = new[]
{
new Sysdig.Inputs.MonitorAlertV2DowntimeLinkArgs
{
Type = "string",
Href = "string",
Id = "string",
},
},
CustomNotification = new Sysdig.Inputs.MonitorAlertV2DowntimeCustomNotificationArgs
{
Append = "string",
Prepend = "string",
Subject = "string",
},
Description = "string",
MonitorAlertV2DowntimeId = "string",
Name = "string",
RangeSeconds = 0,
Scopes = new[]
{
new Sysdig.Inputs.MonitorAlertV2DowntimeScopeArgs
{
Label = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
Severity = "string",
Threshold = 0,
Timeouts = new Sysdig.Inputs.MonitorAlertV2DowntimeTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
UnreportedAlertNotificationsRetentionSeconds = 0,
});
example, err := sysdig.NewMonitorAlertV2Downtime(ctx, "monitorAlertV2DowntimeResource", &sysdig.MonitorAlertV2DowntimeArgs{
Metric: pulumi.String("string"),
Group: pulumi.String("string"),
NotificationChannels: sysdig.MonitorAlertV2DowntimeNotificationChannelArray{
&sysdig.MonitorAlertV2DowntimeNotificationChannelArgs{
Id: pulumi.Float64(0),
MainThreshold: pulumi.Bool(false),
NotifyOnResolve: pulumi.Bool(false),
RenotifyEveryMinutes: pulumi.Float64(0),
WarningThreshold: pulumi.Bool(false),
},
},
Enabled: pulumi.Bool(false),
Capture: &sysdig.MonitorAlertV2DowntimeCaptureArgs{
Filename: pulumi.String("string"),
DurationSeconds: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Filter: pulumi.String("string"),
Storage: pulumi.String("string"),
},
GroupBies: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Links: sysdig.MonitorAlertV2DowntimeLinkArray{
&sysdig.MonitorAlertV2DowntimeLinkArgs{
Type: pulumi.String("string"),
Href: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
CustomNotification: &sysdig.MonitorAlertV2DowntimeCustomNotificationArgs{
Append: pulumi.String("string"),
Prepend: pulumi.String("string"),
Subject: pulumi.String("string"),
},
Description: pulumi.String("string"),
MonitorAlertV2DowntimeId: pulumi.String("string"),
Name: pulumi.String("string"),
RangeSeconds: pulumi.Float64(0),
Scopes: sysdig.MonitorAlertV2DowntimeScopeArray{
&sysdig.MonitorAlertV2DowntimeScopeArgs{
Label: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Severity: pulumi.String("string"),
Threshold: pulumi.Float64(0),
Timeouts: &sysdig.MonitorAlertV2DowntimeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
UnreportedAlertNotificationsRetentionSeconds: pulumi.Float64(0),
})
var monitorAlertV2DowntimeResource = new MonitorAlertV2Downtime("monitorAlertV2DowntimeResource", MonitorAlertV2DowntimeArgs.builder()
.metric("string")
.group("string")
.notificationChannels(MonitorAlertV2DowntimeNotificationChannelArgs.builder()
.id(0)
.mainThreshold(false)
.notifyOnResolve(false)
.renotifyEveryMinutes(0)
.warningThreshold(false)
.build())
.enabled(false)
.capture(MonitorAlertV2DowntimeCaptureArgs.builder()
.filename("string")
.durationSeconds(0)
.enabled(false)
.filter("string")
.storage("string")
.build())
.groupBies("string")
.labels(Map.of("string", "string"))
.links(MonitorAlertV2DowntimeLinkArgs.builder()
.type("string")
.href("string")
.id("string")
.build())
.customNotification(MonitorAlertV2DowntimeCustomNotificationArgs.builder()
.append("string")
.prepend("string")
.subject("string")
.build())
.description("string")
.monitorAlertV2DowntimeId("string")
.name("string")
.rangeSeconds(0)
.scopes(MonitorAlertV2DowntimeScopeArgs.builder()
.label("string")
.operator("string")
.values("string")
.build())
.severity("string")
.threshold(0)
.timeouts(MonitorAlertV2DowntimeTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.unreportedAlertNotificationsRetentionSeconds(0)
.build());
monitor_alert_v2_downtime_resource = sysdig.MonitorAlertV2Downtime("monitorAlertV2DowntimeResource",
metric="string",
group="string",
notification_channels=[{
"id": 0,
"main_threshold": False,
"notify_on_resolve": False,
"renotify_every_minutes": 0,
"warning_threshold": False,
}],
enabled=False,
capture={
"filename": "string",
"duration_seconds": 0,
"enabled": False,
"filter": "string",
"storage": "string",
},
group_bies=["string"],
labels={
"string": "string",
},
links=[{
"type": "string",
"href": "string",
"id": "string",
}],
custom_notification={
"append": "string",
"prepend": "string",
"subject": "string",
},
description="string",
monitor_alert_v2_downtime_id="string",
name="string",
range_seconds=0,
scopes=[{
"label": "string",
"operator": "string",
"values": ["string"],
}],
severity="string",
threshold=0,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
unreported_alert_notifications_retention_seconds=0)
const monitorAlertV2DowntimeResource = new sysdig.MonitorAlertV2Downtime("monitorAlertV2DowntimeResource", {
metric: "string",
group: "string",
notificationChannels: [{
id: 0,
mainThreshold: false,
notifyOnResolve: false,
renotifyEveryMinutes: 0,
warningThreshold: false,
}],
enabled: false,
capture: {
filename: "string",
durationSeconds: 0,
enabled: false,
filter: "string",
storage: "string",
},
groupBies: ["string"],
labels: {
string: "string",
},
links: [{
type: "string",
href: "string",
id: "string",
}],
customNotification: {
append: "string",
prepend: "string",
subject: "string",
},
description: "string",
monitorAlertV2DowntimeId: "string",
name: "string",
rangeSeconds: 0,
scopes: [{
label: "string",
operator: "string",
values: ["string"],
}],
severity: "string",
threshold: 0,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
unreportedAlertNotificationsRetentionSeconds: 0,
});
type: sysdig:MonitorAlertV2Downtime
properties:
capture:
durationSeconds: 0
enabled: false
filename: string
filter: string
storage: string
customNotification:
append: string
prepend: string
subject: string
description: string
enabled: false
group: string
groupBies:
- string
labels:
string: string
links:
- href: string
id: string
type: string
metric: string
monitorAlertV2DowntimeId: string
name: string
notificationChannels:
- id: 0
mainThreshold: false
notifyOnResolve: false
renotifyEveryMinutes: 0
warningThreshold: false
rangeSeconds: 0
scopes:
- label: string
operator: string
values:
- string
severity: string
threshold: 0
timeouts:
create: string
delete: string
read: string
update: string
unreportedAlertNotificationsRetentionSeconds: 0
MonitorAlertV2Downtime 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 MonitorAlertV2Downtime resource accepts the following input properties:
- Metric string
- Capture
Monitor
Alert V2Downtime Capture - Custom
Notification MonitorAlert V2Downtime Custom Notification - Description string
- Enabled bool
- Group string
- Group
Bies List<string> - Labels Dictionary<string, string>
- Links
List<Monitor
Alert V2Downtime Link> - Monitor
Alert stringV2Downtime Id - ID of the alert created.
- Name string
- Notification
Channels List<MonitorAlert V2Downtime Notification Channel> - Range
Seconds double - Scopes
List<Monitor
Alert V2Downtime Scope> - Severity string
- Threshold double
- Timeouts
Monitor
Alert V2Downtime Timeouts - Trigger
After doubleMinutes - Unreported
Alert doubleNotifications Retention Seconds
- Metric string
- Capture
Monitor
Alert V2Downtime Capture Args - Custom
Notification MonitorAlert V2Downtime Custom Notification Args - Description string
- Enabled bool
- Group string
- Group
Bies []string - Labels map[string]string
- Links
[]Monitor
Alert V2Downtime Link Args - Monitor
Alert stringV2Downtime Id - ID of the alert created.
- Name string
- Notification
Channels []MonitorAlert V2Downtime Notification Channel Args - Range
Seconds float64 - Scopes
[]Monitor
Alert V2Downtime Scope Args - Severity string
- Threshold float64
- Timeouts
Monitor
Alert V2Downtime Timeouts Args - Trigger
After float64Minutes - Unreported
Alert float64Notifications Retention Seconds
- metric String
- capture
Monitor
Alert V2Downtime Capture - custom
Notification MonitorAlert V2Downtime Custom Notification - description String
- enabled Boolean
- group String
- group
Bies List<String> - labels Map<String,String>
- links
List<Monitor
Alert V2Downtime Link> - monitor
Alert StringV2Downtime Id - ID of the alert created.
- name String
- notification
Channels List<MonitorAlert V2Downtime Notification Channel> - range
Seconds Double - scopes
List<Monitor
Alert V2Downtime Scope> - severity String
- threshold Double
- timeouts
Monitor
Alert V2Downtime Timeouts - trigger
After DoubleMinutes - unreported
Alert DoubleNotifications Retention Seconds
- metric string
- capture
Monitor
Alert V2Downtime Capture - custom
Notification MonitorAlert V2Downtime Custom Notification - description string
- enabled boolean
- group string
- group
Bies string[] - labels {[key: string]: string}
- links
Monitor
Alert V2Downtime Link[] - monitor
Alert stringV2Downtime Id - ID of the alert created.
- name string
- notification
Channels MonitorAlert V2Downtime Notification Channel[] - range
Seconds number - scopes
Monitor
Alert V2Downtime Scope[] - severity string
- threshold number
- timeouts
Monitor
Alert V2Downtime Timeouts - trigger
After numberMinutes - unreported
Alert numberNotifications Retention Seconds
- metric str
- capture
Monitor
Alert V2Downtime Capture Args - custom_
notification MonitorAlert V2Downtime Custom Notification Args - description str
- enabled bool
- group str
- group_
bies Sequence[str] - labels Mapping[str, str]
- links
Sequence[Monitor
Alert V2Downtime Link Args] - monitor_
alert_ strv2_ downtime_ id - ID of the alert created.
- name str
- notification_
channels Sequence[MonitorAlert V2Downtime Notification Channel Args] - range_
seconds float - scopes
Sequence[Monitor
Alert V2Downtime Scope Args] - severity str
- threshold float
- timeouts
Monitor
Alert V2Downtime Timeouts Args - trigger_
after_ floatminutes - unreported_
alert_ floatnotifications_ retention_ seconds
- metric String
- capture Property Map
- custom
Notification Property Map - description String
- enabled Boolean
- group String
- group
Bies List<String> - labels Map<String>
- links List<Property Map>
- monitor
Alert StringV2Downtime Id - ID of the alert created.
- name String
- notification
Channels List<Property Map> - range
Seconds Number - scopes List<Property Map>
- severity String
- threshold Number
- timeouts Property Map
- trigger
After NumberMinutes - unreported
Alert NumberNotifications Retention Seconds
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlertV2Downtime resource produces the following output properties:
Look up Existing MonitorAlertV2Downtime Resource
Get an existing MonitorAlertV2Downtime 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?: MonitorAlertV2DowntimeState, opts?: CustomResourceOptions): MonitorAlertV2Downtime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capture: Optional[MonitorAlertV2DowntimeCaptureArgs] = None,
custom_notification: Optional[MonitorAlertV2DowntimeCustomNotificationArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
group: Optional[str] = None,
group_bies: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
links: Optional[Sequence[MonitorAlertV2DowntimeLinkArgs]] = None,
metric: Optional[str] = None,
monitor_alert_v2_downtime_id: Optional[str] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[MonitorAlertV2DowntimeNotificationChannelArgs]] = None,
range_seconds: Optional[float] = None,
scopes: Optional[Sequence[MonitorAlertV2DowntimeScopeArgs]] = None,
severity: Optional[str] = None,
team: Optional[float] = None,
threshold: Optional[float] = None,
timeouts: Optional[MonitorAlertV2DowntimeTimeoutsArgs] = None,
trigger_after_minutes: Optional[float] = None,
unreported_alert_notifications_retention_seconds: Optional[float] = None,
version: Optional[float] = None) -> MonitorAlertV2Downtime
func GetMonitorAlertV2Downtime(ctx *Context, name string, id IDInput, state *MonitorAlertV2DowntimeState, opts ...ResourceOption) (*MonitorAlertV2Downtime, error)
public static MonitorAlertV2Downtime Get(string name, Input<string> id, MonitorAlertV2DowntimeState? state, CustomResourceOptions? opts = null)
public static MonitorAlertV2Downtime get(String name, Output<String> id, MonitorAlertV2DowntimeState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorAlertV2Downtime get: id: ${id}
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Capture
Monitor
Alert V2Downtime Capture - Custom
Notification MonitorAlert V2Downtime Custom Notification - Description string
- Enabled bool
- Group string
- Group
Bies List<string> - Labels Dictionary<string, string>
- Links
List<Monitor
Alert V2Downtime Link> - Metric string
- Monitor
Alert stringV2Downtime Id - ID of the alert created.
- Name string
- Notification
Channels List<MonitorAlert V2Downtime Notification Channel> - Range
Seconds double - Scopes
List<Monitor
Alert V2Downtime Scope> - Severity string
- Team double
- Team ID that owns the alert.
- Threshold double
- Timeouts
Monitor
Alert V2Downtime Timeouts - Trigger
After doubleMinutes - Unreported
Alert doubleNotifications Retention Seconds - Version double
- Current version of the resource in Sysdig Monitor.
- Capture
Monitor
Alert V2Downtime Capture Args - Custom
Notification MonitorAlert V2Downtime Custom Notification Args - Description string
- Enabled bool
- Group string
- Group
Bies []string - Labels map[string]string
- Links
[]Monitor
Alert V2Downtime Link Args - Metric string
- Monitor
Alert stringV2Downtime Id - ID of the alert created.
- Name string
- Notification
Channels []MonitorAlert V2Downtime Notification Channel Args - Range
Seconds float64 - Scopes
[]Monitor
Alert V2Downtime Scope Args - Severity string
- Team float64
- Team ID that owns the alert.
- Threshold float64
- Timeouts
Monitor
Alert V2Downtime Timeouts Args - Trigger
After float64Minutes - Unreported
Alert float64Notifications Retention Seconds - Version float64
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert V2Downtime Capture - custom
Notification MonitorAlert V2Downtime Custom Notification - description String
- enabled Boolean
- group String
- group
Bies List<String> - labels Map<String,String>
- links
List<Monitor
Alert V2Downtime Link> - metric String
- monitor
Alert StringV2Downtime Id - ID of the alert created.
- name String
- notification
Channels List<MonitorAlert V2Downtime Notification Channel> - range
Seconds Double - scopes
List<Monitor
Alert V2Downtime Scope> - severity String
- team Double
- Team ID that owns the alert.
- threshold Double
- timeouts
Monitor
Alert V2Downtime Timeouts - trigger
After DoubleMinutes - unreported
Alert DoubleNotifications Retention Seconds - version Double
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert V2Downtime Capture - custom
Notification MonitorAlert V2Downtime Custom Notification - description string
- enabled boolean
- group string
- group
Bies string[] - labels {[key: string]: string}
- links
Monitor
Alert V2Downtime Link[] - metric string
- monitor
Alert stringV2Downtime Id - ID of the alert created.
- name string
- notification
Channels MonitorAlert V2Downtime Notification Channel[] - range
Seconds number - scopes
Monitor
Alert V2Downtime Scope[] - severity string
- team number
- Team ID that owns the alert.
- threshold number
- timeouts
Monitor
Alert V2Downtime Timeouts - trigger
After numberMinutes - unreported
Alert numberNotifications Retention Seconds - version number
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert V2Downtime Capture Args - custom_
notification MonitorAlert V2Downtime Custom Notification Args - description str
- enabled bool
- group str
- group_
bies Sequence[str] - labels Mapping[str, str]
- links
Sequence[Monitor
Alert V2Downtime Link Args] - metric str
- monitor_
alert_ strv2_ downtime_ id - ID of the alert created.
- name str
- notification_
channels Sequence[MonitorAlert V2Downtime Notification Channel Args] - range_
seconds float - scopes
Sequence[Monitor
Alert V2Downtime Scope Args] - severity str
- team float
- Team ID that owns the alert.
- threshold float
- timeouts
Monitor
Alert V2Downtime Timeouts Args - trigger_
after_ floatminutes - unreported_
alert_ floatnotifications_ retention_ seconds - version float
- Current version of the resource in Sysdig Monitor.
- capture Property Map
- custom
Notification Property Map - description String
- enabled Boolean
- group String
- group
Bies List<String> - labels Map<String>
- links List<Property Map>
- metric String
- monitor
Alert StringV2Downtime Id - ID of the alert created.
- name String
- notification
Channels List<Property Map> - range
Seconds Number - scopes List<Property Map>
- severity String
- team Number
- Team ID that owns the alert.
- threshold Number
- timeouts Property Map
- trigger
After NumberMinutes - unreported
Alert NumberNotifications Retention Seconds - version Number
- Current version of the resource in Sysdig Monitor.
Supporting Types
MonitorAlertV2DowntimeCapture, MonitorAlertV2DowntimeCaptureArgs
- Filename string
- Defines the name of the capture file. Must have
.scap
suffix. - Duration
Seconds double - Time frame of the capture. Default:
15
. - Enabled bool
- Wether to enable captures. Default:
true
. - Filter string
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - Storage string
- Custom bucket where to save the capture.
- Filename string
- Defines the name of the capture file. Must have
.scap
suffix. - Duration
Seconds float64 - Time frame of the capture. Default:
15
. - Enabled bool
- Wether to enable captures. Default:
true
. - Filter string
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - Storage string
- Custom bucket where to save the capture.
- filename String
- Defines the name of the capture file. Must have
.scap
suffix. - duration
Seconds Double - Time frame of the capture. Default:
15
. - enabled Boolean
- Wether to enable captures. Default:
true
. - filter String
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - storage String
- Custom bucket where to save the capture.
- filename string
- Defines the name of the capture file. Must have
.scap
suffix. - duration
Seconds number - Time frame of the capture. Default:
15
. - enabled boolean
- Wether to enable captures. Default:
true
. - filter string
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - storage string
- Custom bucket where to save the capture.
- filename str
- Defines the name of the capture file. Must have
.scap
suffix. - duration_
seconds float - Time frame of the capture. Default:
15
. - enabled bool
- Wether to enable captures. Default:
true
. - filter str
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - storage str
- Custom bucket where to save the capture.
- filename String
- Defines the name of the capture file. Must have
.scap
suffix. - duration
Seconds Number - Time frame of the capture. Default:
15
. - enabled Boolean
- Wether to enable captures. Default:
true
. - filter String
- Additional filter to apply to the capture. For example:
proc.name contains nginx
. - storage String
- Custom bucket where to save the capture.
MonitorAlertV2DowntimeCustomNotification, MonitorAlertV2DowntimeCustomNotificationArgs
MonitorAlertV2DowntimeLink, MonitorAlertV2DowntimeLinkArgs
MonitorAlertV2DowntimeNotificationChannel, MonitorAlertV2DowntimeNotificationChannelArgs
- Id double
- The ID of the notification channel.
- Main
Threshold bool - Notify
On boolResolve - Wether to send a notification when the alert is resolved. Default:
true
. - Renotify
Every doubleMinutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - Type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - Warning
Threshold bool
- Id float64
- The ID of the notification channel.
- Main
Threshold bool - Notify
On boolResolve - Wether to send a notification when the alert is resolved. Default:
true
. - Renotify
Every float64Minutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - Type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - Warning
Threshold bool
- id Double
- The ID of the notification channel.
- main
Threshold Boolean - notify
On BooleanResolve - Wether to send a notification when the alert is resolved. Default:
true
. - renotify
Every DoubleMinutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - type String
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold Boolean
- id number
- The ID of the notification channel.
- main
Threshold boolean - notify
On booleanResolve - Wether to send a notification when the alert is resolved. Default:
true
. - renotify
Every numberMinutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold boolean
- id float
- The ID of the notification channel.
- main_
threshold bool - notify_
on_ boolresolve - Wether to send a notification when the alert is resolved. Default:
true
. - renotify_
every_ floatminutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - type str
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning_
threshold bool
- id Number
- The ID of the notification channel.
- main
Threshold Boolean - notify
On BooleanResolve - Wether to send a notification when the alert is resolved. Default:
true
. - renotify
Every NumberMinutes - the amount of minutes to wait before re sending the notification to this channel.
0
means no renotification enabled. Default:0
. - type String
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold Boolean
MonitorAlertV2DowntimeScope, MonitorAlertV2DowntimeScopeArgs
MonitorAlertV2DowntimeTimeouts, MonitorAlertV2DowntimeTimeoutsArgs
Import
Downtime alerts can be imported using the alert ID, e.g.
$ pulumi import sysdig:index/monitorAlertV2Downtime:MonitorAlertV2Downtime example 12345
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- sysdig sysdiglabs/terraform-provider-sysdig
- License
- Notes
- This Pulumi package is based on the
sysdig
Terraform Provider.