1
0
mirror of https://github.com/oceanprotocol/docs.git synced 2024-07-01 06:02:10 +02:00
This commit is contained in:
alexcos20 2022-02-13 06:56:48 -08:00
parent ae32de2aa3
commit 1cfdae9bd7

View File

@ -375,13 +375,13 @@ Example:
#### Consumer Parameters
Sometimes, you may need some input before consuming a dataset or running an algorithm.
Sometimes, you may need some input before downloading a dataset or running an algorithm.
Examples:
- You want to know the desired sampling interval of data in your dataset, before the user is going to download it. Your dataset URL is `https://example.com/mydata`. So you will define a field called `sampling`, ask the user to enter a value and then this parameter is going to be added to the URL of your dataset as query parameters: `https://example.com/mydata?sampling=10`
- Before running an algorithm, you need to know how many iterations should it perform. You define a field called `iterations`, ask the user to enter a value and this parameter is stored in a specific location in your Computer-to-Data pod for the algorithm to read and use that value.
Object consists of an array , in which each element defines a user required field.
It's an array of elements, each element object defines a field.
An element looks like:
```json