Updated on 2023-08-11 GMT+08:00

APM.AutoscalerCondition

Property Description

Table 1 Property description

Property

Required

Type

Description

evaluationPeriods

Yes

integer

Number of measurement periods of a performance condition metric (that is, the scaling action is triggered when the number of consecutive periods reaches the threshold)

Value Description: Supports an integer ranging from 1 to 5.

Value Constraint: Only 1, 2, 3, 4, and 5 are supported.

Suggestion: Set the value based on specifications and requirements.

metricUnit

Yes

string

Unit of the performance condition metric

Value Description: Supports the unit of Percent only.

Value Constraint: Currently, only Percent is supported.

Suggestion: Use the default value.

period

Yes

integer

Measurement period of a performance condition metric

Value Description: Supports the following specifications: 60, 300, 900, and 3600 (unit: s).

Value Constraint: Currently, only the following specifications are supported: 60, 300, 900, and 3600.

Suggestion: Use the default value.

metricOperation

Yes

string

Comparison rule of performance condition metrics (">" or " <")

Value Description: Specifies the scaling triggering condition, that is, whether the CPU or memory usage is greater than or smaller than the performance metric.

Value Constraint: The value can be angle brackets (>) and (<).

Suggestion: Set the value based on requirements.

metricThreshold

Yes

float

Threshold for performance condition metric comparison

Value Description: Used for measured performance metric comparison. Scaling is triggered based on the comparison results.

Value Constraint: The value must be an integer ranging from 0 to 100 (unit: %).

Suggestion: Set the value based on specifications and requirements.

metricNamespace

Yes

string

Namespace to which a performance condition belongs

Value Description: Fixed to be PAAS.CONTAINER.

Value Constraint: Currently, only PAAS.CONTAINER is supported.

Suggestion: Use the default value.

statistic

Yes

string

Measurement method of a performance condition metric (currently, only the average value can be measured)

Value Description: Indicates the performance data measurement method. Currently, only the average value can be measured.

Value Constraint: Currently, only average is supported.

Suggestion: Use the default value.

metricName

Yes

string

Performance condition name

Value Description: Supports cpuUsage and memUsage only, indicating the CPU usage and memory usage respectively.

Value Constraint: Currently, only ALARM is supported.

Suggestion: Use the default value.