taler-docs

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

get-monitoring-emergency-by-count.rst (2867B)


      1 .. http:get:: /monitoring/emergencies-by-count
      2 
      3   Get a list of emergencies by count 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 
     17   With the default settings, the endpoint returns at most the 20 latest elements that are not suppressed.
     18 
     19   **Response:**
     20 
     21   :http:statuscode:`200 OK`:
     22     The auditor responds with a :ts:type:`EmergencyByCountResponse` object. Its ``records`` field is empty if no matching elements were found.
     23   :http:statuscode:`400 Bad request`:
     24     The request is malformed. Returned with an
     25     ``TALER_EC_GENERIC_PARAMETER_MALFORMED`` error code.
     26   :http:statuscode:`401 Unauthorized`:
     27     The request lacks valid authentication credentials.
     28     The response comes with a ``TALER_EC_AUDITOR_GENERIC_UNAUTHORIZED``.
     29   :http:statuscode:`500 Internal Server Error`:
     30     The server experienced an internal error.
     31     The response comes with a ``TALER_EC_GENERIC_DB_SETUP_FAILED``,
     32     ``TALER_EC_GENERIC_DB_FETCH_FAILED``, or
     33     ``TALER_EC_GENERIC_INTERNAL_INVARIANT_FAILURE`` error code.
     34 
     35   **Details:**
     36 
     37   .. ts:def:: EmergencyByCountResponse
     38 
     39     interface EmergencyByCountResponse {
     40 
     41       records: EmergencyByCount[];
     42 
     43     }
     44 
     45   .. ts:def:: EmergencyByCount
     46 
     47     interface EmergencyByCount {
     48 
     49       // Row ID of the fee in the exchange database.
     50       row_id : SafeUint64;
     51 
     52       // Hash of the public denomination key to which the
     53       // emergency applies.
     54       h_denom_pub : HashCode;
     55 
     56       // Number of coins the exchange officially issued of this
     57       // denomination.
     58       num_issued : SafeUint64;
     59 
     60       // Number of coins that were redeemed.
     61       num_known : SafeUint64;
     62 
     63       // What is the total value of all coins of this denomination that
     64       // were put into circulation (and thus the maximum loss the
     65       // exchange may experience due to this emergency).
     66       risk : Amount;
     67 
     68       // When did the exchange start issuing coins in this the denomination.
     69       start : Timestamp;
     70 
     71       // When does the deposit period end for coins of this denomination.
     72       deposit_end : Timestamp;
     73 
     74       // What is the value of an individual coin of this denomination.
     75       value : Amount;
     76 
     77       // True if this diagnostic was suppressed.
     78       suppressed : boolean;
     79 
     80     }
     81 
     82   .. note::
     83 
     84     This endpoint is still experimental. The endpoint will be further developed as needed.