anchor.diff: -# rhq-metrics-rest
  -
  -This is a prototype for providing REST endpoints for rhq-metrics using Vert.x. This project depends on rhq-metrics-core and it generates a Vert.x module. 
  -
  -## Module Configuration
  +#Overview
  +
  +This is a prototype for providing REST endpoints for rhq-metrics using Vert.x. This project depends on rhq-metrics-core and it generates a Vert.x module. The module configuration and API described below are likely to change, but I will do my best to keep the docs up to date.
  +
  +# Module Configuration
   The module supports the following configuration,
   
       {
  
positive.code: }
  ```   
  
  The HTTP response uses chunked encoding, with each chunk containing the result set for one of the specified ids.
  
  ### addRawMetricsForId
  
  **Description**
  
  Stores raw metrics for a particular id.
  
  **Method**
  
  POST
  
  **URI**
  
  /rhq-metrics/:id/data
  
  **Parameters**
  
  None
  
  **Example**
  
  POST http://localhost:7474/rhq-metrics/100/data
  
  ```
  // request body
  
negative.code:       ]
      }
  
  ##findMetricsForIds
  
  ####Description
  
  Retrives raw metrics for a variable number of ids.
  
  ####Method
  
  GET
  
  ####URI
  
  /rhq-metrics/data
  
  ####Parameters
  
  `start`
  
  **Description:** The start date inclusive specified as a timestamp
  
  
  **Type:** long
  
  **Required:** no
  
  **Default:** 8 hours ago
  
  `end`
  
  **Description:** The end data exclusive specified as a timestamp
  
  **Type:** long
  
  **Required:** no
  
  **Default:** now
  
  `id`
  
  **Description:** A list of ids for which to retrieve data
  
  **Type:** string
  
  **Required:** yes
  
  **Default:** N/A
  
  ####Example
  
  `GET http://7474/rhq-metrics/data?id=100&id=200&id300`
  
  ```
  // The HTTP response uses chunked encoding, with each chunk containing 
  // the result set for one of the specified ids.
  
  // first chunk
  {
    "bucket": "raw",
  