public static final class CreateMonitorGroupByResourceGroupIdRequest.Builder extends Object
| 限定符和类型 | 方法和说明 |
|---|---|
CreateMonitorGroupByResourceGroupIdRequest |
build() |
CreateMonitorGroupByResourceGroupIdRequest.Builder |
contactGroupList(List<String> contactGroupList)
The alert contact groups.
|
CreateMonitorGroupByResourceGroupIdRequest.Builder |
enableInstallAgent(Boolean enableInstallAgent)
Specifies whether the CloudMonitor agent is automatically installed for the application group.
|
CreateMonitorGroupByResourceGroupIdRequest.Builder |
enableSubscribeEvent(Boolean enableSubscribeEvent)
Specifies whether the application group automatically subscribes to event notifications.
|
CreateMonitorGroupByResourceGroupIdRequest.Builder |
regionId(String regionId)
The ID of the region where the resource group resides.
|
CreateMonitorGroupByResourceGroupIdRequest.Builder |
resourceGroupId(String resourceGroupId)
The ID of the resource group.
|
CreateMonitorGroupByResourceGroupIdRequest.Builder |
resourceGroupName(String resourceGroupName)
The name of the resource group.
|
public CreateMonitorGroupByResourceGroupIdRequest.Builder contactGroupList(List<String> contactGroupList)
The alert contact groups. The alert notifications of the application group are sent to the alert contacts that belong to the specified alert contact groups.
An alert contact group can contain one or more alert contacts. For information about how to create alert contacts and alert contact groups, see PutContact and PutContactGroup. For information about how to obtain alert contact groups, see DescribeContactGroupList.
This parameter is required.
example:ECS_Group
public CreateMonitorGroupByResourceGroupIdRequest.Builder enableInstallAgent(Boolean enableInstallAgent)
Specifies whether the CloudMonitor agent is automatically installed for the application group. CloudMonitor determines whether to automatically install the CloudMonitor agent for the hosts in an application group based on the value of this parameter. Valid values:
true
public CreateMonitorGroupByResourceGroupIdRequest.Builder enableSubscribeEvent(Boolean enableSubscribeEvent)
Specifies whether the application group automatically subscribes to event notifications. If events whose severity level is critical or warning occur on resources in an application group, CloudMonitor sends alert notifications. Valid values:
true
public CreateMonitorGroupByResourceGroupIdRequest.Builder regionId(String regionId)
The ID of the region where the resource group resides.
For information about how to obtain the ID of the region where a resource group resides, see GetResourceGroup.
This parameter is required.
example:cn-hangzhou
public CreateMonitorGroupByResourceGroupIdRequest.Builder resourceGroupId(String resourceGroupId)
The ID of the resource group.
For information about how to obtain the ID of a resource group, see ListResourceGroups.
This parameter is required.
example:rg-acfmw3ty5y7****
public CreateMonitorGroupByResourceGroupIdRequest.Builder resourceGroupName(String resourceGroupName)
The name of the resource group.
For information about how to obtain the name of a resource group, see ListResourceGroups.
This parameter is required.
example:CloudMonitor
public CreateMonitorGroupByResourceGroupIdRequest build()
Copyright © 2026. All rights reserved.