sysdig.MonitorAlertV2Prometheus
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample = new sysdig.MonitorAlertV2Prometheus("sample", {
    description: "Elasticsearch JVM heap used over attention threshold",
    durationSeconds: 600,
    labels: {
        application: "app1",
        maturity: "high",
    },
    notificationChannels: [{
        id: 1234,
        renotifyEveryMinutes: 5,
    }],
    query: "(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100 > 80",
    severity: "high",
});
import pulumi
import pulumi_sysdig as sysdig
sample = sysdig.MonitorAlertV2Prometheus("sample",
    description="Elasticsearch JVM heap used over attention threshold",
    duration_seconds=600,
    labels={
        "application": "app1",
        "maturity": "high",
    },
    notification_channels=[{
        "id": 1234,
        "renotify_every_minutes": 5,
    }],
    query="(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100 > 80",
    severity="high")
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.NewMonitorAlertV2Prometheus(ctx, "sample", &sysdig.MonitorAlertV2PrometheusArgs{
			Description:     pulumi.String("Elasticsearch JVM heap used over attention threshold"),
			DurationSeconds: pulumi.Float64(600),
			Labels: pulumi.StringMap{
				"application": pulumi.String("app1"),
				"maturity":    pulumi.String("high"),
			},
			NotificationChannels: sysdig.MonitorAlertV2PrometheusNotificationChannelArray{
				&sysdig.MonitorAlertV2PrometheusNotificationChannelArgs{
					Id:                   pulumi.Float64(1234),
					RenotifyEveryMinutes: pulumi.Float64(5),
				},
			},
			Query:    pulumi.String("(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100 > 80"),
			Severity: pulumi.String("high"),
		})
		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.MonitorAlertV2Prometheus("sample", new()
    {
        Description = "Elasticsearch JVM heap used over attention threshold",
        DurationSeconds = 600,
        Labels = 
        {
            { "application", "app1" },
            { "maturity", "high" },
        },
        NotificationChannels = new[]
        {
            new Sysdig.Inputs.MonitorAlertV2PrometheusNotificationChannelArgs
            {
                Id = 1234,
                RenotifyEveryMinutes = 5,
            },
        },
        Query = "(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100 > 80",
        Severity = "high",
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorAlertV2Prometheus;
import com.pulumi.sysdig.MonitorAlertV2PrometheusArgs;
import com.pulumi.sysdig.inputs.MonitorAlertV2PrometheusNotificationChannelArgs;
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 MonitorAlertV2Prometheus("sample", MonitorAlertV2PrometheusArgs.builder()
            .description("Elasticsearch JVM heap used over attention threshold")
            .durationSeconds(600)
            .labels(Map.ofEntries(
                Map.entry("application", "app1"),
                Map.entry("maturity", "high")
            ))
            .notificationChannels(MonitorAlertV2PrometheusNotificationChannelArgs.builder()
                .id(1234)
                .renotifyEveryMinutes(5)
                .build())
            .query("(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100 > 80")
            .severity("high")
            .build());
    }
}
resources:
  sample:
    type: sysdig:MonitorAlertV2Prometheus
    properties:
      description: Elasticsearch JVM heap used over attention threshold
      durationSeconds: 600
      labels:
        application: app1
        maturity: high
      notificationChannels:
        - id: 1234
          renotifyEveryMinutes: 5
      query: (elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}) * 100 > 80
      severity: high
