All Products
Search
Document Center

E-MapReduce:TriggerCondition

Last Updated:Oct 09, 2026

Parameter

Type

Description

Example

object

The trigger condition.

MetricName

string

The metric name. This parameter is required and cannot be an empty character string. You can view metric names in Add elastic scaling rules.

yarn_resourcemanager_queue_PendingVCores

ComparisonOperator

string

The comparison operator. This parameter is required. Valid values:

  • EQ: equal to.

  • NE: not equal to.

  • GT: greater than.

  • LT: less than.

  • GE: greater than or equal to.

  • LE: less than or equal to.

LT

Statistics

string

The statistic name. This parameter is required. Valid values:

  • MAX: maximum value.

  • MIN: minimum value.

  • AVG: average value.

AVG

Tags

array

The list of metric partition tags.

For metrics with queue

Default value:

Tag key: queue_name. Value: root.

When you use metrics with a queue, you can set the queue_name tag to specify the queue. Ensure that you enter the full queue hierarchy name.

Example

Metric name: yarn_resourcemanager_queue_AvailableVCoresPercentage

Tag: queue_name: root.default.a

For metrics with partition

Default value: Tag key: none. Value: none.

Note

For metrics with a partition, you must set the partition_name tag and explicitly specify the partition name.

Example

Metric name: yarn_cluster_availMemoryMBByPartition

Tag: partition_name: DEFAULT_PARTITION

Tag

The tag.

Threshold

number

The trigger threshold. This parameter is required.

12.5