dtree_counts¶
Delayed evaluations of item counts for decision tree points
Synopsis¶
dtree_counts
Arguments:
ds: dataset name
tm: optional time delay control option, in seconds, float as string
rq_id: ID of request series
dtree: optional name of applying decision tree
code: optional code of applying decision tree
- points: list of indexes of required points
list of integers in JSON string representation
Return value:
{
dictionary"rq-id": ID of request series, string"point-counts": point counts of items}
Description¶
The request supports mechanism of delayed evaluation of decision tree point counters in case when the main request dtree_set has returned point counts in incomplete state.
rq_id argument should be get from result of initiation request.
Arguments dtree, code, no should be the same as in initiation request dtree_set.
points argument is list of point indexes that are required to be evaluated. Ordering of indexes in list are responsible for priorities of evaluation: first entry has highest priority.
Returning property point-count is list of length equal to count of all points in tree, and it might contain entries for points not requested by points argument. On another side, the request can return no new data at all, if evaluation process on server continues too long. However, after numerous requests all count descriptors will be evaluated in a final time. And the same input argument rq_id is important for this mechanism.