Create MonitorAlertV2Prometheus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlertV2Prometheus(name: string, args: MonitorAlertV2PrometheusArgs, opts?: CustomResourceOptions);@overload
def MonitorAlertV2Prometheus(resource_name: str,
                             args: MonitorAlertV2PrometheusArgs,
                             opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlertV2Prometheus(resource_name: str,
                             opts: Optional[ResourceOptions] = None,
                             query: Optional[str] = None,
                             enabled: Optional[bool] = None,
                             notification_channels: Optional[Sequence[MonitorAlertV2PrometheusNotificationChannelArgs]] = None,
                             duration_seconds: Optional[float] = None,
                             capture: Optional[MonitorAlertV2PrometheusCaptureArgs] = None,
                             group: Optional[str] = None,
                             keep_firing_for_minutes: Optional[float] = None,
                             description: Optional[str] = None,
                             monitor_alert_v2_prometheus_id: Optional[str] = None,
                             labels: Optional[Mapping[str, str]] = None,
                             name: Optional[str] = None,
                             links: Optional[Sequence[MonitorAlertV2PrometheusLinkArgs]] = None,
                             custom_notification: Optional[MonitorAlertV2PrometheusCustomNotificationArgs] = None,
                             severity: Optional[str] = None,
                             timeouts: Optional[MonitorAlertV2PrometheusTimeoutsArgs] = None,
                             trigger_after_minutes: Optional[float] = None)func NewMonitorAlertV2Prometheus(ctx *Context, name string, args MonitorAlertV2PrometheusArgs, opts ...ResourceOption) (*MonitorAlertV2Prometheus, error)public MonitorAlertV2Prometheus(string name, MonitorAlertV2PrometheusArgs args, CustomResourceOptions? opts = null)
public MonitorAlertV2Prometheus(String name, MonitorAlertV2PrometheusArgs args)
public MonitorAlertV2Prometheus(String name, MonitorAlertV2PrometheusArgs args, CustomResourceOptions options)
type: sysdig:MonitorAlertV2Prometheus
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 MonitorAlertV2PrometheusArgs
- 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 MonitorAlertV2PrometheusArgs
- 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 MonitorAlertV2PrometheusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertV2PrometheusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertV2PrometheusArgs
- 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 monitorAlertV2PrometheusResource = new Sysdig.MonitorAlertV2Prometheus("monitorAlertV2PrometheusResource", new()
{
    Query = "string",
    Enabled = false,
    NotificationChannels = new[]
    {
        new Sysdig.Inputs.MonitorAlertV2PrometheusNotificationChannelArgs
        {
            Id = 0,
            MainThreshold = false,
            NotifyOnResolve = false,
            RenotifyEveryMinutes = 0,
            WarningThreshold = false,
        },
    },
    DurationSeconds = 0,
    Capture = new Sysdig.Inputs.MonitorAlertV2PrometheusCaptureArgs
    {
        Filename = "string",
        DurationSeconds = 0,
        Enabled = false,
        Filter = "string",
        Storage = "string",
    },
    Group = "string",
    KeepFiringForMinutes = 0,
    Description = "string",
    MonitorAlertV2PrometheusId = "string",
    Labels = 
    {
        { "string", "string" },
    },
    Name = "string",
    Links = new[]
    {
        new Sysdig.Inputs.MonitorAlertV2PrometheusLinkArgs
        {
            Type = "string",
            Href = "string",
            Id = "string",
        },
    },
    CustomNotification = new Sysdig.Inputs.MonitorAlertV2PrometheusCustomNotificationArgs
    {
        Append = "string",
        Prepend = "string",
        Subject = "string",
    },
    Severity = "string",
    Timeouts = new Sysdig.Inputs.MonitorAlertV2PrometheusTimeoutsArgs
    {
        Create = "string",
        Delete = "string",
        Read = "string",
        Update = "string",
    },
});
example, err := sysdig.NewMonitorAlertV2Prometheus(ctx, "monitorAlertV2PrometheusResource", &sysdig.MonitorAlertV2PrometheusArgs{
	Query:   pulumi.String("string"),
	Enabled: pulumi.Bool(false),
	NotificationChannels: sysdig.MonitorAlertV2PrometheusNotificationChannelArray{
		&sysdig.MonitorAlertV2PrometheusNotificationChannelArgs{
			Id:                   pulumi.Float64(0),
			MainThreshold:        pulumi.Bool(false),
			NotifyOnResolve:      pulumi.Bool(false),
			RenotifyEveryMinutes: pulumi.Float64(0),
			WarningThreshold:     pulumi.Bool(false),
		},
	},
	DurationSeconds: pulumi.Float64(0),
	Capture: &sysdig.MonitorAlertV2PrometheusCaptureArgs{
		Filename:        pulumi.String("string"),
		DurationSeconds: pulumi.Float64(0),
		Enabled:         pulumi.Bool(false),
		Filter:          pulumi.String("string"),
		Storage:         pulumi.String("string"),
	},
	Group:                      pulumi.String("string"),
	KeepFiringForMinutes:       pulumi.Float64(0),
	Description:                pulumi.String("string"),
	MonitorAlertV2PrometheusId: pulumi.String("string"),
	Labels: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
	Name: pulumi.String("string"),
	Links: sysdig.MonitorAlertV2PrometheusLinkArray{
		&sysdig.MonitorAlertV2PrometheusLinkArgs{
			Type: pulumi.String("string"),
			Href: pulumi.String("string"),
			Id:   pulumi.String("string"),
		},
	},
	CustomNotification: &sysdig.MonitorAlertV2PrometheusCustomNotificationArgs{
		Append:  pulumi.String("string"),
		Prepend: pulumi.String("string"),
		Subject: pulumi.String("string"),
	},
	Severity: pulumi.String("string"),
	Timeouts: &sysdig.MonitorAlertV2PrometheusTimeoutsArgs{
		Create: pulumi.String("string"),
		Delete: pulumi.String("string"),
		Read:   pulumi.String("string"),
		Update: pulumi.String("string"),
	},
})
var monitorAlertV2PrometheusResource = new MonitorAlertV2Prometheus("monitorAlertV2PrometheusResource", MonitorAlertV2PrometheusArgs.builder()
    .query("string")
    .enabled(false)
    .notificationChannels(MonitorAlertV2PrometheusNotificationChannelArgs.builder()
        .id(0.0)
        .mainThreshold(false)
        .notifyOnResolve(false)
        .renotifyEveryMinutes(0.0)
        .warningThreshold(false)
        .build())
    .durationSeconds(0.0)
    .capture(MonitorAlertV2PrometheusCaptureArgs.builder()
        .filename("string")
        .durationSeconds(0.0)
        .enabled(false)
        .filter("string")
        .storage("string")
        .build())
    .group("string")
    .keepFiringForMinutes(0.0)
    .description("string")
    .monitorAlertV2PrometheusId("string")
    .labels(Map.of("string", "string"))
    .name("string")
    .links(MonitorAlertV2PrometheusLinkArgs.builder()
        .type("string")
        .href("string")
        .id("string")
        .build())
    .customNotification(MonitorAlertV2PrometheusCustomNotificationArgs.builder()
        .append("string")
        .prepend("string")
        .subject("string")
        .build())
    .severity("string")
    .timeouts(MonitorAlertV2PrometheusTimeoutsArgs.builder()
        .create("string")
        .delete("string")
        .read("string")
        .update("string")
        .build())
    .build());
monitor_alert_v2_prometheus_resource = sysdig.MonitorAlertV2Prometheus("monitorAlertV2PrometheusResource",
    query="string",
    enabled=False,
    notification_channels=[{
        "id": 0,
        "main_threshold": False,
        "notify_on_resolve": False,
        "renotify_every_minutes": 0,
        "warning_threshold": False,
    }],
    duration_seconds=0,
    capture={
        "filename": "string",
        "duration_seconds": 0,
        "enabled": False,
        "filter": "string",
        "storage": "string",
    },
    group="string",
    keep_firing_for_minutes=0,
    description="string",
    monitor_alert_v2_prometheus_id="string",
    labels={
        "string": "string",
    },
    name="string",
    links=[{
        "type": "string",
        "href": "string",
        "id": "string",
    }],
    custom_notification={
        "append": "string",
        "prepend": "string",
        "subject": "string",
    },
    severity="string",
    timeouts={
        "create": "string",
        "delete": "string",
        "read": "string",
        "update": "string",
    })
const monitorAlertV2PrometheusResource = new sysdig.MonitorAlertV2Prometheus("monitorAlertV2PrometheusResource", {
    query: "string",
    enabled: false,
    notificationChannels: [{
        id: 0,
        mainThreshold: false,
        notifyOnResolve: false,
        renotifyEveryMinutes: 0,
        warningThreshold: false,
    }],
    durationSeconds: 0,
    capture: {
        filename: "string",
        durationSeconds: 0,
        enabled: false,
        filter: "string",
        storage: "string",
    },
    group: "string",
    keepFiringForMinutes: 0,
    description: "string",
    monitorAlertV2PrometheusId: "string",
    labels: {
        string: "string",
    },
    name: "string",
    links: [{
        type: "string",
        href: "string",
        id: "string",
    }],
    customNotification: {
        append: "string",
        prepend: "string",
        subject: "string",
    },
    severity: "string",
    timeouts: {
        create: "string",
        "delete": "string",
        read: "string",
        update: "string",
    },
});
type: sysdig:MonitorAlertV2Prometheus
properties:
    capture:
        durationSeconds: 0
        enabled: false
        filename: string
        filter: string
        storage: string
    customNotification:
        append: string
        prepend: string
        subject: string
    description: string
    durationSeconds: 0
    enabled: false
    group: string
    keepFiringForMinutes: 0
    labels:
        string: string
    links:
        - href: string
          id: string
          type: string
    monitorAlertV2PrometheusId: string
    name: string
    notificationChannels:
        - id: 0
          mainThreshold: false
          notifyOnResolve: false
          renotifyEveryMinutes: 0
          warningThreshold: false
    query: string
    severity: string
    timeouts:
        create: string
        delete: string
        read: string
        update: string
MonitorAlertV2Prometheus 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 MonitorAlertV2Prometheus resource accepts the following input properties:
- Query string
- Capture
MonitorAlert V2Prometheus Capture 
- CustomNotification MonitorAlert V2Prometheus Custom Notification 
- Description string
- DurationSeconds double
- Enabled bool
- Group string
- KeepFiring doubleFor Minutes 
- Labels Dictionary<string, string>
- Links
List<MonitorAlert V2Prometheus Link> 
- MonitorAlert stringV2Prometheus Id 
- ID of the alert created.
- Name string
- NotificationChannels List<MonitorAlert V2Prometheus Notification Channel> 
- Severity string
- Timeouts
MonitorAlert V2Prometheus Timeouts 
- TriggerAfter doubleMinutes 
- Query string
- Capture
MonitorAlert V2Prometheus Capture Args 
- CustomNotification MonitorAlert V2Prometheus Custom Notification Args 
- Description string
- DurationSeconds float64
- Enabled bool
- Group string
- KeepFiring float64For Minutes 
- Labels map[string]string
- Links
[]MonitorAlert V2Prometheus Link Args 
- MonitorAlert stringV2Prometheus Id 
- ID of the alert created.
- Name string
- NotificationChannels []MonitorAlert V2Prometheus Notification Channel Args 
- Severity string
- Timeouts
MonitorAlert V2Prometheus Timeouts Args 
- TriggerAfter float64Minutes 
- query String
- capture
MonitorAlert V2Prometheus Capture 
- customNotification MonitorAlert V2Prometheus Custom Notification 
- description String
- durationSeconds Double
- enabled Boolean
- group String
- keepFiring DoubleFor Minutes 
- labels Map<String,String>
- links
List<MonitorAlert V2Prometheus Link> 
- monitorAlert StringV2Prometheus Id 
- ID of the alert created.
- name String
- notificationChannels List<MonitorAlert V2Prometheus Notification Channel> 
- severity String
- timeouts
MonitorAlert V2Prometheus Timeouts 
- triggerAfter DoubleMinutes 
- query string
- capture
MonitorAlert V2Prometheus Capture 
- customNotification MonitorAlert V2Prometheus Custom Notification 
- description string
- durationSeconds number
- enabled boolean
- group string
- keepFiring numberFor Minutes 
- labels {[key: string]: string}
- links
MonitorAlert V2Prometheus Link[] 
- monitorAlert stringV2Prometheus Id 
- ID of the alert created.
- name string
- notificationChannels MonitorAlert V2Prometheus Notification Channel[] 
- severity string
- timeouts
MonitorAlert V2Prometheus Timeouts 
- triggerAfter numberMinutes 
- query str
- capture
MonitorAlert V2Prometheus Capture Args 
- custom_notification MonitorAlert V2Prometheus Custom Notification Args 
- description str
- duration_seconds float
- enabled bool
- group str
- keep_firing_ floatfor_ minutes 
- labels Mapping[str, str]
- links
Sequence[MonitorAlert V2Prometheus Link Args] 
- monitor_alert_ strv2_ prometheus_ id 
- ID of the alert created.
- name str
- notification_channels Sequence[MonitorAlert V2Prometheus Notification Channel Args] 
- severity str
- timeouts
MonitorAlert V2Prometheus Timeouts Args 
- trigger_after_ floatminutes 
- query String
- capture Property Map
- customNotification Property Map
- description String
- durationSeconds Number
- enabled Boolean
- group String
- keepFiring NumberFor Minutes 
- labels Map<String>
- links List<Property Map>
- monitorAlert StringV2Prometheus Id 
- ID of the alert created.
- name String
- notificationChannels List<Property Map>
- severity String
- timeouts Property Map
- triggerAfter NumberMinutes 
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlertV2Prometheus resource produces the following output properties:
Look up Existing MonitorAlertV2Prometheus Resource
Get an existing MonitorAlertV2Prometheus 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?: MonitorAlertV2PrometheusState, opts?: CustomResourceOptions): MonitorAlertV2Prometheus@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        capture: Optional[MonitorAlertV2PrometheusCaptureArgs] = None,
        custom_notification: Optional[MonitorAlertV2PrometheusCustomNotificationArgs] = None,
        description: Optional[str] = None,
        duration_seconds: Optional[float] = None,
        enabled: Optional[bool] = None,
        group: Optional[str] = None,
        keep_firing_for_minutes: Optional[float] = None,
        labels: Optional[Mapping[str, str]] = None,
        links: Optional[Sequence[MonitorAlertV2PrometheusLinkArgs]] = None,
        monitor_alert_v2_prometheus_id: Optional[str] = None,
        name: Optional[str] = None,
        notification_channels: Optional[Sequence[MonitorAlertV2PrometheusNotificationChannelArgs]] = None,
        query: Optional[str] = None,
        severity: Optional[str] = None,
        team: Optional[float] = None,
        timeouts: Optional[MonitorAlertV2PrometheusTimeoutsArgs] = None,
        trigger_after_minutes: Optional[float] = None,
        version: Optional[float] = None) -> MonitorAlertV2Prometheusfunc GetMonitorAlertV2Prometheus(ctx *Context, name string, id IDInput, state *MonitorAlertV2PrometheusState, opts ...ResourceOption) (*MonitorAlertV2Prometheus, error)public static MonitorAlertV2Prometheus Get(string name, Input<string> id, MonitorAlertV2PrometheusState? state, CustomResourceOptions? opts = null)public static MonitorAlertV2Prometheus get(String name, Output<String> id, MonitorAlertV2PrometheusState state, CustomResourceOptions options)resources:  _:    type: sysdig:MonitorAlertV2Prometheus    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 V2Prometheus Capture 
