taler-docs

Documentation for GNU Taler components, APIs and protocols
Log | Files | Refs | README | LICENSE

get-monitoring-reserve-not-closed-inconsistency.rst (2432B)


      1 .. http:get:: /monitoring/reserve-not-closed-inconsistencies
      2 
      3   Get a list of reserve not closed inconsistencies stored by the auditor.
      4 
      5   The following query parameters are optional, and can be used to customise the response:
      6 
      7   **Request:**
      8 
      9   Pagination follows the :ref:`row-id-pagination` convention.  The non-zero signed
     10   ``limit`` defaults to ``-20``.
     11 
     12   :query limit: Optional non-zero signed number of records; negative values request descending row IDs.
     13   :query offset: Optional :ts:type:`SafeUint64` row ID from which to begin.
     14   :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.
     15 
     16   With the default settings, the endpoint returns at most the 20 latest elements that are not suppressed.
     17 
     18   **Response:**
     19 
     20   :http:statuscode:`200 OK`:
     21     The auditor responds with a :ts:type:`ReserveNotClosedInconsistencyResponse` object. Its ``records`` field is empty if no matching elements were found.
     22   :http:statuscode:`400 Bad request`:
     23     The request is malformed. Returned with an
     24     ``TALER_EC_GENERIC_PARAMETER_MALFORMED`` error code.
     25   :http:statuscode:`401 Unauthorized`:
     26     The request lacks valid authentication credentials.
     27     The response comes with a ``TALER_EC_AUDITOR_GENERIC_UNAUTHORIZED``.
     28   :http:statuscode:`500 Internal Server Error`:
     29     The server experienced an internal error.
     30     The response comes with a ``TALER_EC_GENERIC_DB_SETUP_FAILED``,
     31     ``TALER_EC_GENERIC_DB_FETCH_FAILED``, or
     32     ``TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE`` error code.
     33 
     34 
     35 
     36   **Details:**
     37 
     38   .. ts:def:: ReserveNotClosedInconsistencyResponse
     39 
     40     interface ReserveNotClosedInconsistencyResponse {
     41 
     42       records: ReserveNotClosedInconsistency[];
     43 
     44     }
     45 
     46   .. ts:def:: ReserveNotClosedInconsistency
     47 
     48     interface ReserveNotClosedInconsistency {
     49 
     50       // Unique row identifier
     51       row_id : SafeUint64;
     52 
     53       // Public key of the reserve
     54       reserve_pub : EddsaPublicKey;
     55 
     56       // Amount still in the reserve at the time of expiration
     57       balance : Amount;
     58 
     59       // Date the reserve expired
     60       expiration_time : Timestamp;
     61 
     62       // Human readable string describing the problem
     63       diagnostic : string;
     64 
     65       // True if this diagnostic was suppressed.
     66       suppressed : boolean;
     67 
     68     }
     69 
     70   .. note::
     71 
     72     This endpoint is still experimental. The endpoint will be further developed as needed.