-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #183 from quixio/v2-branch
Documentation updates for Quix major changes
- Loading branch information
Showing
305 changed files
with
3,583 additions
and
2,472 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
# Portal API | ||
|
||
The Quix Portal API gives access to the Portal interface allowing you to automate access to data including Users, Workspaces, and Projects. | ||
The Portal API gives access to the Portal interface enabling you to programmatically control projects, environments, applications, and deployments. | ||
|
||
Refer to [Portal API Swagger](https://portal-api.platform.quix.ai/swagger){target=_blank} for more information. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
# Aggregate data by time | ||
|
||
You can downsample and upsample persisted data using the `/parameters/data` endpoint. | ||
|
||
## Before you begin | ||
|
||
If you don’t already have any Stream data in your environment, you can use a Source from the [Code Samples](../../platform/samples/samples.md) to provide suitable data. | ||
|
||
You'll need to obtain a [Personal Access Token](authenticate.md) to authenticate each request. | ||
|
||
## Aggregating and interpolating | ||
|
||
The JSON payload can include a `groupByTime` property, an object with the following members: | ||
|
||
* `timeBucketDuration` - The duration, in nanoseconds, for one aggregated value. | ||
* `interpolationType` - Specify how additional values should be generated when interpolating. | ||
|
||
For example, imagine you have a set of speed data, with values recorded at 1-second intervals. You can group such data into 2-second intervals, aggregated by mean average, with the following: | ||
|
||
```json | ||
{ | ||
"groupByTime": { | ||
"timeBucketDuration": 2000000000, | ||
}, | ||
"numericParameters": [{ | ||
"parameterName": "Speed", | ||
"aggregationType": "Mean" | ||
}] | ||
} | ||
``` | ||
|
||
You can specify an `interpolationType` to define how any missing values are generated. `Linear` will provide a value in linear proportion, while `Previous` will repeat the value before the one that was missing: | ||
|
||
```json | ||
{ | ||
"from": 1612191286000000000, | ||
"to": 1612191295000000000, | ||
"numericParameters": [{ | ||
"parameterName": "Speed", | ||
"aggregationType": "First" | ||
}], | ||
"groupByTime": { | ||
"timeBucketDuration": 2000000000, | ||
"interpolationType": "None" | ||
}, | ||
"streamIds": [ "302b1de3-2338-43cb-8148-3f0d6e8c0b8a" ] | ||
} | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.