taler-docs

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

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


      1 .. http:get:: /monitoring/emergency-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   :query limit: A signed integer, indicating how many elements relative to the offset query parameter should be returned. The default value is -20.
     10   :query offset: An unsigned integer, indicating from which row onward to return elements. The default value is INT_MAX.
     11   :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.
     12 
     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:`EmergencyByCount` objects.
     20 
     21   **Details:**
     22 
     23   .. ts:def:: EmergencyByCount
     24 
     25     interface EmergencyByCount {
     26 
     27       // Row ID of the fee in the exchange database.
     28       row_id : Integer;
     29 
     30       // Hash of the public denomination key to which the
     31       // emergency applies.
     32       denompub_h : HashCode;
     33 
     34       // Number of coins the exchange officially issued of this
     35       // denomination.
     36       num_issued : Integer;
     37 
     38       // Number of coins that were redeemed.
     39       num_known : Integer;
     40 
     41       // What is the total value of all coins of this denomination that
     42       // were put into circulation (and thus the maximum loss the
     43       // exchange may experience due to this emergency).
     44       risk : Amount;
     45 
     46       // When did the exchange start issuing coins in this the denomination.
     47       start : Timestamp;
     48 
     49       // When does the deposit period end for coins of this denomination.
     50       deposit_end : Timestamp;
     51 
     52       // What is the value of an individual coin of this denomination.
     53       value : Amount;
     54 
     55       // True if this diagnostic was suppressed.
     56       suppressed : boolean;
     57 
     58     }
     59 
     60   .. note::
     61 
     62     This endpoint is still experimental. The endpoint will be further developed as needed.