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

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());
}
}

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
fun AlertContactArgs(alertContactName: Output<String>? = null, dingRobotWebhookUrl: Output<String>? = null, email: Output<String>? = null, phoneNum: Output<String>? = null, systemNoc: Output<Boolean>? = null)

Functions

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

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.