Skip to content

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.

scopeRequired

  • Type: com.aliyun.ros.cdk.core.Construct

idRequired

  • Type: java.lang.String

enableResourcePropertyConstraintOptional

  • Type: java.lang.Boolean

acceleratorIdRequired

  • 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.


addressRequired

  • Type: java.lang.String OR com.aliyun.ros.cdk.core.IResolvable

Property address: The URL or IP address that you want to probe.


listenerIdRequired

  • 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.


taskNameRequired

  • 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.


detectEnableOptional

  • Type: java.lang.Boolean OR com.aliyun.ros.cdk.core.IResolvable

Property detectEnable: Specifies whether to enable the automatic diagnostics feature.


detectThresholdOptional

  • 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.


detectTimesOptional

  • 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.


optionsJsonOptional

  • 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.


silenceTimeOptional

  • 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.

sessionRequired

  • Type: com.aliyun.ros.cdk.core.ISynthesisSession

The synthesis session.


addCondition

public void addCondition(RosCondition condition)

conditionRequired

  • Type: com.aliyun.ros.cdk.core.RosCondition

addCount

public void addCount(java.lang.Number OR IResolvable count)

countRequired

  • Type: java.lang.Number OR com.aliyun.ros.cdk.core.IResolvable

addDependency

public void addDependency(Resource resource)

resourceRequired

  • Type: com.aliyun.ros.cdk.core.Resource

addResourceDesc

public void addResourceDesc(java.lang.String desc)

descRequired

  • Type: java.lang.String

applyRemovalPolicy

public void applyRemovalPolicy(RemovalPolicy policy)

policyRequired

  • Type: com.aliyun.ros.cdk.core.RemovalPolicy

getAtt

public IResolvable getAtt(java.lang.String name)

nameRequired

  • Type: java.lang.String

setMetadata

public void setMetadata(java.lang.String key, java.lang.Object value)

keyRequired

  • Type: java.lang.String

valueRequired

  • 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.

xRequired

  • 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.

nodeRequired

public ConstructNode getNode();
  • Type: com.aliyun.ros.cdk.core.ConstructNode

The construct tree node associated with this construct.


refRequired

public java.lang.String getRef();
  • Type: java.lang.String

stackRequired

public Stack getStack();
  • Type: com.aliyun.ros.cdk.core.Stack

The stack in which this resource is defined.


resourceOptional

public RosResource getResource();
  • Type: com.aliyun.ros.cdk.core.RosResource

attrTaskIdRequired

public IResolvable getAttrTaskId();
  • Type: com.aliyun.ros.cdk.core.IResolvable

Attribute TaskId: The ID of the origin probing task.