diff options
author | Costa Tsaousis <costa@netdata.cloud> | 2023-03-13 23:39:06 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-03-13 23:39:06 +0200 |
commit | cd50bf42367ed49ed12e944d66a445653c6f038c (patch) | |
tree | 381768f311ad42ee9dceb5cbe63fc8969a02f515 /database/contexts | |
parent | 8068c952d8e1812caf348b77f38ae3df1014cc65 (diff) |
/api/v2 part 4 (#14706)
* expose the order of group by
* key renames in json wrapper v2
* added group by context and group by units
* added view_average_values
* fix for view_average_values when percentage is specified
* option group-by-labels is enabling the exposure of all the labels that are used for each of the final grouped dimensions
* when executing group by queries, allocate one dimension data at a time - not all of them
* respect hidden dimensions
* cancel running data query on socket error
* use poll to detect socket errors
* use POLLRDHUP to detect half closed connections
* make sure POLLRDHUP is available
* do not destroy aral-by-size arals
* completed documentation of /api/v2/data.
* moved min, max back to view; updated swagger yaml and json
* default format for /api/v2/data is json2
Diffstat (limited to 'database/contexts')
-rw-r--r-- | database/contexts/rrdcontext.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/database/contexts/rrdcontext.h b/database/contexts/rrdcontext.h index 0261c78227..152422aa79 100644 --- a/database/contexts/rrdcontext.h +++ b/database/contexts/rrdcontext.h @@ -258,6 +258,8 @@ typedef struct query_metric { #define MAX_QUERY_TARGET_ID_LENGTH 255 +typedef bool (*interrupt_callback_t)(void *data); + typedef struct query_target_request { size_t version; @@ -303,6 +305,9 @@ typedef struct query_target_request { RRDR_GROUP_BY_FUNCTION group_by_aggregate_function; usec_t received_ut; + + interrupt_callback_t interrupt_callback; + void *interrupt_callback_data; } QUERY_TARGET_REQUEST; #define GROUP_BY_MAX_LABEL_KEYS 10 |