sysdig.MonitorAlertV2FormBasedPrometheus
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as sysdig from "@pulumi/sysdig";
const sample = new sysdig.MonitorAlertV2FormBasedPrometheus("sample", {
description: "Elasticsearch JVM heap used over attention threshold",
notificationChannels: [{
id: 1234,
renotifyEveryMinutes: 5,
}],
operator: ">",
query: "(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100",
severity: "high",
threshold: 80,
});
import pulumi
import pulumi_sysdig as sysdig
sample = sysdig.MonitorAlertV2FormBasedPrometheus("sample",
description="Elasticsearch JVM heap used over attention threshold",
notification_channels=[{
"id": 1234,
"renotify_every_minutes": 5,
}],
operator=">",
query="(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100",
severity="high",
threshold=80)
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.NewMonitorAlertV2FormBasedPrometheus(ctx, "sample", &sysdig.MonitorAlertV2FormBasedPrometheusArgs{
Description: pulumi.String("Elasticsearch JVM heap used over attention threshold"),
NotificationChannels: sysdig.MonitorAlertV2FormBasedPrometheusNotificationChannelArray{
&sysdig.MonitorAlertV2FormBasedPrometheusNotificationChannelArgs{
Id: pulumi.Float64(1234),
RenotifyEveryMinutes: pulumi.Float64(5),
},
},
Operator: pulumi.String(">"),
Query: pulumi.String("(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100"),
Severity: pulumi.String("high"),
Threshold: pulumi.Float64(80),
})
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.MonitorAlertV2FormBasedPrometheus("sample", new()
{
Description = "Elasticsearch JVM heap used over attention threshold",
NotificationChannels = new[]
{
new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusNotificationChannelArgs
{
Id = 1234,
RenotifyEveryMinutes = 5,
},
},
Operator = ">",
Query = "(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100",
Severity = "high",
Threshold = 80,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.sysdig.MonitorAlertV2FormBasedPrometheus;
import com.pulumi.sysdig.MonitorAlertV2FormBasedPrometheusArgs;
import com.pulumi.sysdig.inputs.MonitorAlertV2FormBasedPrometheusNotificationChannelArgs;
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 MonitorAlertV2FormBasedPrometheus("sample", MonitorAlertV2FormBasedPrometheusArgs.builder()
.description("Elasticsearch JVM heap used over attention threshold")
.notificationChannels(MonitorAlertV2FormBasedPrometheusNotificationChannelArgs.builder()
.id(1234)
.renotifyEveryMinutes(5)
.build())
.operator(">")
.query("(elasticsearch_jvm_memory_used_bytes{area=\"heap\"} / elasticsearch_jvm_memory_max_bytes{area=\"heap\"}) * 100")
.severity("high")
.threshold(80)
.build());
}
}
resources:
sample:
type: sysdig:MonitorAlertV2FormBasedPrometheus
properties:
description: Elasticsearch JVM heap used over attention threshold
notificationChannels:
- id: 1234
renotifyEveryMinutes: 5
operator: '>'
query: (elasticsearch_jvm_memory_used_bytes{area="heap"} / elasticsearch_jvm_memory_max_bytes{area="heap"}) * 100
severity: high
threshold: 80
Create MonitorAlertV2FormBasedPrometheus Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new MonitorAlertV2FormBasedPrometheus(name: string, args: MonitorAlertV2FormBasedPrometheusArgs, opts?: CustomResourceOptions);
@overload
def MonitorAlertV2FormBasedPrometheus(resource_name: str,
args: MonitorAlertV2FormBasedPrometheusArgs,
opts: Optional[ResourceOptions] = None)
@overload
def MonitorAlertV2FormBasedPrometheus(resource_name: str,
opts: Optional[ResourceOptions] = None,
operator: Optional[str] = None,
threshold: Optional[float] = None,
query: Optional[str] = None,
name: Optional[str] = None,
notification_channels: Optional[Sequence[MonitorAlertV2FormBasedPrometheusNotificationChannelArgs]] = None,
group: Optional[str] = None,
group_bies: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
links: Optional[Sequence[MonitorAlertV2FormBasedPrometheusLinkArgs]] = None,
monitor_alert_v2_form_based_prometheus_id: Optional[str] = None,
capture: Optional[MonitorAlertV2FormBasedPrometheusCaptureArgs] = None,
no_data_behaviour: Optional[str] = None,
enabled: Optional[bool] = None,
duration_seconds: Optional[float] = None,
description: Optional[str] = None,
scopes: Optional[Sequence[MonitorAlertV2FormBasedPrometheusScopeArgs]] = None,
severity: Optional[str] = None,
custom_notification: Optional[MonitorAlertV2FormBasedPrometheusCustomNotificationArgs] = None,
timeouts: Optional[MonitorAlertV2FormBasedPrometheusTimeoutsArgs] = None,
unreported_alert_notifications_retention_seconds: Optional[float] = None,
warning_threshold: Optional[str] = None)
func NewMonitorAlertV2FormBasedPrometheus(ctx *Context, name string, args MonitorAlertV2FormBasedPrometheusArgs, opts ...ResourceOption) (*MonitorAlertV2FormBasedPrometheus, error)
public MonitorAlertV2FormBasedPrometheus(string name, MonitorAlertV2FormBasedPrometheusArgs args, CustomResourceOptions? opts = null)
public MonitorAlertV2FormBasedPrometheus(String name, MonitorAlertV2FormBasedPrometheusArgs args)
public MonitorAlertV2FormBasedPrometheus(String name, MonitorAlertV2FormBasedPrometheusArgs args, CustomResourceOptions options)
type: sysdig:MonitorAlertV2FormBasedPrometheus
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 MonitorAlertV2FormBasedPrometheusArgs
- 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 MonitorAlertV2FormBasedPrometheusArgs
- 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 MonitorAlertV2FormBasedPrometheusArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args MonitorAlertV2FormBasedPrometheusArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args MonitorAlertV2FormBasedPrometheusArgs
- 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 monitorAlertV2FormBasedPrometheusResource = new Sysdig.MonitorAlertV2FormBasedPrometheus("monitorAlertV2FormBasedPrometheusResource", new()
{
Operator = "string",
Threshold = 0,
Query = "string",
Name = "string",
NotificationChannels = new[]
{
new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusNotificationChannelArgs
{
Id = 0,
MainThreshold = false,
NotifyOnResolve = false,
RenotifyEveryMinutes = 0,
WarningThreshold = false,
},
},
Group = "string",
GroupBies = new[]
{
"string",
},
Labels =
{
{ "string", "string" },
},
Links = new[]
{
new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusLinkArgs
{
Type = "string",
Href = "string",
Id = "string",
},
},
MonitorAlertV2FormBasedPrometheusId = "string",
Capture = new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusCaptureArgs
{
Filename = "string",
DurationSeconds = 0,
Enabled = false,
Filter = "string",
Storage = "string",
},
NoDataBehaviour = "string",
Enabled = false,
DurationSeconds = 0,
Description = "string",
Scopes = new[]
{
new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusScopeArgs
{
Label = "string",
Operator = "string",
Values = new[]
{
"string",
},
},
},
Severity = "string",
CustomNotification = new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusCustomNotificationArgs
{
Append = "string",
Prepend = "string",
Subject = "string",
},
Timeouts = new Sysdig.Inputs.MonitorAlertV2FormBasedPrometheusTimeoutsArgs
{
Create = "string",
Delete = "string",
Read = "string",
Update = "string",
},
UnreportedAlertNotificationsRetentionSeconds = 0,
WarningThreshold = "string",
});
example, err := sysdig.NewMonitorAlertV2FormBasedPrometheus(ctx, "monitorAlertV2FormBasedPrometheusResource", &sysdig.MonitorAlertV2FormBasedPrometheusArgs{
Operator: pulumi.String("string"),
Threshold: pulumi.Float64(0),
Query: pulumi.String("string"),
Name: pulumi.String("string"),
NotificationChannels: sysdig.MonitorAlertV2FormBasedPrometheusNotificationChannelArray{
&sysdig.MonitorAlertV2FormBasedPrometheusNotificationChannelArgs{
Id: pulumi.Float64(0),
MainThreshold: pulumi.Bool(false),
NotifyOnResolve: pulumi.Bool(false),
RenotifyEveryMinutes: pulumi.Float64(0),
WarningThreshold: pulumi.Bool(false),
},
},
Group: pulumi.String("string"),
GroupBies: pulumi.StringArray{
pulumi.String("string"),
},
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
Links: sysdig.MonitorAlertV2FormBasedPrometheusLinkArray{
&sysdig.MonitorAlertV2FormBasedPrometheusLinkArgs{
Type: pulumi.String("string"),
Href: pulumi.String("string"),
Id: pulumi.String("string"),
},
},
MonitorAlertV2FormBasedPrometheusId: pulumi.String("string"),
Capture: &sysdig.MonitorAlertV2FormBasedPrometheusCaptureArgs{
Filename: pulumi.String("string"),
DurationSeconds: pulumi.Float64(0),
Enabled: pulumi.Bool(false),
Filter: pulumi.String("string"),
Storage: pulumi.String("string"),
},
NoDataBehaviour: pulumi.String("string"),
Enabled: pulumi.Bool(false),
DurationSeconds: pulumi.Float64(0),
Description: pulumi.String("string"),
Scopes: sysdig.MonitorAlertV2FormBasedPrometheusScopeArray{
&sysdig.MonitorAlertV2FormBasedPrometheusScopeArgs{
Label: pulumi.String("string"),
Operator: pulumi.String("string"),
Values: pulumi.StringArray{
pulumi.String("string"),
},
},
},
Severity: pulumi.String("string"),
CustomNotification: &sysdig.MonitorAlertV2FormBasedPrometheusCustomNotificationArgs{
Append: pulumi.String("string"),
Prepend: pulumi.String("string"),
Subject: pulumi.String("string"),
},
Timeouts: &sysdig.MonitorAlertV2FormBasedPrometheusTimeoutsArgs{
Create: pulumi.String("string"),
Delete: pulumi.String("string"),
Read: pulumi.String("string"),
Update: pulumi.String("string"),
},
UnreportedAlertNotificationsRetentionSeconds: pulumi.Float64(0),
WarningThreshold: pulumi.String("string"),
})
var monitorAlertV2FormBasedPrometheusResource = new MonitorAlertV2FormBasedPrometheus("monitorAlertV2FormBasedPrometheusResource", MonitorAlertV2FormBasedPrometheusArgs.builder()
.operator("string")
.threshold(0)
.query("string")
.name("string")
.notificationChannels(MonitorAlertV2FormBasedPrometheusNotificationChannelArgs.builder()
.id(0)
.mainThreshold(false)
.notifyOnResolve(false)
.renotifyEveryMinutes(0)
.warningThreshold(false)
.build())
.group("string")
.groupBies("string")
.labels(Map.of("string", "string"))
.links(MonitorAlertV2FormBasedPrometheusLinkArgs.builder()
.type("string")
.href("string")
.id("string")
.build())
.monitorAlertV2FormBasedPrometheusId("string")
.capture(MonitorAlertV2FormBasedPrometheusCaptureArgs.builder()
.filename("string")
.durationSeconds(0)
.enabled(false)
.filter("string")
.storage("string")
.build())
.noDataBehaviour("string")
.enabled(false)
.durationSeconds(0)
.description("string")
.scopes(MonitorAlertV2FormBasedPrometheusScopeArgs.builder()
.label("string")
.operator("string")
.values("string")
.build())
.severity("string")
.customNotification(MonitorAlertV2FormBasedPrometheusCustomNotificationArgs.builder()
.append("string")
.prepend("string")
.subject("string")
.build())
.timeouts(MonitorAlertV2FormBasedPrometheusTimeoutsArgs.builder()
.create("string")
.delete("string")
.read("string")
.update("string")
.build())
.unreportedAlertNotificationsRetentionSeconds(0)
.warningThreshold("string")
.build());
monitor_alert_v2_form_based_prometheus_resource = sysdig.MonitorAlertV2FormBasedPrometheus("monitorAlertV2FormBasedPrometheusResource",
operator="string",
threshold=0,
query="string",
name="string",
notification_channels=[{
"id": 0,
"main_threshold": False,
"notify_on_resolve": False,
"renotify_every_minutes": 0,
"warning_threshold": False,
}],
group="string",
group_bies=["string"],
labels={
"string": "string",
},
links=[{
"type": "string",
"href": "string",
"id": "string",
}],
monitor_alert_v2_form_based_prometheus_id="string",
capture={
"filename": "string",
"duration_seconds": 0,
"enabled": False,
"filter": "string",
"storage": "string",
},
no_data_behaviour="string",
enabled=False,
duration_seconds=0,
description="string",
scopes=[{
"label": "string",
"operator": "string",
"values": ["string"],
}],
severity="string",
custom_notification={
"append": "string",
"prepend": "string",
"subject": "string",
},
timeouts={
"create": "string",
"delete": "string",
"read": "string",
"update": "string",
},
unreported_alert_notifications_retention_seconds=0,
warning_threshold="string")
const monitorAlertV2FormBasedPrometheusResource = new sysdig.MonitorAlertV2FormBasedPrometheus("monitorAlertV2FormBasedPrometheusResource", {
operator: "string",
threshold: 0,
query: "string",
name: "string",
notificationChannels: [{
id: 0,
mainThreshold: false,
notifyOnResolve: false,
renotifyEveryMinutes: 0,
warningThreshold: false,
}],
group: "string",
groupBies: ["string"],
labels: {
string: "string",
},
links: [{
type: "string",
href: "string",
id: "string",
}],
monitorAlertV2FormBasedPrometheusId: "string",
capture: {
filename: "string",
durationSeconds: 0,
enabled: false,
filter: "string",
storage: "string",
},
noDataBehaviour: "string",
enabled: false,
durationSeconds: 0,
description: "string",
scopes: [{
label: "string",
operator: "string",
values: ["string"],
}],
severity: "string",
customNotification: {
append: "string",
prepend: "string",
subject: "string",
},
timeouts: {
create: "string",
"delete": "string",
read: "string",
update: "string",
},
unreportedAlertNotificationsRetentionSeconds: 0,
warningThreshold: "string",
});
type: sysdig:MonitorAlertV2FormBasedPrometheus
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
groupBies:
- string
labels:
string: string
links:
- href: string
id: string
type: string
monitorAlertV2FormBasedPrometheusId: string
name: string
noDataBehaviour: string
notificationChannels:
- id: 0
mainThreshold: false
notifyOnResolve: false
renotifyEveryMinutes: 0
warningThreshold: false
operator: string
query: string
scopes:
- label: string
operator: string
values:
- string
severity: string
threshold: 0
timeouts:
create: string
delete: string
read: string
update: string
unreportedAlertNotificationsRetentionSeconds: 0
warningThreshold: string
MonitorAlertV2FormBasedPrometheus 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 MonitorAlertV2FormBasedPrometheus resource accepts the following input properties:
- Operator string
- Query string
- Threshold double
- Capture
Monitor
Alert V2Form Based Prometheus Capture - Custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - Description string
- Duration
Seconds double - Enabled bool
- Group string
- Group
Bies List<string> - Labels Dictionary<string, string>
- Links
List<Monitor
Alert V2Form Based Prometheus Link> - Monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- Name string
- No
Data stringBehaviour - Notification
Channels List<MonitorAlert V2Form Based Prometheus Notification Channel> - Scopes
List<Monitor
Alert V2Form Based Prometheus Scope> - Severity string
- Timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - Unreported
Alert doubleNotifications Retention Seconds - Warning
Threshold string
- Operator string
- Query string
- Threshold float64
- Capture
Monitor
Alert V2Form Based Prometheus Capture Args - Custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification Args - Description string
- Duration
Seconds float64 - Enabled bool
- Group string
- Group
Bies []string - Labels map[string]string
- Links
[]Monitor
Alert V2Form Based Prometheus Link Args - Monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- Name string
- No
Data stringBehaviour - Notification
Channels []MonitorAlert V2Form Based Prometheus Notification Channel Args - Scopes
[]Monitor
Alert V2Form Based Prometheus Scope Args - Severity string
- Timeouts
Monitor
Alert V2Form Based Prometheus Timeouts Args - Unreported
Alert float64Notifications Retention Seconds - Warning
Threshold string
- operator String
- query String
- threshold Double
- capture
Monitor
Alert V2Form Based Prometheus Capture - custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - description String
- duration
Seconds Double - enabled Boolean
- group String
- group
Bies List<String> - labels Map<String,String>
- links
List<Monitor
Alert V2Form Based Prometheus Link> - monitor
Alert StringV2Form Based Prometheus Id - ID of the alert created.
- name String
- no
Data StringBehaviour - notification
Channels List<MonitorAlert V2Form Based Prometheus Notification Channel> - scopes
List<Monitor
Alert V2Form Based Prometheus Scope> - severity String
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - unreported
Alert DoubleNotifications Retention Seconds - warning
Threshold String
- operator string
- query string
- threshold number
- capture
Monitor
Alert V2Form Based Prometheus Capture - custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - description string
- duration
Seconds number - enabled boolean
- group string
- group
Bies string[] - labels {[key: string]: string}
- links
Monitor
Alert V2Form Based Prometheus Link[] - monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- name string
- no
Data stringBehaviour - notification
Channels MonitorAlert V2Form Based Prometheus Notification Channel[] - scopes
Monitor
Alert V2Form Based Prometheus Scope[] - severity string
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - unreported
Alert numberNotifications Retention Seconds - warning
Threshold string
- operator str
- query str
- threshold float
- capture
Monitor
Alert V2Form Based Prometheus Capture Args - custom_
notification MonitorAlert V2Form Based Prometheus Custom Notification Args - description str
- duration_
seconds float - enabled bool
- group str
- group_
bies Sequence[str] - labels Mapping[str, str]
- links
Sequence[Monitor
Alert V2Form Based Prometheus Link Args] - monitor_
alert_ strv2_ form_ based_ prometheus_ id - ID of the alert created.
- name str
- no_
data_ strbehaviour - notification_
channels Sequence[MonitorAlert V2Form Based Prometheus Notification Channel Args] - scopes
Sequence[Monitor
Alert V2Form Based Prometheus Scope Args] - severity str
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts Args - unreported_
alert_ floatnotifications_ retention_ seconds - warning_
threshold str
- operator String
- query String
- threshold Number
- capture Property Map
- custom
Notification Property Map - description String
- duration
Seconds Number - enabled Boolean
- group String
- group
Bies List<String> - labels Map<String>
- links List<Property Map>
- monitor
Alert StringV2Form Based Prometheus Id - ID of the alert created.
- name String
- no
Data StringBehaviour - notification
Channels List<Property Map> - scopes List<Property Map>
- severity String
- timeouts Property Map
- unreported
Alert NumberNotifications Retention Seconds - warning
Threshold String
Outputs
All input properties are implicitly available as output properties. Additionally, the MonitorAlertV2FormBasedPrometheus resource produces the following output properties:
Look up Existing MonitorAlertV2FormBasedPrometheus Resource
Get an existing MonitorAlertV2FormBasedPrometheus 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?: MonitorAlertV2FormBasedPrometheusState, opts?: CustomResourceOptions): MonitorAlertV2FormBasedPrometheus
@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
capture: Optional[MonitorAlertV2FormBasedPrometheusCaptureArgs] = None,
custom_notification: Optional[MonitorAlertV2FormBasedPrometheusCustomNotificationArgs] = None,
description: Optional[str] = None,
duration_seconds: Optional[float] = None,
enabled: Optional[bool] = None,
group: Optional[str] = None,
group_bies: Optional[Sequence[str]] = None,
labels: Optional[Mapping[str, str]] = None,
links: Optional[Sequence[MonitorAlertV2FormBasedPrometheusLinkArgs]] = None,
monitor_alert_v2_form_based_prometheus_id: Optional[str] = None,
name: Optional[str] = None,
no_data_behaviour: Optional[str] = None,
notification_channels: Optional[Sequence[MonitorAlertV2FormBasedPrometheusNotificationChannelArgs]] = None,
operator: Optional[str] = None,
query: Optional[str] = None,
scopes: Optional[Sequence[MonitorAlertV2FormBasedPrometheusScopeArgs]] = None,
severity: Optional[str] = None,
team: Optional[float] = None,
threshold: Optional[float] = None,
timeouts: Optional[MonitorAlertV2FormBasedPrometheusTimeoutsArgs] = None,
unreported_alert_notifications_retention_seconds: Optional[float] = None,
version: Optional[float] = None,
warning_threshold: Optional[str] = None) -> MonitorAlertV2FormBasedPrometheus
func GetMonitorAlertV2FormBasedPrometheus(ctx *Context, name string, id IDInput, state *MonitorAlertV2FormBasedPrometheusState, opts ...ResourceOption) (*MonitorAlertV2FormBasedPrometheus, error)
public static MonitorAlertV2FormBasedPrometheus Get(string name, Input<string> id, MonitorAlertV2FormBasedPrometheusState? state, CustomResourceOptions? opts = null)
public static MonitorAlertV2FormBasedPrometheus get(String name, Output<String> id, MonitorAlertV2FormBasedPrometheusState state, CustomResourceOptions options)
resources: _: type: sysdig:MonitorAlertV2FormBasedPrometheus 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 V2Form Based Prometheus Capture - Custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - Description string
- Duration
Seconds double - Enabled bool
- Group string
- Group
Bies List<string> - Labels Dictionary<string, string>
- Links
List<Monitor
Alert V2Form Based Prometheus Link> - Monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- Name string
- No
Data stringBehaviour - Notification
Channels List<MonitorAlert V2Form Based Prometheus Notification Channel> - Operator string
- Query string
- Scopes
List<Monitor
Alert V2Form Based Prometheus Scope> - Severity string
- Team double
- Team ID that owns the alert.
- Threshold double
- Timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - Unreported
Alert doubleNotifications Retention Seconds - Version double
- Current version of the resource in Sysdig Monitor.
- Warning
Threshold string
- Capture
Monitor
Alert V2Form Based Prometheus Capture Args - Custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification Args - Description string
- Duration
Seconds float64 - Enabled bool
- Group string
- Group
Bies []string - Labels map[string]string
- Links
[]Monitor
Alert V2Form Based Prometheus Link Args - Monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- Name string
- No
Data stringBehaviour - Notification
Channels []MonitorAlert V2Form Based Prometheus Notification Channel Args - Operator string
- Query string
- Scopes
[]Monitor
Alert V2Form Based Prometheus Scope Args - Severity string
- Team float64
- Team ID that owns the alert.
- Threshold float64
- Timeouts
Monitor
Alert V2Form Based Prometheus Timeouts Args - Unreported
Alert float64Notifications Retention Seconds - Version float64
- Current version of the resource in Sysdig Monitor.
- Warning
Threshold string
- capture
Monitor
Alert V2Form Based Prometheus Capture - custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - description String
- duration
Seconds Double - enabled Boolean
- group String
- group
Bies List<String> - labels Map<String,String>
- links
List<Monitor
Alert V2Form Based Prometheus Link> - monitor
Alert StringV2Form Based Prometheus Id - ID of the alert created.
- name String
- no
Data StringBehaviour - notification
Channels List<MonitorAlert V2Form Based Prometheus Notification Channel> - operator String
- query String
- scopes
List<Monitor
Alert V2Form Based Prometheus Scope> - severity String
- team Double
- Team ID that owns the alert.
- threshold Double
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - unreported
Alert DoubleNotifications Retention Seconds - version Double
- Current version of the resource in Sysdig Monitor.
- warning
Threshold String
- capture
Monitor
Alert V2Form Based Prometheus Capture - custom
Notification MonitorAlert V2Form Based Prometheus Custom Notification - description string
- duration
Seconds number - enabled boolean
- group string
- group
Bies string[] - labels {[key: string]: string}
- links
Monitor
Alert V2Form Based Prometheus Link[] - monitor
Alert stringV2Form Based Prometheus Id - ID of the alert created.
- name string
- no
Data stringBehaviour - notification
Channels MonitorAlert V2Form Based Prometheus Notification Channel[] - operator string
- query string
- scopes
Monitor
Alert V2Form Based Prometheus Scope[] - severity string
- team number
- Team ID that owns the alert.
- threshold number
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts - unreported
Alert numberNotifications Retention Seconds - version number
- Current version of the resource in Sysdig Monitor.
- warning
Threshold string
- capture
Monitor
Alert V2Form Based Prometheus Capture Args - custom_
notification MonitorAlert V2Form Based Prometheus Custom Notification Args - description str
- duration_
seconds float - enabled bool
- group str
- group_
bies Sequence[str] - labels Mapping[str, str]
- links
Sequence[Monitor
Alert V2Form Based Prometheus Link Args] - monitor_
alert_ strv2_ form_ based_ prometheus_ id - ID of the alert created.
- name str
- no_
data_ strbehaviour - notification_
channels Sequence[MonitorAlert V2Form Based Prometheus Notification Channel Args] - operator str
- query str
- scopes
Sequence[Monitor
Alert V2Form Based Prometheus Scope Args] - severity str
- team float
- Team ID that owns the alert.
- threshold float
- timeouts
Monitor
Alert V2Form Based Prometheus Timeouts Args - unreported_
alert_ floatnotifications_ retention_ seconds - version float
- Current version of the resource in Sysdig Monitor.
- warning_
threshold str
- capture Property Map
- custom
Notification Property Map - description String
- duration
Seconds Number - enabled Boolean
- group String
- group
Bies List<String> - labels Map<String>
- links List<Property Map>
- monitor
Alert StringV2Form Based Prometheus Id - ID of the alert created.
- name String
- no
Data StringBehaviour - notification
Channels List<Property Map> - operator String
- query String
- scopes List<Property Map>
- severity String
- team Number
- Team ID that owns the alert.
- threshold Number
- timeouts Property Map
- unreported
Alert NumberNotifications Retention Seconds - version Number
- Current version of the resource in Sysdig Monitor.
- warning
Threshold String
Supporting Types
MonitorAlertV2FormBasedPrometheusCapture, MonitorAlertV2FormBasedPrometheusCaptureArgs
- Filename string
- Duration
Seconds 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
- Duration
Seconds 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
- duration
Seconds 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
- duration
Seconds 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
- duration
Seconds 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
MonitorAlertV2FormBasedPrometheusCustomNotification, MonitorAlertV2FormBasedPrometheusCustomNotificationArgs
MonitorAlertV2FormBasedPrometheusLink, MonitorAlertV2FormBasedPrometheusLinkArgs
MonitorAlertV2FormBasedPrometheusNotificationChannel, MonitorAlertV2FormBasedPrometheusNotificationChannelArgs
- Id double
- The ID of the notification channel.
- Main
Threshold bool - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - Type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - Warning
Threshold bool - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
- Id float64
- The ID of the notification channel.
- Main
Threshold bool - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - Type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - Warning
Threshold bool - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
- id Double
- The ID of the notification channel.
- main
Threshold Boolean - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - type String
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold Boolean - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
- id number
- The ID of the notification channel.
- main
Threshold boolean - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - type string
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold boolean - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
- id float
- The ID of the notification channel.
- main_
threshold bool - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - type str
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning_
threshold bool - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
- id Number
- The ID of the notification channel.
- main
Threshold Boolean - Whether this notification channel is used for the main threshold of the alert. Default:
true
. - 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. - type String
- Type of link. Must be
runbook
, for generic links, ordashboard
, for internal links to existing dashboards. - warning
Threshold Boolean - Whether this notification channel is used for the warning threshold of the alert. Default:
false
.
MonitorAlertV2FormBasedPrometheusScope, MonitorAlertV2FormBasedPrometheusScopeArgs
MonitorAlertV2FormBasedPrometheusTimeouts, MonitorAlertV2FormBasedPrometheusTimeoutsArgs
Import
Threshold Prometheus alerts can be imported using the alert ID, e.g.
$ pulumi import sysdig:index/monitorAlertV2FormBasedPrometheus:MonitorAlertV2FormBasedPrometheus 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.