Skip to content

Commit 2372e0b

Browse files
committed
remove examples of dataset field statistics
1 parent 087f164 commit 2372e0b

File tree

1 file changed

+0
-89
lines changed
  • sources/platform/actors/development/actor_definition/dataset_schema

1 file changed

+0
-89
lines changed

sources/platform/actors/development/actor_definition/dataset_schema/validation.md

Lines changed: 0 additions & 89 deletions
Original file line numberDiff line numberDiff line change
@@ -221,92 +221,3 @@ The measured statistics are following:
221221
Currently, you cannot view these statistics. We will add API endpoint soon. But you can already use them in monitoring.
222222
223223
:::
224-
225-
## Examples
226-
227-
For this schema:
228-
229-
```json
230-
{
231-
"$schema": "http://json-schema.org/draft-07/schema#",
232-
"type": "object",
233-
"properties": {
234-
"name": {
235-
"type": "string"
236-
},
237-
"description": {
238-
"type": "string"
239-
},
240-
"dimensions": {
241-
"type": "object",
242-
"nullable": true,
243-
"properties": {
244-
"width": {
245-
"type": "number"
246-
},
247-
"height": {
248-
"type": "number"
249-
}
250-
},
251-
"required": ["width", "height"]
252-
},
253-
"price": {
254-
"type": ["string", "number"]
255-
}
256-
},
257-
"required": ["name", "price"]
258-
}
259-
```
260-
261-
The stored statistics and fields in the database look like this:
262-
263-
```json
264-
{
265-
"_id" : "1lVGVBkWIhSYPY1dD",
266-
"fields" : [
267-
"name",
268-
"description",
269-
"dimensions",
270-
"dimensions/width",
271-
"dimensions/height",
272-
"price"
273-
],
274-
"stats": {
275-
"description": {
276-
"emptyCount": 105,
277-
"max": 19,
278-
"min": 19
279-
},
280-
"dimensions": {
281-
"emptyCount": 144,
282-
"max": 2,
283-
"min": 2,
284-
"nullCount": 86
285-
},
286-
"dimensions/height": {
287-
"emptyCount": 230,
288-
"max": 992,
289-
"min": 18
290-
},
291-
"dimensions/width": {
292-
"emptyCount": 230,
293-
"max": 977,
294-
"min": 4
295-
},
296-
"name": {
297-
"max": 13,
298-
"min": 11
299-
},
300-
"price": {
301-
"max": 999,
302-
"min": 1
303-
}
304-
}
305-
}
306-
```
307-
308-
:::note
309-
310-
If you want to see for yourself, check `datasetStatistics` collection. The ids correspond to the ids of datasets.
311-
312-
:::

0 commit comments

Comments
 (0)