1. Packages
  2. Wavefront Provider
  3. API Docs
  4. AlertTarget
Wavefront v3.1.6 published on Thursday, Oct 31, 2024 by Pulumi

wavefront.AlertTarget

Explore with Pulumi AI

wavefront logo
Wavefront v3.1.6 published on Thursday, Oct 31, 2024 by Pulumi

    Provides a wavefront Alert Target resource. This allows alert targets to created, updated, and deleted.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as wavefront from "@pulumi/wavefront";
    
    const testTarget = new wavefront.AlertTarget("test_target", {
        name: "Terraform Test Target",
        description: "Test target",
        method: "WEBHOOK",
        recipient: "https://hooks.slack.com/services/test/me",
        contentType: "application/json",
        customHeaders: {
            Testing: "true",
        },
        template: "{}",
        triggers: [
            "ALERT_OPENED",
            "ALERT_RESOLVED",
        ],
    });
    
    import pulumi
    import pulumi_wavefront as wavefront
    
    test_target = wavefront.AlertTarget("test_target",
        name="Terraform Test Target",
        description="Test target",
        method="WEBHOOK",
        recipient="https://hooks.slack.com/services/test/me",
        content_type="application/json",
        custom_headers={
            "Testing": "true",
        },
        template="{}",
        triggers=[
            "ALERT_OPENED",
            "ALERT_RESOLVED",
        ])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-wavefront/sdk/v3/go/wavefront"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := wavefront.NewAlertTarget(ctx, "test_target", &wavefront.AlertTargetArgs{
    			Name:        pulumi.String("Terraform Test Target"),
    			Description: pulumi.String("Test target"),
    			Method:      pulumi.String("WEBHOOK"),
    			Recipient:   pulumi.String("https://hooks.slack.com/services/test/me"),
    			ContentType: pulumi.String("application/json"),
    			CustomHeaders: pulumi.StringMap{
    				"Testing": pulumi.String("true"),
    			},
    			Template: pulumi.String("{}"),
    			Triggers: pulumi.StringArray{
    				pulumi.String("ALERT_OPENED"),
    				pulumi.String("ALERT_RESOLVED"),
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Wavefront = Pulumi.Wavefront;
    
    return await Deployment.RunAsync(() => 
    {
        var testTarget = new Wavefront.AlertTarget("test_target", new()
        {
            Name = "Terraform Test Target",
            Description = "Test target",
            Method = "WEBHOOK",
            Recipient = "https://hooks.slack.com/services/test/me",
            ContentType = "application/json",
            CustomHeaders = 
            {
                { "Testing", "true" },
            },
            Template = "{}",
            Triggers = new[]
            {
                "ALERT_OPENED",
                "ALERT_RESOLVED",
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.wavefront.AlertTarget;
    import com.pulumi.wavefront.AlertTargetArgs;
    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 testTarget = new AlertTarget("testTarget", AlertTargetArgs.builder()
                .name("Terraform Test Target")
                .description("Test target")
                .method("WEBHOOK")
                .recipient("https://hooks.slack.com/services/test/me")
                .contentType("application/json")
                .customHeaders(Map.of("Testing", "true"))
                .template("{}")
                .triggers(            
                    "ALERT_OPENED",
                    "ALERT_RESOLVED")
                .build());
    
        }
    }
    
    resources:
      testTarget:
        type: wavefront:AlertTarget
        name: test_target
        properties:
          name: Terraform Test Target
          description: Test target
          method: WEBHOOK
          recipient: https://hooks.slack.com/services/test/me
          contentType: application/json
          customHeaders:
            Testing: 'true'
          template: '{}'
          triggers:
            - ALERT_OPENED
            - ALERT_RESOLVED
    

    Create AlertTarget Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new AlertTarget(name: string, args: AlertTargetArgs, opts?: CustomResourceOptions);
    @overload
    def AlertTarget(resource_name: str,
                    args: AlertTargetArgs,
                    opts: Optional[ResourceOptions] = None)
    
    @overload
    def AlertTarget(resource_name: str,
                    opts: Optional[ResourceOptions] = None,
                    description: Optional[str] = None,
                    recipient: Optional[str] = None,
                    template: Optional[str] = None,
                    triggers: Optional[Sequence[str]] = None,
                    content_type: Optional[str] = None,
                    custom_headers: Optional[Mapping[str, str]] = None,
                    email_subject: Optional[str] = None,
                    is_html_content: Optional[bool] = None,
                    method: Optional[str] = None,
                    name: Optional[str] = None,
                    routes: Optional[Sequence[AlertTargetRouteArgs]] = None)
    func NewAlertTarget(ctx *Context, name string, args AlertTargetArgs, opts ...ResourceOption) (*AlertTarget, error)
    public AlertTarget(string name, AlertTargetArgs args, CustomResourceOptions? opts = null)
    public AlertTarget(String name, AlertTargetArgs args)
    public AlertTarget(String name, AlertTargetArgs args, CustomResourceOptions options)
    
    type: wavefront:AlertTarget
    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 AlertTargetArgs
    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 AlertTargetArgs
    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 AlertTargetArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args AlertTargetArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args AlertTargetArgs
    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 alertTargetResource = new Wavefront.AlertTarget("alertTargetResource", new()
    {
        Description = "string",
        Recipient = "string",
        Template = "string",
        Triggers = new[]
        {
            "string",
        },
        ContentType = "string",
        CustomHeaders = 
        {
            { "string", "string" },
        },
        EmailSubject = "string",
        IsHtmlContent = false,
        Method = "string",
        Name = "string",
        Routes = new[]
        {
            new Wavefront.Inputs.AlertTargetRouteArgs
            {
                Method = "string",
                Target = "string",
                Filter = 
                {
                    { "string", "string" },
                },
            },
        },
    });
    
    example, err := wavefront.NewAlertTarget(ctx, "alertTargetResource", &wavefront.AlertTargetArgs{
    	Description: pulumi.String("string"),
    	Recipient:   pulumi.String("string"),
    	Template:    pulumi.String("string"),
    	Triggers: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ContentType: pulumi.String("string"),
    	CustomHeaders: pulumi.StringMap{
    		"string": pulumi.String("string"),
    	},
    	EmailSubject:  pulumi.String("string"),
    	IsHtmlContent: pulumi.Bool(false),
    	Method:        pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Routes: wavefront.AlertTargetRouteArray{
    		&wavefront.AlertTargetRouteArgs{
    			Method: pulumi.String("string"),
    			Target: pulumi.String("string"),
    			Filter: pulumi.StringMap{
    				"string": pulumi.String("string"),
    			},
    		},
    	},
    })
    
    var alertTargetResource = new AlertTarget("alertTargetResource", AlertTargetArgs.builder()
        .description("string")
        .recipient("string")
        .template("string")
        .triggers("string")
        .contentType("string")
        .customHeaders(Map.of("string", "string"))
        .emailSubject("string")
        .isHtmlContent(false)
        .method("string")
        .name("string")
        .routes(AlertTargetRouteArgs.builder()
            .method("string")
            .target("string")
            .filter(Map.of("string", "string"))
            .build())
        .build());
    
    alert_target_resource = wavefront.AlertTarget("alertTargetResource",
        description="string",
        recipient="string",
        template="string",
        triggers=["string"],
        content_type="string",
        custom_headers={
            "string": "string",
        },
        email_subject="string",
        is_html_content=False,
        method="string",
        name="string",
        routes=[{
            "method": "string",
            "target": "string",
            "filter": {
                "string": "string",
            },
        }])
    
    const alertTargetResource = new wavefront.AlertTarget("alertTargetResource", {
        description: "string",
        recipient: "string",
        template: "string",
        triggers: ["string"],
        contentType: "string",
        customHeaders: {
            string: "string",
        },
        emailSubject: "string",
        isHtmlContent: false,
        method: "string",
        name: "string",
        routes: [{
            method: "string",
            target: "string",
            filter: {
                string: "string",
            },
        }],
    });
    
    type: wavefront:AlertTarget
    properties:
        contentType: string
        customHeaders:
            string: string
        description: string
        emailSubject: string
        isHtmlContent: false
        method: string
        name: string
        recipient: string
        routes:
            - filter:
                string: string
              method: string
              target: string
        template: string
        triggers:
            - string
    

    AlertTarget 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 AlertTarget resource accepts the following input properties:

    Description string
    Description describing this alert target.
    Recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    Triggers List<string>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    ContentType string
    The value of the Content-Type header of the webhook.
    CustomHeaders Dictionary<string, string>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    EmailSubject string
    The subject title of an email notification target.
    IsHtmlContent bool
    Determine whether the email alert content is sent as HTML or text.
    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Name string
    The name of the alert target as it is displayed in Wavefront.
    Routes List<AlertTargetRoute>
    List of routing targets that this alert target will notify. See Route
    Description string
    Description describing this alert target.
    Recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    Triggers []string
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    ContentType string
    The value of the Content-Type header of the webhook.
    CustomHeaders map[string]string
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    EmailSubject string
    The subject title of an email notification target.
    IsHtmlContent bool
    Determine whether the email alert content is sent as HTML or text.
    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Name string
    The name of the alert target as it is displayed in Wavefront.
    Routes []AlertTargetRouteArgs
    List of routing targets that this alert target will notify. See Route
    description String
    Description describing this alert target.
    recipient String
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    template String
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers List<String>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType String
    The value of the Content-Type header of the webhook.
    customHeaders Map<String,String>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    emailSubject String
    The subject title of an email notification target.
    isHtmlContent Boolean
    Determine whether the email alert content is sent as HTML or text.
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name String
    The name of the alert target as it is displayed in Wavefront.
    routes List<AlertTargetRoute>
    List of routing targets that this alert target will notify. See Route
    description string
    Description describing this alert target.
    recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers string[]
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType string
    The value of the Content-Type header of the webhook.
    customHeaders {[key: string]: string}
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    emailSubject string
    The subject title of an email notification target.
    isHtmlContent boolean
    Determine whether the email alert content is sent as HTML or text.
    method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name string
    The name of the alert target as it is displayed in Wavefront.
    routes AlertTargetRoute[]
    List of routing targets that this alert target will notify. See Route
    description str
    Description describing this alert target.
    recipient str
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    template str
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers Sequence[str]
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    content_type str
    The value of the Content-Type header of the webhook.
    custom_headers Mapping[str, str]
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    email_subject str
    The subject title of an email notification target.
    is_html_content bool
    Determine whether the email alert content is sent as HTML or text.
    method str
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name str
    The name of the alert target as it is displayed in Wavefront.
    routes Sequence[AlertTargetRouteArgs]
    List of routing targets that this alert target will notify. See Route
    description String
    Description describing this alert target.
    recipient String
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    template String
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers List<String>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType String
    The value of the Content-Type header of the webhook.
    customHeaders Map<String>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    emailSubject String
    The subject title of an email notification target.
    isHtmlContent Boolean
    Determine whether the email alert content is sent as HTML or text.
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name String
    The name of the alert target as it is displayed in Wavefront.
    routes List<Property Map>
    List of routing targets that this alert target will notify. See Route

    Outputs

    All input properties are implicitly available as output properties. Additionally, the AlertTarget resource produces the following output properties:

    Id string
    The provider-assigned unique ID for this managed resource.
    TargetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    Id string
    The provider-assigned unique ID for this managed resource.
    TargetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    id String
    The provider-assigned unique ID for this managed resource.
    targetId String
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    id string
    The provider-assigned unique ID for this managed resource.
    targetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    id str
    The provider-assigned unique ID for this managed resource.
    target_id str
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    id String
    The provider-assigned unique ID for this managed resource.
    targetId String
    The target ID prefixed with target: for interpolating into a Wavefront Alert.

    Look up Existing AlertTarget Resource

    Get an existing AlertTarget 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?: AlertTargetState, opts?: CustomResourceOptions): AlertTarget
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            content_type: Optional[str] = None,
            custom_headers: Optional[Mapping[str, str]] = None,
            description: Optional[str] = None,
            email_subject: Optional[str] = None,
            is_html_content: Optional[bool] = None,
            method: Optional[str] = None,
            name: Optional[str] = None,
            recipient: Optional[str] = None,
            routes: Optional[Sequence[AlertTargetRouteArgs]] = None,
            target_id: Optional[str] = None,
            template: Optional[str] = None,
            triggers: Optional[Sequence[str]] = None) -> AlertTarget
    func GetAlertTarget(ctx *Context, name string, id IDInput, state *AlertTargetState, opts ...ResourceOption) (*AlertTarget, error)
    public static AlertTarget Get(string name, Input<string> id, AlertTargetState? state, CustomResourceOptions? opts = null)
    public static AlertTarget get(String name, Output<String> id, AlertTargetState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    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.
    The following state arguments are supported:
    ContentType string
    The value of the Content-Type header of the webhook.
    CustomHeaders Dictionary<string, string>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    Description string
    Description describing this alert target.
    EmailSubject string
    The subject title of an email notification target.
    IsHtmlContent bool
    Determine whether the email alert content is sent as HTML or text.
    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Name string
    The name of the alert target as it is displayed in Wavefront.
    Recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Routes List<AlertTargetRoute>
    List of routing targets that this alert target will notify. See Route
    TargetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    Template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    Triggers List<string>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    ContentType string
    The value of the Content-Type header of the webhook.
    CustomHeaders map[string]string
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    Description string
    Description describing this alert target.
    EmailSubject string
    The subject title of an email notification target.
    IsHtmlContent bool
    Determine whether the email alert content is sent as HTML or text.
    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Name string
    The name of the alert target as it is displayed in Wavefront.
    Recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Routes []AlertTargetRouteArgs
    List of routing targets that this alert target will notify. See Route
    TargetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    Template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    Triggers []string
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType String
    The value of the Content-Type header of the webhook.
    customHeaders Map<String,String>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    description String
    Description describing this alert target.
    emailSubject String
    The subject title of an email notification target.
    isHtmlContent Boolean
    Determine whether the email alert content is sent as HTML or text.
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name String
    The name of the alert target as it is displayed in Wavefront.
    recipient String
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    routes List<AlertTargetRoute>
    List of routing targets that this alert target will notify. See Route
    targetId String
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    template String
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers List<String>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType string
    The value of the Content-Type header of the webhook.
    customHeaders {[key: string]: string}
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    description string
    Description describing this alert target.
    emailSubject string
    The subject title of an email notification target.
    isHtmlContent boolean
    Determine whether the email alert content is sent as HTML or text.
    method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name string
    The name of the alert target as it is displayed in Wavefront.
    recipient string
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    routes AlertTargetRoute[]
    List of routing targets that this alert target will notify. See Route
    targetId string
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    template string
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers string[]
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    content_type str
    The value of the Content-Type header of the webhook.
    custom_headers Mapping[str, str]
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    description str
    Description describing this alert target.
    email_subject str
    The subject title of an email notification target.
    is_html_content bool
    Determine whether the email alert content is sent as HTML or text.
    method str
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name str
    The name of the alert target as it is displayed in Wavefront.
    recipient str
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    routes Sequence[AlertTargetRouteArgs]
    List of routing targets that this alert target will notify. See Route
    target_id str
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    template str
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers Sequence[str]
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.
    contentType String
    The value of the Content-Type header of the webhook.
    customHeaders Map<String>
    A string->string map specifying the custom HTTP header key/value pairs that will be sent in the requests with a method of WEBHOOK.
    description String
    Description describing this alert target.
    emailSubject String
    The subject title of an email notification target.
    isHtmlContent Boolean
    Determine whether the email alert content is sent as HTML or text.
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    name String
    The name of the alert target as it is displayed in Wavefront.
    recipient String
    The end point for the notification Target. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    routes List<Property Map>
    List of routing targets that this alert target will notify. See Route
    targetId String
    The target ID prefixed with target: for interpolating into a Wavefront Alert.
    template String
    A mustache template that will form the body of the POST request, email, and summary of the PagerDuty.
    triggers List<String>
    A list of occurrences on which this webhook will be fired. Valid values are ALERT_OPENED, ALERT_UPDATED, ALERT_RESOLVED, ALERT_MAINTENANCE, ALERT_SNOOZED, ALERT_NO_DATA, ALERT_NO_DATA_RESOLVED, ALERT_NO_DATA_MAINTENANCE.

    Supporting Types

    AlertTargetRoute, AlertTargetRouteArgs

    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Target string
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Filter Dictionary<string, string>
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)
    Method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    Target string
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    Filter map[string]string
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    target String
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    filter Map<String,String>
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)
    method string
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    target string
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    filter {[key: string]: string}
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)
    method str
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    target str
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    filter Mapping[str, str]
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)
    method String
    The notification method used for notification target. One of WEBHOOK, EMAIL, PAGERDUTY.
    target String
    (Required) The endpoint for the alert route. EMAIL: email address. PAGERDUTY: PagerDuty routing key. WEBHOOK: URL endpoint.
    filter Map<String>
    (Required) String that filters the route. Space delimited. Currently only allows a single key value pair. (e.g. env prod)

    Import

    Alert Targets can be imported using the id, e.g.:

    $ pulumi import wavefront:index/alertTarget:AlertTarget alert_target abcdEFGhijKLMNO
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    Wavefront pulumi/pulumi-wavefront
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the wavefront Terraform Provider.
    wavefront logo
    Wavefront v3.1.6 published on Thursday, Oct 31, 2024 by Pulumi