sysdig.MonitorAlertEvent
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample = new sysdig.MonitorAlertEvent("sample", {
    description: "A Kubernetes pod failed to pull an image from the registry",
    eventCount: 0,
    eventName: "Failed to pull image",
    eventRel: ">",
    multipleAlertsBies: ["kubernetes.pod.name"],
    severity: 4,
    source: "kubernetes",
    triggerAfterMinutes: 1,
});
import pulumi
import pulumi_sysdig as sysdig
sample = sysdig.MonitorAlertEvent("sample",
    description="A Kubernetes pod failed to pull an image from the registry",
    event_count=0,
    event_name="Failed to pull image",
    event_rel=">",
    multiple_alerts_bies=["kubernetes.pod.name"],
    severity=4,
    source="kubernetes",
    trigger_after_minutes=1)
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.NewMonitorAlertEvent(ctx, "sample", &sysdig.MonitorAlertEventArgs{
			Description: pulumi.String("A Kubernetes pod failed to pull an image from the registry"),
			EventCount:  pulumi.Float64(0),
			EventName:   pulumi.String("Failed to pull image"),
			EventRel:    pulumi.String(">"),
			MultipleAlertsBies: pulumi.StringArray{
				pulumi.String("kubernetes.pod.name"),
			},
			Severity:            pulumi.Float64(4),
			Source:              pulumi.String("kubernetes"),
			TriggerAfterMinutes: pulumi.Float64(1),
		})
		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.MonitorAlertEvent("sample", new()
    {
        Description = "A Kubernetes pod failed to pull an image from the registry",
        EventCount = 0,
        EventName = "Failed to pull image",
        EventRel = ">",
        MultipleAlertsBies = new[]
        {
            "kubernetes.pod.name",
        },
        Severity = 4,
        Source = "kubernetes",
        TriggerAfterMinutes = 1,
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorAlertEvent;
import com.pulumi.sysdig.MonitorAlertEventArgs;
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 MonitorAlertEvent("sample", MonitorAlertEventArgs.builder()
            .description("A Kubernetes pod failed to pull an image from the registry")
            .eventCount(0)
            .eventName("Failed to pull image")
            .eventRel(">")
            .multipleAlertsBies("kubernetes.pod.name")
            .severity(4)
            .source("kubernetes")
            .triggerAfterMinutes(1)
            .build());
    }
}
resources:
  sample:
    type: sysdig:MonitorAlertEvent
    properties:
      description: A Kubernetes pod failed to pull an image from the registry
      eventCount: 0
      eventName: Failed to pull image
      eventRel: '>'
      multipleAlertsBies:
        - kubernetes.pod.name
      severity: 4
      source: kubernetes
      triggerAfterMinutes: 1
