riemann-elasticsearch 0.2.0 → 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/riemann-elasticsearch +3 -3
- metadata +1 -1
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 8e09b563a9b759fe2ba680691ae0ad6e4bad3c82
         | 
| 4 | 
            +
              data.tar.gz: 42e321f853dd683ba9147de0370bd5789353bb64
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: be5aea8ac6ba286b9e4b36ed39accf22f1a0d28b0491cb5aa0c4bc514c0c116411d285a8a264ad18b589f45edbc77d137e8bb2daf33c77999f8964e83dc3c60c
         | 
| 7 | 
            +
              data.tar.gz: d6fb756f0b5098a205c8cdc33fc1921b1b3b73bcb8f58897a803a7884a5f01698bc1ab178b5febe2852efd56715c552579db1241b4306293a3b02802716877d5
         | 
    
        data/bin/riemann-elasticsearch
    CHANGED
    
    | @@ -72,7 +72,7 @@ class Riemann::Tools::Elasticsearch | |
| 72 72 | 
             
                uri = URI(indices_url)
         | 
| 73 73 | 
             
                response = safe_get(uri)
         | 
| 74 74 |  | 
| 75 | 
            -
                return if  | 
| 75 | 
            +
                return if is_bad?(response, uri)
         | 
| 76 76 |  | 
| 77 77 | 
             
                # Assuming that a 200 will give json
         | 
| 78 78 | 
             
                json = JSON.parse(response.body)
         | 
| @@ -93,7 +93,7 @@ class Riemann::Tools::Elasticsearch | |
| 93 93 | 
             
                uri = URI(search_url)
         | 
| 94 94 | 
             
                response = safe_get(uri)
         | 
| 95 95 |  | 
| 96 | 
            -
                return if  | 
| 96 | 
            +
                return if is_bad?(response, uri)
         | 
| 97 97 |  | 
| 98 98 | 
             
                es_search_index = options[:es_search_index]
         | 
| 99 99 | 
             
                # Assuming that a 200 will give json
         | 
| @@ -120,7 +120,7 @@ class Riemann::Tools::Elasticsearch | |
| 120 120 | 
             
                uri = URI(health_url)
         | 
| 121 121 | 
             
                response = safe_get(uri)
         | 
| 122 122 |  | 
| 123 | 
            -
                return if  | 
| 123 | 
            +
                return if is_bad?(response, uri)
         | 
| 124 124 |  | 
| 125 125 | 
             
                # Assuming that a 200 will give json
         | 
| 126 126 | 
             
                json = JSON.parse(response.body)
         |