AlertContactArgs

data class AlertContactArgs(val alertContactName: Output<String>? = null, val dingRobotWebhookUrl: Output<String>? = null, val email: Output<String>? = null, val phoneNum: Output<String>? = null, val systemNoc: Output<Boolean>? = null) : ConvertibleToJava<AlertContactArgs>

Provides a Application Real-Time Monitoring Service (ARMS) Alert Contact resource. For information about Application Real-Time Monitoring Service (ARMS) Alert Contact and how to use it, see What is Alert Contact.

NOTE: Available since v1.129.0.

Example Usage

Basic Usage

import * as pulumi from "@pulumi/pulumi";
import * as alicloud from "@pulumi/alicloud";
const example = new alicloud.arms.AlertContact("example", {
alertContactName: "example_value",
dingRobotWebhookUrl: "https://oapi.dingtalk.com/robot/send?access_token=91f2f6****",
email: "someone@example.com",
phoneNum: "1381111****",
});
import pulumi
import pulumi_alicloud as alicloud
example = alicloud.arms.AlertContact("example",
alert_contact_name="example_value",
ding_robot_webhook_url="https://oapi.dingtalk.com/robot/send?access_token=91f2f6****",
email="someone@example.com",
phone_num="1381111****")
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AliCloud = Pulumi.AliCloud;
return await Deployment.RunAsync(() =>
{
var example = new AliCloud.Arms.AlertContact("example", new()
{
AlertContactName = "example_value",
DingRobotWebhookUrl = "https://oapi.dingtalk.com/robot/send?access_token=91f2f6****",
Email = "someone@example.com",
PhoneNum = "1381111****",
});
});
package main
import (
"github.com/pulumi/pulumi-alicloud/sdk/v3/go/alicloud/arms"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := arms.NewAlertContact(ctx, "example", &arms.AlertContactArgs{
AlertContactName: pulumi.String("example_value"),
DingRobotWebhookUrl: pulumi.String("https://oapi.dingtalk.com/robot/send?access_token=91f2f6****"),
Email: pulumi.String("someone@example.com"),
PhoneNum: pulumi.String("1381111****"),
})
if err != nil {
return err
}
return nil
})
}
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.alicloud.arms.AlertContact;
import com.pulumi.alicloud.arms.AlertContactArgs;
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 example = new AlertContact("example", AlertContactArgs.builder()
.alertContactName("example_value")
.dingRobotWebhookUrl("https://oapi.dingtalk.com/robot/send?access_token=91f2f6****")
.email("someone@example.com")
.phoneNum("1381111****")
.build());
}
}
resources:
example:
type: alicloud:arms:AlertContact
properties:
alertContactName: example_value
dingRobotWebhookUrl: https://oapi.dingtalk.com/robot/send?access_token=91f2f6****
email: someone@example.com
phoneNum: 1381111****

Import

Application Real-Time Monitoring Service (ARMS) Alert Contact can be imported using the id, e.g.

$ pulumi import alicloud:arms/alertContact:AlertContact example <id>

Constructors

Link copied to clipboard
constructor(alertContactName: Output<String>? = null, dingRobotWebhookUrl: Output<String>? = null, email: Output<String>? = null, phoneNum: Output<String>? = null, systemNoc: Output<Boolean>? = null)

Properties

Link copied to clipboard
val alertContactName: Output<String>? = null

The name of the alert contact.

Link copied to clipboard
val dingRobotWebhookUrl: Output<String>? = null

The webhook URL of the DingTalk chatbot. For more information about how to obtain the URL, see Configure a DingTalk chatbot to send alert notifications: https://www.alibabacloud.com/help/en/doc-detail/106247.htm. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.

Link copied to clipboard
val email: Output<String>? = null

The email address of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.

Link copied to clipboard
val phoneNum: Output<String>? = null

The mobile number of the alert contact. You must specify at least one of the following parameters: PhoneNum, Email, and DingRobotWebhookUrl.

Link copied to clipboard
val systemNoc: Output<Boolean>? = null

Specifies whether the alert contact receives system notifications. Valid values: true: receives system notifications. false: does not receive system notifications.

Functions

Link copied to clipboard
open override fun toJava(): AlertContactArgs