Create MonitorAlertEvent Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlertEvent(name: string, args: MonitorAlertEventArgs, opts?: CustomResourceOptions);@overload
def MonitorAlertEvent(resource_name: str,
                      args: MonitorAlertEventArgs,
                      opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlertEvent(resource_name: str,
                      opts: Optional[ResourceOptions] = None,
                      event_name: Optional[str] = None,
                      trigger_after_minutes: Optional[float] = None,
                      source: Optional[str] = None,
                      event_rel: Optional[str] = None,
                      event_count: Optional[float] = None,
                      monitor_alert_event_id: Optional[str] = None,
                      enabled: Optional[bool] = None,
                      group_name: Optional[str] = None,
                      capture: Optional[MonitorAlertEventCaptureArgs] = None,
                      multiple_alerts_bies: Optional[Sequence[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,
                      description: Optional[str] = None,
                      timeouts: Optional[MonitorAlertEventTimeoutsArgs] = None,
                      custom_notification: Optional[MonitorAlertEventCustomNotificationArgs] = None)func NewMonitorAlertEvent(ctx *Context, name string, args MonitorAlertEventArgs, opts ...ResourceOption) (*MonitorAlertEvent, error)public MonitorAlertEvent(string name, MonitorAlertEventArgs args, CustomResourceOptions? opts = null)
public MonitorAlertEvent(String name, MonitorAlertEventArgs args)
public MonitorAlertEvent(String name, MonitorAlertEventArgs args, CustomResourceOptions options)
type: sysdig:MonitorAlertEvent
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 MonitorAlertEventArgs
- 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 MonitorAlertEventArgs
- 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 MonitorAlertEventArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertEventArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertEventArgs
- 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 monitorAlertEventResource = new Sysdig.MonitorAlertEvent("monitorAlertEventResource", new()
{
    EventName = "string",
    TriggerAfterMinutes = 0,
    Source = "string",
    EventRel = "string",
    EventCount = 0,
    MonitorAlertEventId = "string",
    Enabled = false,
    GroupName = "string",
    Capture = new Sysdig.Inputs.MonitorAlertEventCaptureArgs
    {
        Duration = 0,
        Filename = "string",
        Filter = "string",
    },
    MultipleAlertsBies = new[]
    {
        "string",
    },
    Name = "string",
    NotificationChannels = new[]
    {
        0,
    },
    RenotificationMinutes = 0,
    Scope = "string",
    Severity = 0,
    Description = "string",
    Timeouts = new Sysdig.Inputs.MonitorAlertEventTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Read = "string",
        Update = "string",
    },
    CustomNotification = new Sysdig.Inputs.MonitorAlertEventCustomNotificationArgs
    {
        Title = "string",
        Append = "string",
        Prepend = "string",
    },
});
example, err := sysdig.NewMonitorAlertEvent(ctx, "monitorAlertEventResource", &sysdig.MonitorAlertEventArgs{
	EventName:           pulumi.String("string"),
	TriggerAfterMinutes: pulumi.Float64(0),
	Source:              pulumi.String("string"),
	EventRel:            pulumi.String("string"),
	EventCount:          pulumi.Float64(0),
	MonitorAlertEventId: pulumi.String("string"),
	Enabled:             pulumi.Bool(false),
	GroupName:           pulumi.String("string"),
	Capture: &sysdig.MonitorAlertEventCaptureArgs{
		Duration: pulumi.Float64(0),
		Filename: pulumi.String("string"),
		Filter:   pulumi.String("string"),
	},
	MultipleAlertsBies: pulumi.StringArray{
		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),
	Description:           pulumi.String("string"),
	Timeouts: &sysdig.MonitorAlertEventTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
		Read:   pulumi.String("string"),
		Update: pulumi.String("string"),
	},
	CustomNotification: &sysdig.MonitorAlertEventCustomNotificationArgs{
		Title:   pulumi.String("string"),
		Append:  pulumi.String("string"),
		Prepend: pulumi.String("string"),
	},
})
var monitorAlertEventResource = new MonitorAlertEvent("monitorAlertEventResource", MonitorAlertEventArgs.builder()
    .eventName("string")
    .triggerAfterMinutes(0.0)
    .source("string")
    .eventRel("string")
    .eventCount(0.0)
    .monitorAlertEventId("string")
    .enabled(false)
    .groupName("string")
    .capture(MonitorAlertEventCaptureArgs.builder()
        .duration(0.0)
        .filename("string")
        .filter("string")
        .build())
    .multipleAlertsBies("string")
    .name("string")
    .notificationChannels(0.0)
    .renotificationMinutes(0.0)
    .scope("string")
    .severity(0.0)
    .description("string")
    .timeouts(MonitorAlertEventTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .read("string")
        .update("string")
        .build())
    .customNotification(MonitorAlertEventCustomNotificationArgs.builder()
        .title("string")
        .append("string")
        .prepend("string")
        .build())
    .build());
monitor_alert_event_resource = sysdig.MonitorAlertEvent("monitorAlertEventResource",
    event_name="string",
    trigger_after_minutes=0,
    source="string",
    event_rel="string",
    event_count=0,
    monitor_alert_event_id="string",
    enabled=False,
    group_name="string",
    capture={
        "duration": 0,
        "filename": "string",
        "filter": "string",
    },
    multiple_alerts_bies=["string"],
    name="string",
    notification_channels=[0],
    renotification_minutes=0,
    scope="string",
    severity=0,
    description="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "read": "string",
        "update": "string",
    },
    custom_notification={
        "title": "string",
        "append": "string",
        "prepend": "string",
    })
const monitorAlertEventResource = new sysdig.MonitorAlertEvent("monitorAlertEventResource", {
    eventName: "string",
    triggerAfterMinutes: 0,
    source: "string",
    eventRel: "string",
    eventCount: 0,
    monitorAlertEventId: "string",
    enabled: false,
    groupName: "string",
    capture: {
        duration: 0,
        filename: "string",
        filter: "string",
    },
    multipleAlertsBies: ["string"],
    name: "string",
    notificationChannels: [0],
    renotificationMinutes: 0,
    scope: "string",
    severity: 0,
    description: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        read: "string",
        update: "string",
    },
    customNotification: {
        title: "string",
        append: "string",
        prepend: "string",
    },
});
type: sysdig:MonitorAlertEvent
properties:
    capture:
        duration: 0
        filename: string
        filter: string
    customNotification:
        append: string
        prepend: string
        title: string
    description: string
    enabled: false
    eventCount: 0
    eventName: string
    eventRel: string
    groupName: string
    monitorAlertEventId: string
    multipleAlertsBies:
        - string
    name: string
    notificationChannels:
        - 0
    renotificationMinutes: 0
    scope: string
    severity: 0
    source: string
    timeouts:
        create: string
        delete: string
        read: string
        update: string
    triggerAfterMinutes: 0
