-
Notifications
You must be signed in to change notification settings - Fork 80
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
use /v2/datasets/{datasetId}/statistics approach
- Loading branch information
Showing
7 changed files
with
69 additions
and
65 deletions.
There are no files selected for viewing
10 changes: 0 additions & 10 deletions
10
apify-api/openapi/components/schemas/datasets/GetDatasetFieldStatisticsResponse.yaml
This file was deleted.
Oops, something went wrong.
15 changes: 15 additions & 0 deletions
15
apify-api/openapi/components/schemas/datasets/GetDatasetStatisticsResponse.yaml
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,15 @@ | ||
title: GetDatasetStatisticsResponse | ||
required: | ||
- data | ||
type: object | ||
properties: | ||
data: | ||
type: object | ||
properties: | ||
fieldStatistics: | ||
type: object | ||
additionalProperties: | ||
$ref: ./DatasetFieldStatistics.yaml | ||
description: 'When you configure the dataset [fields schema](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation), we measure the statistics such as `min`, `max`, `nullCount` and `emptyCount` for each field. | ||
This property provides statistics for each field from dataset fields schema. | ||
<br/></br>See dataset field statistics [documentation](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation#dataset-field-statistics) 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
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
50 changes: 0 additions & 50 deletions
50
apify-api/openapi/paths/datasets/datasets@{datasetId}@field-statistics.yaml
This file was deleted.
Oops, something went wrong.
49 changes: 49 additions & 0 deletions
49
apify-api/openapi/paths/datasets/datasets@{datasetId}@statistics.yaml
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,49 @@ | ||
get: | ||
tags: | ||
- Datasets/Statistics | ||
summary: Get dataset statistics | ||
description: | | ||
Returns statistics for given dataset. | ||
Currently provides only [field statistics](https://docs.apify.com/platform/actors/development/actor-definition/dataset-schema/validation#dataset-field-statistics). | ||
operationId: dataset_statistics_get | ||
parameters: | ||
- name: datasetId | ||
in: path | ||
description: Dataset ID or `username~dataset-name`. | ||
required: true | ||
style: simple | ||
schema: | ||
type: string | ||
example: WkzbQMuFYuamGv3YF | ||
- name: token | ||
in: query | ||
description: | | ||
API authentication token. It is required only when using the `username~dataset-name` format for `datasetId`. | ||
style: form | ||
explode: true | ||
schema: | ||
type: string | ||
example: soSkq9ekdmfOslopH | ||
responses: | ||
'200': | ||
description: '' | ||
content: | ||
application/json: | ||
schema: | ||
$ref: "../../components/schemas/datasets/GetDatasetStatisticsResponse.yaml" | ||
example: | ||
data: | ||
fieldStatistics: | ||
name: | ||
nullCount: 122 | ||
price: | ||
min: 59 | ||
max: 89 | ||
# TODO: add clients methods | ||
# x-js-parent: DatasetClient | ||
# x-js-name: statistics | ||
# x-js-doc-url: https://docs.apify.com/api/client/js/reference/class/DatasetClient#statistics | ||
# x-py-parent: DatasetClientAsync | ||
# x-py-name: statistics | ||
# x-py-doc-url: https://docs.apify.com/api/client/python/reference/class/DatasetClientAsync#statistics |