taler-docs

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

get-monitoring-emergency.rst (2009B)


      1 .. http:get:: /monitoring/emergency
      2 
      3   Get a list of emergencies 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:`Emergency` objects. If no elements could be found, an empty array is returned
     20 
     21   **Details:**
     22 
     23   .. ts:def:: Emergency
     24 
     25     interface Emergency {
     26 
     27       // Unique row identifier
     28       row_id : Integer;
     29 
     30       // Hash of denomination public key
     31       denompub_h : HashCode;
     32 
     33       // What is the total value of all coins of this denomination that
     34       // were put into circulation (and thus the maximum loss the
     35       // exchange may experience due to this emergency).
     36       denom_risk : Amount;
     37 
     38       // What is the loss we have experienced so far (that
     39       // is, the amount deposited in excess of the amount
     40       // we issued).
     41       denom_loss : Amount;
     42 
     43       // When did the exchange start issuing coins in this the denomination.
     44       deposit_start : Timestamp;
     45 
     46       // When does the deposit period end for coins of this denomination.
     47       deposit_end : Timestamp;
     48 
     49       // What is the value of an individual coin of this denomination.
     50       value : Amount;
     51 
     52       // True if this diagnostic was suppressed.
     53       suppressed : boolean;
     54 
     55     }
     56 
     57   .. note::
     58 
     59     This endpoint is still experimental. The endpoint will be further developed as needed.