get-monitoring-early-aggregation.rst (1730B)
1 .. http:get:: /monitoring/early-aggregation 2 3 Get a list of early aggregations. 4 @since protocol **v2**. 5 6 The following query parameters are optional, and can be used to customise the response: 7 8 **Request:** 9 10 :query limit: A signed integer, indicating how many elements relative to the offset query parameter should be returned. The default value is -20. 11 :query offset: An unsigned integer, indicating from which row onward to return elements. The default value is INT_MAX. 12 :query return_suppressed: A boolean. If true, returns all eligible rows, otherwise only returns eligible rows that are not suppressed. The default value is false. 13 14 With the default settings, the endpoint returns at most the 20 latest elements that are not suppressed. 15 16 **Response:** 17 18 :http:statuscode:`200 OK`: 19 The auditor responds with a top level array of :ts:type:`GetEarlyAggregationResponse` objects. 20 21 **Details:** 22 23 .. ts:def:: GetEarlyAggregationResponse 24 25 interface GetEarlyAggregationResponse { 26 27 // Array of aggregations lacking a justification. 28 early_aggregations: EarlyAggregationEntry[]; 29 30 } 31 32 .. ts:def:: EarlyAggregationEntry 33 34 interface EarlyAggregationEntry { 35 36 // Unique row identifier in the auditor table 37 row_id : Integer; 38 39 // Row identifier in the exchange's batch deposit table 40 batch_deposit_serial_id : Integer; 41 42 // Row identifier in the exchange's tracking table 43 tracking_serial_id : Integer; 44 45 // Amount that was aggregated early. 46 balance : Amount; 47 48 // True if this diagnostic was suppressed. 49 suppressed : boolean; 50 51 } 52 53 .. note:: 54 55 This endpoint is still experimental. The endpoint will be further developed as needed.