public class InstallMonitoringAgentRequest
extends com.aliyun.tea.TeaModel
| 限定符和类型 | 字段和说明 |
|---|---|
Boolean |
force
Specifies whether to install the CloudMonitor agent.
|
String |
installCommand
Specifies whether to install the CloudMonitor agent on all ECS instances that belong to the current Alibaba Cloud account.
|
List<String> |
instanceIds |
String |
regionId |
| 构造器和说明 |
|---|
InstallMonitoringAgentRequest() |
| 限定符和类型 | 方法和说明 |
|---|---|
static InstallMonitoringAgentRequest |
build(Map<String,?> map) |
Boolean |
getForce() |
String |
getInstallCommand() |
List<String> |
getInstanceIds() |
String |
getRegionId() |
InstallMonitoringAgentRequest |
setForce(Boolean force) |
InstallMonitoringAgentRequest |
setInstallCommand(String installCommand) |
InstallMonitoringAgentRequest |
setInstanceIds(List<String> instanceIds) |
InstallMonitoringAgentRequest |
setRegionId(String regionId) |
@NameInMap(value="Force") public Boolean force
Specifies whether to install the CloudMonitor agent. Valid values:
* true (default value): yes
* false: no
@NameInMap(value="InstallCommand") public String installCommand
Specifies whether to install the CloudMonitor agent on all ECS instances that belong to the current Alibaba Cloud account. Valid values:
* `onlyInstallNotHasAgent`: installs the latest version of the CloudMonitor agent only on ECS instances on which the agent is not installed.
* `onlyUpgradeAgent`: upgrades the CloudMonitor agent to the latest version only for ECS instances on which an earlier version of the agent is installed.
* `installAndUpgrade`: installs the latest version of the CloudMonitor agent on ECS instances on which the agent is not installed, and upgrades the CloudMonitor agent to the latest version for ECS instances on which an earlier version of the agent is installed.
> If you set the InstallCommand parameter, the `InstanceIds` parameter does not take effect.
@NameInMap(value="RegionId") public String regionId
public static InstallMonitoringAgentRequest build(Map<String,?> map) throws Exception
Exceptionpublic InstallMonitoringAgentRequest setForce(Boolean force)
public Boolean getForce()
public InstallMonitoringAgentRequest setInstallCommand(String installCommand)
public String getInstallCommand()
public InstallMonitoringAgentRequest setInstanceIds(List<String> instanceIds)
public InstallMonitoringAgentRequest setRegionId(String regionId)
public String getRegionId()
Copyright © 2024. All rights reserved.