ApplicationMonitor
This class encapsulates and extends the ROS resource type ALIYUN::GA::ApplicationMonitor
, which is used to create an origin probing task.
Initializers
import com.aliyun.ros.cdk.ga.ApplicationMonitor;
ApplicationMonitor.Builder.create(Construct scope, java.lang.String id, java.lang.Boolean enableResourcePropertyConstraint)
.acceleratorId(java.lang.String)
.acceleratorId(IResolvable)
.address(java.lang.String)
.address(IResolvable)
.listenerId(java.lang.String)
.listenerId(IResolvable)
.taskName(java.lang.String)
.taskName(IResolvable)
// .detectEnable(java.lang.Boolean)
// .detectEnable(IResolvable)
// .detectThreshold(java.lang.Number)
// .detectThreshold(IResolvable)
// .detectTimes(java.lang.Number)
// .detectTimes(IResolvable)
// .optionsJson(IResolvable)
// .optionsJson(java.util.Map<java.lang.String, java.lang.Object>)
// .silenceTime(java.lang.Number)
// .silenceTime(IResolvable)
.build();
Name | Type | Description |
---|---|---|
scope |
com.aliyun.ros.cdk.core.Construct |
No description. |
id |
java.lang.String |
No description. |
enableResourcePropertyConstraint |
java.lang.Boolean |
No description. |
acceleratorId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property acceleratorId: The ID of the GA instance on which you want to perform the origin probing task. |
address |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property address: The URL or IP address that you want to probe. |
listenerId |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property listenerId: The ID of the listener on which you want to perform the origin probing task. |
taskName |
java.lang.String OR com.aliyun.ros.cdk.core.IResolvable |
Property taskName: The name of the origin probing task. |
detectEnable |
java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable |
Property detectEnable: Specifies whether to enable the automatic diagnostics feature. |
detectThreshold |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property detectThreshold: The threshold that is used to trigger the automatic diagnostics feature. |
detectTimes |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property detectTimes: The number of times that the threshold must be reached before the automatic diagnostics feature is triggered. |
optionsJson |
com.aliyun.ros.cdk.core.IResolvable OR java.util.Map |
Property optionsJson: The extended options of the listener protocol that is used by the origin probing task. |
silenceTime |
java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable |
Property silenceTime: The silence period of the automatic diagnostics feature. |
scope
Required
- Type: com.aliyun.ros.cdk.core.Construct
id
Required
- Type: java.lang.String
enableResourcePropertyConstraint
Optional
- Type: java.lang.Boolean
acceleratorId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property acceleratorId: The ID of the GA instance on which you want to perform the origin probing task.
address
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property address: The URL or IP address that you want to probe.
listenerId
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property listenerId: The ID of the listener on which you want to perform the origin probing task.
taskName
Required
- Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable
Property taskName: The name of the origin probing task.
The name must be 1 to 128 characters in length and can contain letters, digits, periods (.), underscores (_), and hyphens (-). The name must start with a letter.
detectEnable
Optional
- Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable
Property detectEnable: Specifies whether to enable the automatic diagnostics feature.
detectThreshold
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property detectThreshold: The threshold that is used to trigger the automatic diagnostics feature.
Unit: percentage.Valid values: 0 to 100.The default value is 0, which indicates that the automatic diagnostics feature is not triggered.
detectTimes
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property detectTimes: The number of times that the threshold must be reached before the automatic diagnostics feature is triggered.
Valid values: 1 to 20. Default value: 1.
optionsJson
Optional
- Type: com.aliyun.ros.cdk.core.IResolvable OR java.util.Map
Property optionsJson: The extended options of the listener protocol that is used by the origin probing task.
The options vary based on the listener protocol.
silenceTime
Optional
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
Property silenceTime: The silence period of the automatic diagnostics feature.
This parameter specifies the interval at which the automatic diagnostics feature is triggered. If the availability rate does not return to normal after GA triggers an automatic diagnostic task, GA must wait until the silence period ends before GA can trigger another automatic diagnostic task.If the number of consecutive times that the availability rate drops below the threshold of automatic diagnostics reaches the value of DetectTimes, the automatic diagnostics feature is triggered. The automatic diagnostics feature is not triggered again within the silence period even if the availability rate remains below the threshold. If the availability rate does not return to normal after the silence period ends, the automatic diagnostics feature is triggered again.Unit: seconds. Valid values: 300 to 86400. Default value: 300.
Methods
Name | Description |
---|---|
toString |
Returns a string representation of this construct. |
synthesize |
Allows this construct to emit artifacts into the cloud assembly during synthesis. |
addCondition |
No description. |
addCount |
No description. |
addDependency |
No description. |
addResourceDesc |
No description. |
applyRemovalPolicy |
No description. |
getAtt |
No description. |
setMetadata |
No description. |
toString
public java.lang.String toString()
Returns a string representation of this construct.
synthesize
public void synthesize(ISynthesisSession session)
Allows this construct to emit artifacts into the cloud assembly during synthesis.
This method is usually implemented by framework-level constructs such as Stack
and Asset
as they participate in synthesizing the cloud assembly.
- Type: com.aliyun.ros.cdk.core.ISynthesisSession
The synthesis session.
addCondition
public void addCondition(RosCondition condition)
- Type: com.aliyun.ros.cdk.core.RosCondition
addCount
public void addCount(java.lang.Number OR IResolvable count)
- Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable
addDependency
public void addDependency(Resource resource)
- Type: com.aliyun.ros.cdk.core.Resource
addResourceDesc
public void addResourceDesc(java.lang.String desc)
- Type: java.lang.String
applyRemovalPolicy
public void applyRemovalPolicy(RemovalPolicy policy)
- Type: com.aliyun.ros.cdk.core.RemovalPolicy
getAtt
public IResolvable getAtt(java.lang.String name)
- Type: java.lang.String
setMetadata
public void setMetadata(java.lang.String key, java.lang.Object value)
- Type: java.lang.String
- Type: java.lang.Object
Static Functions
Name | Description |
---|---|
isConstruct |
Return whether the given object is a Construct. |
isConstruct
import com.aliyun.ros.cdk.ga.ApplicationMonitor;
ApplicationMonitor.isConstruct(java.lang.Object x)
Return whether the given object is a Construct.
- Type: java.lang.Object
Properties
Name | Type | Description |
---|---|---|
node |
com.aliyun.ros.cdk.core.ConstructNode |
The construct tree node associated with this construct. |
ref |
java.lang.String |
No description. |
stack |
com.aliyun.ros.cdk.core.Stack |
The stack in which this resource is defined. |
resource |
com.aliyun.ros.cdk.core.RosResource |
No description. |
attrTaskId |
com.aliyun.ros.cdk.core.IResolvable |
Attribute TaskId: The ID of the origin probing task. |
node
Required
public ConstructNode getNode();
- Type: com.aliyun.ros.cdk.core.ConstructNode
The construct tree node associated with this construct.
ref
Required
public java.lang.String getRef();
- Type: java.lang.String
stack
Required
public Stack getStack();
- Type: com.aliyun.ros.cdk.core.Stack
The stack in which this resource is defined.
resource
Optional
public RosResource getResource();
- Type: com.aliyun.ros.cdk.core.RosResource
attrTaskId
Required
public IResolvable getAttrTaskId();
- Type: com.aliyun.ros.cdk.core.IResolvable
Attribute TaskId: The ID of the origin probing task.