Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 519 Bytes

set-metric.md

File metadata and controls

28 lines (21 loc) · 519 Bytes

Set value of a metric type attribute

Task: set value of a metric attribute gross_weight

Rules

actions:
    -
        type: set
        field: gross_weight
        locale: null
        scope: null
        value:
            amount: '2.5'
            unit: KILOGRAM

Result

Field: gross_weight

Before applying actions:

amount: 200
unit: GRAM

After applying actions:

amount: 2.5
unit: KILOGRAM