MonitorAlertEvent 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 MonitorAlertEvent resource accepts the following input properties:
- EventCount double
- EventName string
- EventRel string
- Source string
- TriggerAfter doubleMinutes 
- Capture
MonitorAlert Event Capture 
- CustomNotification MonitorAlert Event Custom Notification 
- Description string
- Enabled bool
- GroupName string
- MonitorAlert stringEvent Id 
- ID of the alert created.
- MultipleAlerts List<string>Bies 
- Name string
- NotificationChannels List<double>
- RenotificationMinutes double
- Scope string
- Severity double
- Timeouts
MonitorAlert Event Timeouts 
- EventCount float64
- EventName string
- EventRel string
- Source string
- TriggerAfter float64Minutes 
- Capture
MonitorAlert Event Capture Args 
- CustomNotification MonitorAlert Event Custom Notification Args 
- Description string
- Enabled bool
- GroupName string
- MonitorAlert stringEvent Id 
- ID of the alert created.
- MultipleAlerts []stringBies 
- Name string
- NotificationChannels []float64
- RenotificationMinutes float64
- Scope string
- Severity float64
- Timeouts
MonitorAlert Event Timeouts Args 
- eventCount Double
- eventName String
- eventRel String
- source String
- triggerAfter DoubleMinutes 
- capture
MonitorAlert Event Capture 
- customNotification MonitorAlert Event Custom Notification 
- description String
- enabled Boolean
- groupName String
- monitorAlert StringEvent Id 
- ID of the alert created.
- multipleAlerts List<String>Bies 
- name String
- notificationChannels List<Double>
- renotificationMinutes Double
- scope String
- severity Double
- timeouts
MonitorAlert Event Timeouts 
- eventCount number
- eventName string
- eventRel string
- source string
- triggerAfter numberMinutes 
- capture
MonitorAlert Event Capture 
- customNotification MonitorAlert Event Custom Notification 
- description string
- enabled boolean
- groupName string
- monitorAlert stringEvent Id 
- ID of the alert created.
- multipleAlerts string[]Bies 
- name string
- notificationChannels number[]
- renotificationMinutes number
- scope string
- severity number
- timeouts
MonitorAlert Event Timeouts 
- event_count float
- event_name str
- event_rel str
- source str
- trigger_after_ floatminutes 
- capture
MonitorAlert Event Capture Args 
- custom_notification MonitorAlert Event Custom Notification Args 
- description str
- enabled bool
- group_name str
- monitor_alert_ strevent_ id 
- ID of the alert created.
- multiple_alerts_ Sequence[str]bies 
- name str
- notification_channels Sequence[float]
- renotification_minutes float
- scope str
- severity float
- timeouts
MonitorAlert Event Timeouts Args 
- eventCount Number
- eventName String
- eventRel String
- source String
- triggerAfter NumberMinutes 
- capture Property Map
- customNotification Property Map
- description String
- enabled Boolean
- groupName String
- monitorAlert StringEvent Id 
- ID of the alert created.
- multipleAlerts List<String>Bies 
- name String
- notificationChannels List<Number>
- renotificationMinutes Number
- scope String
- severity Number
- timeouts Property Map
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlertEvent resource produces the following output properties:
Look up Existing MonitorAlertEvent Resource
Get an existing MonitorAlertEvent 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?: MonitorAlertEventState, opts?: CustomResourceOptions): MonitorAlertEvent@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capture: Optional[MonitorAlertEventCaptureArgs] = None,
        custom_notification: Optional[MonitorAlertEventCustomNotificationArgs] = None,
        description: Optional[str] = None,
        enabled: Optional[bool] = None,
        event_count: Optional[float] = None,
        event_name: Optional[str] = None,
        event_rel: Optional[str] = None,
        group_name: Optional[str] = None,
        monitor_alert_event_id: Optional[str] = None,
        multiple_alerts_bies: Optional[Sequence[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,
        source: Optional[str] = None,
        team: Optional[float] = None,
        timeouts: Optional[MonitorAlertEventTimeoutsArgs] = None,
        trigger_after_minutes: Optional[float] = None,
        version: Optional[float] = None) -> MonitorAlertEventfunc GetMonitorAlertEvent(ctx *Context, name string, id IDInput, state *MonitorAlertEventState, opts ...ResourceOption) (*MonitorAlertEvent, error)public static MonitorAlertEvent Get(string name, Input<string> id, MonitorAlertEventState? state, CustomResourceOptions? opts = null)public static MonitorAlertEvent get(String name, Output<String> id, MonitorAlertEventState state, CustomResourceOptions options)resources:  _:    type: sysdig:MonitorAlertEvent    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
MonitorAlert Event Capture 
- CustomNotification MonitorAlert Event Custom Notification 
- Description string
- Enabled bool
- EventCount double
- EventName string
- EventRel string
- GroupName string
- MonitorAlert stringEvent Id 
- ID of the alert created.
- MultipleAlerts List<string>Bies 
- Name string
- NotificationChannels List<double>
- RenotificationMinutes double
- Scope string
- Severity double
- Source string
- Team double
- Team ID that owns the alert.
- Timeouts
MonitorAlert Event Timeouts 
- TriggerAfter doubleMinutes 
- Version double
- Current version of the resource in Sysdig Monitor.
- Capture
MonitorAlert Event Capture Args 
- CustomNotification MonitorAlert Event Custom Notification Args 
- Description string
- Enabled bool
- EventCount float64
- EventName string
- EventRel string
- GroupName string
- MonitorAlert stringEvent Id 
- ID of the alert created.
- MultipleAlerts []stringBies 
- Name string
- NotificationChannels []float64
- RenotificationMinutes float64
- Scope string
- Severity float64
- Source string
- Team float64
- Team ID that owns the alert.
- Timeouts
MonitorAlert Event Timeouts Args 
- TriggerAfter float64Minutes 
- Version float64
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert Event Capture 
- customNotification MonitorAlert Event Custom Notification 
- description String
- enabled Boolean
- eventCount Double
- eventName String
- eventRel String
- groupName String
- monitorAlert StringEvent Id 
- ID of the alert created.
- multipleAlerts List<String>Bies 
- name String
- notificationChannels List<Double>
- renotificationMinutes Double
- scope String
- severity Double
- source String
- team Double
- Team ID that owns the alert.
- timeouts
MonitorAlert Event Timeouts 
- triggerAfter DoubleMinutes 
- version Double
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert Event Capture 
- customNotification MonitorAlert Event Custom Notification 
- description string
- enabled boolean
- eventCount number
- eventName string
- eventRel string
- groupName string
- monitorAlert stringEvent Id 
- ID of the alert created.
- multipleAlerts string[]Bies 
- name string
- notificationChannels number[]
- renotificationMinutes number
- scope string
- severity number
- source string
- team number
- Team ID that owns the alert.
- timeouts
MonitorAlert Event Timeouts 
- triggerAfter numberMinutes 
- version number
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert Event Capture Args 
- custom_notification MonitorAlert Event Custom Notification Args 
- description str
- enabled bool
- event_count float
- event_name str
- event_rel str
- group_name str
- monitor_alert_ strevent_ id 
- ID of the alert created.
- multiple_alerts_ Sequence[str]bies 
- name str
- notification_channels Sequence[float]
- renotification_minutes float
- scope str
- severity float
- source str
- team float
- Team ID that owns the alert.
- timeouts
MonitorAlert Event Timeouts Args 
- trigger_after_ floatminutes 
- version float
- Current version of the resource in Sysdig Monitor.
- capture Property Map
- customNotification Property Map
- description String
- enabled Boolean
- eventCount Number
- eventName String
- eventRel String
- groupName String
- monitorAlert StringEvent Id 
- ID of the alert created.
- multipleAlerts List<String>Bies 
- name String
- notificationChannels List<Number>
- renotificationMinutes Number
- scope String
- severity Number
- source String
- team Number
- Team ID that owns the alert.
- timeouts Property Map
- triggerAfter NumberMinutes 
- version Number
- Current version of the resource in Sysdig Monitor.
Supporting Types
MonitorAlertEventCapture, MonitorAlertEventCaptureArgs        
MonitorAlertEventCustomNotification, MonitorAlertEventCustomNotificationArgs          
MonitorAlertEventTimeouts, MonitorAlertEventTimeoutsArgs        
Import
Event alerts can be imported using the alert ID, e.g.
$ pulumi import sysdig:index/monitorAlertEvent:MonitorAlertEvent 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 sysdigTerraform Provider.