- CustomNotification MonitorAlert V2Prometheus Custom Notification 
- Description string
- DurationSeconds double
- Enabled bool
- Group string
- KeepFiring doubleFor Minutes 
- Labels Dictionary<string, string>
- Links
List<MonitorAlert V2Prometheus Link> 
- MonitorAlert stringV2Prometheus Id 
- ID of the alert created.
- Name string
- NotificationChannels List<MonitorAlert V2Prometheus Notification Channel> 
- Query string
- Severity string
- Team double
- Team ID that owns the alert.
- Timeouts
MonitorAlert V2Prometheus Timeouts 
- TriggerAfter doubleMinutes 
- Version double
- Current version of the resource in Sysdig Monitor.
- Capture
MonitorAlert V2Prometheus Capture Args 
- CustomNotification MonitorAlert V2Prometheus Custom Notification Args 
- Description string
- DurationSeconds float64
- Enabled bool
- Group string
- KeepFiring float64For Minutes 
- Labels map[string]string
- Links
[]MonitorAlert V2Prometheus Link Args 
- MonitorAlert stringV2Prometheus Id 
- ID of the alert created.
- Name string
- NotificationChannels []MonitorAlert V2Prometheus Notification Channel Args 
- Query string
- Severity string
- Team float64
- Team ID that owns the alert.
- Timeouts
MonitorAlert V2Prometheus Timeouts Args 
- TriggerAfter float64Minutes 
- Version float64
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert V2Prometheus Capture 
- customNotification MonitorAlert V2Prometheus Custom Notification 
- description String
- durationSeconds Double
- enabled Boolean
- group String
- keepFiring DoubleFor Minutes 
- labels Map<String,String>
- links
List<MonitorAlert V2Prometheus Link> 
- monitorAlert StringV2Prometheus Id 
- ID of the alert created.
- name String
- notificationChannels List<MonitorAlert V2Prometheus Notification Channel> 
- query String
- severity String
- team Double
- Team ID that owns the alert.
- timeouts
MonitorAlert V2Prometheus Timeouts 
- triggerAfter DoubleMinutes 
- version Double
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert V2Prometheus Capture 
- customNotification MonitorAlert V2Prometheus Custom Notification 
- description string
- durationSeconds number
- enabled boolean
- group string
- keepFiring numberFor Minutes 
- labels {[key: string]: string}
- links
MonitorAlert V2Prometheus Link[] 
- monitorAlert stringV2Prometheus Id 
- ID of the alert created.
- name string
- notificationChannels MonitorAlert V2Prometheus Notification Channel[] 
- query string
- severity string
- team number
- Team ID that owns the alert.
- timeouts
MonitorAlert V2Prometheus Timeouts 
- triggerAfter numberMinutes 
- version number
- Current version of the resource in Sysdig Monitor.
- capture
MonitorAlert V2Prometheus Capture Args 
- custom_notification MonitorAlert V2Prometheus Custom Notification Args 
- description str
- duration_seconds float
- enabled bool
- group str
- keep_firing_ floatfor_ minutes 
- labels Mapping[str, str]
- links
Sequence[MonitorAlert V2Prometheus Link Args] 
- monitor_alert_ strv2_ prometheus_ id 
- ID of the alert created.
- name str
- notification_channels Sequence[MonitorAlert V2Prometheus Notification Channel Args] 
- query str
- severity str
- team float
- Team ID that owns the alert.
- timeouts
MonitorAlert V2Prometheus Timeouts Args 
- trigger_after_ floatminutes 
- version float
- Current version of the resource in Sysdig Monitor.
- capture Property Map
- customNotification Property Map
- description String
- durationSeconds Number
- enabled Boolean
- group String
- keepFiring NumberFor Minutes 
- labels Map<String>
- links List<Property Map>
- monitorAlert StringV2Prometheus Id 
- ID of the alert created.
- name String
- notificationChannels List<Property Map>
- query String
- severity 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
MonitorAlertV2PrometheusCapture, MonitorAlertV2PrometheusCaptureArgs        
- Filename string
- DurationSeconds double
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- Enabled bool
- Boolean that defines if the alert is enabled or not. Default: true.
- Filter string
- Storage string
- Filename string
- DurationSeconds float64
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- Enabled bool
- Boolean that defines if the alert is enabled or not. Default: true.
- Filter string
- Storage string
- filename String
- durationSeconds Double
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- enabled Boolean
- Boolean that defines if the alert is enabled or not. Default: true.
- filter String
- storage String
- filename string
- durationSeconds number
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- enabled boolean
- Boolean that defines if the alert is enabled or not. Default: true.
- filter string
- storage string
- filename str
- duration_seconds float
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- enabled bool
- Boolean that defines if the alert is enabled or not. Default: true.
- filter str
- storage str
- filename String
- durationSeconds Number
- Specifies the amount of time, in seconds, that an alert condition must remain continuously true before the alert rule is triggered.
- enabled Boolean
- Boolean that defines if the alert is enabled or not. Default: true.
- filter String
- storage String
MonitorAlertV2PrometheusCustomNotification, MonitorAlertV2PrometheusCustomNotificationArgs          
MonitorAlertV2PrometheusLink, MonitorAlertV2PrometheusLinkArgs        
MonitorAlertV2PrometheusNotificationChannel, MonitorAlertV2PrometheusNotificationChannelArgs          
- Id double
- The ID of the notification channel.
- MainThreshold bool
- NotifyOn boolResolve 
- Wether to send a notification when the alert is resolved. Default: true.
- RenotifyEvery doubleMinutes 
- the amount of minutes to wait before re sending the notification to this channel. 0means no renotification enabled.
- Type string
- Type of link. Must be runbook, for generic links, ordashboard, for internal links to existing dashboards.
- WarningThreshold bool
- Id float64
- The ID of the notification channel.
- MainThreshold bool
- NotifyOn boolResolve 
- Wether to send a notification when the alert is resolved. Default: true.
- RenotifyEvery float64Minutes 
- the amount of minutes to wait before re sending the notification to this channel. 0means no renotification enabled.
- Type string
- Type of link. Must be runbook, for generic links, ordashboard, for internal links to existing dashboards.
- WarningThreshold bool
- id Double
- The ID of the notification channel.
- mainThreshold Boolean
- notifyOn BooleanResolve 
- Wether to send a notification when the alert is resolved. Default: true.
- renotifyEvery DoubleMinutes 
- the amount of minutes to wait before re sending the notification to this channel. 0means no renotification enabled.
- type String
- Type of link. Must be runbook, for generic links, ordashboard, for internal links to existing dashboards.
- warningThreshold Boolean
- id number
- The ID of the notification channel.
- mainThreshold boolean
- notifyOn booleanResolve 
- Wether to send a notification when the alert is resolved. Default: true.
- renotifyEvery numberMinutes 
- the amount of minutes to wait before re sending the notification to this channel. 0means no renotification enabled.
- type string
- Type of link. Must be runbook, for generic links, ordashboard, for internal links to existing dashboards.
- warningThreshold 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. 0means no renotification enabled.
- 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.
- mainThreshold Boolean
- notifyOn BooleanResolve 
- Wether to send a notification when the alert is resolved. Default: true.
- renotifyEvery NumberMinutes 
- the amount of minutes to wait before re sending the notification to this channel. 0means no renotification enabled.
- type String
- Type of link. Must be runbook, for generic links, ordashboard, for internal links to existing dashboards.
- warningThreshold Boolean
MonitorAlertV2PrometheusTimeouts, MonitorAlertV2PrometheusTimeoutsArgs        
Import
Prometheus alerts can be imported using the alert ID, e.g.
$ pulumi import sysdig:index/monitorAlertV2Prometheus:MonitorAlertV2Prometheus 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.