Updated on 2022-09-19 GMT+08:00

NUMERIC

Round down a field of the numeric type to the nearest integer.

Request Parameters

Table 1 Parameter description

Parameter

Mandatory

Type

Description

algorithm

Yes

String

Algorithm type, for example, NUMERIC

parameters

Yes

For details, see Table 2

Parameters for configuring a data masking algorithm

Table 2 Parameter for configuring a data masking algorithm

Parameter

Mandatory

Type

Description

value

Yes

Double

Value of the numeric field to rounded downed, which can only be an integer or a decimal and must be greater than 0

Example Request

{
    "mask_strategies": [
        {
            "name": "col1",
            "algorithm": " NUMERIC",
            "parameters": {
                "value": 0.05
            }
        }
    ],
    "data": [
        {
            "col1": "test"
        }
    ]
}