Skip to content

MonitoringAgentProps

Properties for defining a MonitoringAgent.

See https://www.alibabacloud.com/help/ros/developer-reference/aliyun-cms-monitoringagent

Initializer

import com.aliyun.ros.cdk.cms.MonitoringAgentProps;
MonitoringAgentProps.builder()
//  .force(java.lang.Boolean)
//  .force(IResolvable)
//  .installCommand(java.lang.String)
//  .installCommand(IResolvable)
//  .instanceIds(java.util.List<java.lang.Object>)
//  .instanceIds(IResolvable)
    .build();

Properties

Name Type Description
force java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable Property force: Specifies whether to install the CloudMonitor agent.
installCommand java.lang.String OR com.aliyun.ros.cdk.core.IResolvable Property installCommand: Specifies whether to install the CloudMonitor agent on all ECS instances that belong to the current Alibaba Cloud account.
instanceIds java.util.List OR com.aliyun.ros.cdk.core.IResolvable Property instanceIds: Alibaba Cloud host ID.

forceOptional

public java.lang.Object getForce();
  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property force: Specifies whether to install the CloudMonitor agent.

Valid values: true (default value): yes false: no


installCommandOptional

public java.lang.Object getInstallCommand();
  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property 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. Note If you set the InstallCommand parameter, the InstanceIds parameter does not take effect.


instanceIdsOptional

public java.lang.Object getInstanceIds();
  • Type: java.util.List OR com.aliyun.ros.cdk.core.IResolvable

Property instanceIds: Alibaba Cloud host ID.

The range of n: 1 ~ 10. Explain that InstallCommand and InstanceIds must be selected one by one.