Alert Contact Args
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());
}
}
Content copied to clipboard
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>
Content copied to clipboard
Constructors
Functions
Properties
Link copied to clipboard
Link copied to clipboard
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.