External Attribute
External (link to external data file) — attribute of any object in the structure of the external data source, representing a link to the file in JSON format, containing the relevant data, structure of which must match the structure of the relevant object. Each object in the data structure of the external file «external» may include attributes Priority Attribute and External.
If the selected object will contain an attribute External, then the software will load the data from the relevant address and select one of the elements of the object, according to set priorities.
Loading data from an external file is restricted to no more than three (3) times within a single task performance.
Example:
Suppose that the structure of the external data source looks like:
{"Items":[ { "Domains":[ { "External":"http://domain.com/list.txt", "Priority":1 } ] } ]}
If an object has an attribute External, then while performing the task Domain attribute is ignored, and the domain will be selected from an external file:
http://domain.com/list.txt
Suppose that the structure of the external file looks like:
[ { "Domain":"mysite.ru", "Priority":1 }, { "External":"http://domain.com/list2.txt", "Priority":1 } ]
Based on the structure can be selected domain mysite.ru from the first element in the array or the domain from
http://domain.com/list2.txt