sysdig.MonitorAlertDowntime
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample = new sysdig.MonitorAlertDowntime("sample", {
description: "Detects a downtime in the Kubernetes cluster",
entitiesToMonitors: ["kubernetes.namespace.name"],
severity: 2,
triggerAfterMinutes: 10,
triggerAfterPct: 100,
});
import pulumi
import pulumi_sysdig as sysdig
sample = sysdig.MonitorAlertDowntime("sample",
description="Detects a downtime in the Kubernetes cluster",
entities_to_monitors=["kubernetes.namespace.name"],
severity=2,
trigger_after_minutes=10,
trigger_after_pct=100)
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.NewMonitorAlertDowntime(ctx, "sample", &sysdig.MonitorAlertDowntimeArgs{
Description: pulumi.String("Detects a downtime in the Kubernetes cluster"),
EntitiesToMonitors: pulumi.StringArray{
pulumi.String("kubernetes.namespace.name"),
},
Severity: pulumi.Float64(2),
TriggerAfterMinutes: pulumi.Float64(10),
TriggerAfterPct: pulumi.Float64(100),
})
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.MonitorAlertDowntime("sample", new()
{
Description = "Detects a downtime in the Kubernetes cluster",
EntitiesToMonitors = new[]
{
"kubernetes.namespace.name",
},
Severity = 2,
TriggerAfterMinutes = 10,
TriggerAfterPct = 100,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorAlertDowntime;
import com.pulumi.sysdig.MonitorAlertDowntimeArgs;
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 MonitorAlertDowntime("sample", MonitorAlertDowntimeArgs.builder()
.description("Detects a downtime in the Kubernetes cluster")
.entitiesToMonitors("kubernetes.namespace.name")
.severity(2)
.triggerAfterMinutes(10)
.triggerAfterPct(100)
.build());
}
}
resources:
sample:
type: sysdig:MonitorAlertDowntime
properties:
description: Detects a downtime in the Kubernetes cluster
entitiesToMonitors:
- kubernetes.namespace.name
severity: 2
triggerAfterMinutes: 10
triggerAfterPct: 100
Create MonitorAlertDowntime Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlertDowntime(name: string, args: MonitorAlertDowntimeArgs, opts?: CustomResourceOptions);
@overload
def MonitorAlertDowntime(resource_name: str,
args: MonitorAlertDowntimeArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlertDowntime(resource_name: str,
opts: Optional[ResourceOptions] = None,
entities_to_monitors: Optional[Sequence[str]] = None,
trigger_after_minutes: Optional[float] = None,
monitor_alert_downtime_id: Optional[str] = None,
enabled: Optional[bool] = None,
description: Optional[str] = None,
group_name: Optional[str] = None,
capture: Optional[MonitorAlertDowntimeCaptureArgs] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[float]] = None,
renotification_minutes: Optional[float] = None,
scope: Optional[str] = None,
severity: Optional[float] = None,
timeouts: Optional[MonitorAlertDowntimeTimeoutsArgs] = None,
custom_notification: Optional[MonitorAlertDowntimeCustomNotificationArgs] = None,
trigger_after_pct: Optional[float] = None)
func NewMonitorAlertDowntime(ctx *Context, name string, args MonitorAlertDowntimeArgs, opts ...ResourceOption) (*MonitorAlertDowntime, error)
public MonitorAlertDowntime(string name, MonitorAlertDowntimeArgs args, CustomResourceOptions? opts = null)
public MonitorAlertDowntime(String name, MonitorAlertDowntimeArgs args)
public MonitorAlertDowntime(String name, MonitorAlertDowntimeArgs args, CustomResourceOptions options)
type: sysdig:MonitorAlertDowntime
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 MonitorAlertDowntimeArgs
- 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 MonitorAlertDowntimeArgs
- 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 MonitorAlertDowntimeArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertDowntimeArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertDowntimeArgs
- 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 monitorAlertDowntimeResource = new Sysdig.MonitorAlertDowntime("monitorAlertDowntimeResource", new()
{
EntitiesToMonitors = new[]
{
"string",
},
TriggerAfterMinutes = 0,
MonitorAlertDowntimeId = "string",
Enabled = false,
Description = "string",
GroupName = "string",
Capture = new Sysdig.Inputs.MonitorAlertDowntimeCaptureArgs
{
Duration = 0,
Filename = "string",
Filter = "string",
},
Name = "string",
NotificationChannels = new[]
{
0,
},
RenotificationMinutes = 0,
Scope = "string",
Severity = 0,
Timeouts = new Sysdig.Inputs.MonitorAlertDowntimeTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
CustomNotification = new Sysdig.Inputs.MonitorAlertDowntimeCustomNotificationArgs
{
Title = "string",
Append = "string",
Prepend = "string",
},
TriggerAfterPct = 0,
});
example, err := sysdig.NewMonitorAlertDowntime(ctx, "monitorAlertDowntimeResource", &sysdig.MonitorAlertDowntimeArgs{
EntitiesToMonitors: pulumi.StringArray{
pulumi.String("string"),
},
TriggerAfterMinutes: pulumi.Float64(0),
MonitorAlertDowntimeId: pulumi.String("string"),
Enabled: pulumi.Bool(false),
Description: pulumi.String("string"),
GroupName: pulumi.String("string"),
Capture: &sysdig.MonitorAlertDowntimeCaptureArgs{
Duration: pulumi.Float64(0),
Filename: pulumi.String("string"),
Filter: pulumi.String("string"),
},
Name: pulumi.String("string"),
NotificationChannels: pulumi.Float64Array{
pulumi.Float64(0),
},
RenotificationMinutes: pulumi.Float64(0),
Scope: pulumi.String("string"),
Severity: pulumi.Float64(0),
Timeouts: &sysdig.MonitorAlertDowntimeTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
CustomNotification: &sysdig.MonitorAlertDowntimeCustomNotificationArgs{
Title: pulumi.String("string"),
Append: pulumi.String("string"),
Prepend: pulumi.String("string"),
},
TriggerAfterPct: pulumi.Float64(0),
})
var monitorAlertDowntimeResource = new MonitorAlertDowntime("monitorAlertDowntimeResource", MonitorAlertDowntimeArgs.builder()
.entitiesToMonitors("string")
.triggerAfterMinutes(0)
.monitorAlertDowntimeId("string")
.enabled(false)
.description("string")
.groupName("string")
.capture(MonitorAlertDowntimeCaptureArgs.builder()
.duration(0)
.filename("string")
.filter("string")
.build())
.name("string")
.notificationChannels(0)
.renotificationMinutes(0)
.scope("string")
.severity(0)
.timeouts(MonitorAlertDowntimeTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.customNotification(MonitorAlertDowntimeCustomNotificationArgs.builder()
.title("string")
.append("string")
.prepend("string")
.build())
.triggerAfterPct(0)
.build());
monitor_alert_downtime_resource = sysdig.MonitorAlertDowntime("monitorAlertDowntimeResource",
entities_to_monitors=["string"],
trigger_after_minutes=0,
monitor_alert_downtime_id="string",
enabled=False,
description="string",
group_name="string",
capture={
"duration": 0,
"filename": "string",
"filter": "string",
},
name="string",
notification_channels=[0],
renotification_minutes=0,
scope="string",
severity=0,
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
custom_notification={
"title": "string",
"append": "string",
"prepend": "string",
},
trigger_after_pct=0)
const monitorAlertDowntimeResource = new sysdig.MonitorAlertDowntime("monitorAlertDowntimeResource", {
entitiesToMonitors: ["string"],
triggerAfterMinutes: 0,
monitorAlertDowntimeId: "string",
enabled: false,
description: "string",
groupName: "string",
capture: {
duration: 0,
filename: "string",
filter: "string",
},
name: "string",
notificationChannels: [0],
renotificationMinutes: 0,
scope: "string",
severity: 0,
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
customNotification: {
title: "string",
append: "string",
prepend: "string",
},
triggerAfterPct: 0,
});
type: sysdig:MonitorAlertDowntime
properties:
capture:
duration: 0
filename: string
filter: string
customNotification:
append: string
prepend: string
title: string
description: string
enabled: false
entitiesToMonitors:
- string
groupName: string
monitorAlertDowntimeId: string
name: string
notificationChannels:
- 0
renotificationMinutes: 0
scope: string
severity: 0
timeouts:
create: string
delete: string
read: string
update: string
triggerAfterMinutes: 0
triggerAfterPct: 0
MonitorAlertDowntime 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 MonitorAlertDowntime resource accepts the following input properties:
- Entities
To List<string>Monitors - Trigger
After doubleMinutes - Capture
Monitor
Alert Downtime Capture - Custom
Notification MonitorAlert Downtime Custom Notification - Description string
- Enabled bool
- Group
Name string - Monitor
Alert stringDowntime Id - ID of the alert created.
- Name string
- Notification
Channels List<double> - Renotification
Minutes double - Scope string
- Severity double
- Timeouts
Monitor
Alert Downtime Timeouts - Trigger
After doublePct
- Entities
To []stringMonitors - Trigger
After float64Minutes - Capture
Monitor
Alert Downtime Capture Args - Custom
Notification MonitorAlert Downtime Custom Notification Args - Description string
- Enabled bool
- Group
Name string - Monitor
Alert stringDowntime Id - ID of the alert created.
- Name string
- Notification
Channels []float64 - Renotification
Minutes float64 - Scope string
- Severity float64
- Timeouts
Monitor
Alert Downtime Timeouts Args - Trigger
After float64Pct
- entities
To List<String>Monitors - trigger
After DoubleMinutes - capture
Monitor
Alert Downtime Capture - custom
Notification MonitorAlert Downtime Custom Notification - description String
- enabled Boolean
- group
Name String - monitor
Alert StringDowntime Id - ID of the alert created.
- name String
- notification
Channels List<Double> - renotification
Minutes Double - scope String
- severity Double
- timeouts
Monitor
Alert Downtime Timeouts - trigger
After DoublePct
- entities
To string[]Monitors - trigger
After numberMinutes - capture
Monitor
Alert Downtime Capture - custom
Notification MonitorAlert Downtime Custom Notification - description string
- enabled boolean
- group
Name string - monitor
Alert stringDowntime Id - ID of the alert created.
- name string
- notification
Channels number[] - renotification
Minutes number - scope string
- severity number
- timeouts
Monitor
Alert Downtime Timeouts - trigger
After numberPct
- entities_
to_ Sequence[str]monitors - trigger_
after_ floatminutes - capture
Monitor
Alert Downtime Capture Args - custom_
notification MonitorAlert Downtime Custom Notification Args - description str
- enabled bool
- group_
name str - monitor_
alert_ strdowntime_ id - ID of the alert created.
- name str
- notification_
channels Sequence[float] - renotification_
minutes float - scope str
- severity float
- timeouts
Monitor
Alert Downtime Timeouts Args - trigger_
after_ floatpct
- entities
To List<String>Monitors - trigger
After NumberMinutes - capture Property Map
- custom
Notification Property Map - description String
- enabled Boolean
- group
Name String - monitor
Alert StringDowntime Id - ID of the alert created.
- name String
- notification
Channels List<Number> - renotification
Minutes Number - scope String
- severity Number
- timeouts Property Map
- trigger
After NumberPct
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlertDowntime resource produces the following output properties:
Look up Existing MonitorAlertDowntime Resource
Get an existing MonitorAlertDowntime 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?: MonitorAlertDowntimeState, opts?: CustomResourceOptions): MonitorAlertDowntime
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capture: Optional[MonitorAlertDowntimeCaptureArgs] = None,
custom_notification: Optional[MonitorAlertDowntimeCustomNotificationArgs] = None,
description: Optional[str] = None,
enabled: Optional[bool] = None,
entities_to_monitors: Optional[Sequence[str]] = None,
group_name: Optional[str] = None,
monitor_alert_downtime_id: Optional[str] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[float]] = None,
renotification_minutes: Optional[float] = None,
scope: Optional[str] = None,
severity: Optional[float] = None,
team: Optional[float] = None,
timeouts: Optional[MonitorAlertDowntimeTimeoutsArgs] = None,
trigger_after_minutes: Optional[float] = None,
trigger_after_pct: Optional[float] = None,
version: Optional[float] = None) -> MonitorAlertDowntime
func GetMonitorAlertDowntime(ctx *Context, name string, id IDInput, state *MonitorAlertDowntimeState, opts ...ResourceOption) (*MonitorAlertDowntime, error)
public static MonitorAlertDowntime Get(string name, Input<string> id, MonitorAlertDowntimeState? state, CustomResourceOptions? opts = null)
public static MonitorAlertDowntime get(String name, Output<String> id, MonitorAlertDowntimeState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorAlertDowntime 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 Downtime Capture - Custom
Notification MonitorAlert Downtime Custom Notification - Description string
- Enabled bool
- Entities
To List<string>Monitors - Group
Name string - Monitor
Alert stringDowntime Id - ID of the alert created.
- Name string
- Notification
Channels List<double> - Renotification
Minutes double - Scope string
- Severity double
- Team double
- Team ID that owns the alert.
- Timeouts
Monitor
Alert Downtime Timeouts - Trigger
After doubleMinutes - Trigger
After doublePct - Version double
- Current version of the resource in Sysdig Monitor.
- Capture
Monitor
Alert Downtime Capture Args - Custom
Notification MonitorAlert Downtime Custom Notification Args - Description string
- Enabled bool
- Entities
To []stringMonitors - Group
Name string - Monitor
Alert stringDowntime Id - ID of the alert created.
- Name string
- Notification
Channels []float64 - Renotification
Minutes float64 - Scope string
- Severity float64
- Team float64
- Team ID that owns the alert.
- Timeouts
Monitor
Alert Downtime Timeouts Args - Trigger
After float64Minutes - Trigger
After float64Pct - Version float64
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert Downtime Capture - custom
Notification MonitorAlert Downtime Custom Notification - description String
- enabled Boolean
- entities
To List<String>Monitors - group
Name String - monitor
Alert StringDowntime Id - ID of the alert created.
- name String
- notification
Channels List<Double> - renotification
Minutes Double - scope String
- severity Double
- team Double
- Team ID that owns the alert.
- timeouts
Monitor
Alert Downtime Timeouts - trigger
After DoubleMinutes - trigger
After DoublePct - version Double
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert Downtime Capture - custom
Notification MonitorAlert Downtime Custom Notification - description string
- enabled boolean
- entities
To string[]Monitors - group
Name string - monitor
Alert stringDowntime Id - ID of the alert created.
- name string
- notification
Channels number[] - renotification
Minutes number - scope string
- severity number
- team number
- Team ID that owns the alert.
- timeouts
Monitor
Alert Downtime Timeouts - trigger
After numberMinutes - trigger
After numberPct - version number
- Current version of the resource in Sysdig Monitor.
- capture
Monitor
Alert Downtime Capture Args - custom_
notification MonitorAlert Downtime Custom Notification Args - description str
- enabled bool
- entities_
to_ Sequence[str]monitors - group_
name str - monitor_
alert_ strdowntime_ id - ID of the alert created.
- name str
- notification_
channels Sequence[float] - renotification_
minutes float - scope str
- severity float
- team float
- Team ID that owns the alert.
- timeouts
Monitor
Alert Downtime Timeouts Args - trigger_
after_ floatminutes - trigger_
after_ floatpct - version float
- Current version of the resource in Sysdig Monitor.
- capture Property Map
- custom
Notification Property Map - description String
- enabled Boolean
- entities
To List<String>Monitors - group
Name String - monitor
Alert StringDowntime Id - ID of the alert created.
- name String
- notification
Channels List<Number> - renotification
Minutes Number - scope String
- severity Number
- team Number
- Team ID that owns the alert.
- timeouts Property Map
- trigger
After NumberMinutes - trigger
After NumberPct - version Number
- Current version of the resource in Sysdig Monitor.
Supporting Types
MonitorAlertDowntimeCapture, MonitorAlertDowntimeCaptureArgs
MonitorAlertDowntimeCustomNotification, MonitorAlertDowntimeCustomNotificationArgs
MonitorAlertDowntimeTimeouts, MonitorAlertDowntimeTimeoutsArgs
Import
Downtime alerts can be imported using the alert ID, e.g.
$ pulumi import sysdig:index/monitorAlertDowntime:MonitorAlertDowntime 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.