leohickstein
6/19/2017 - 1:15 PM

sense pesquisar sku e loja q chegaram GPA na API MRS

sense pesquisar sku e loja q chegaram GPA na API MRS

POST http://11.0.2.36:9200/gateway/http-logger/_search
{
   "query": {
      "bool": {
         "must_not": [
            {
                "match_phrase": {
                    "response_body": "Key not found"
                }
            }
         ],
         "must": [
            {
                "match": {
                    "service_path": "skus"
                }
            },
            {
                 "match_phrase": {
                     "request_body": "\"store_id\":\"1364\""
                 }
            },
            {
                 "match_phrase": {
                     "request_body": "\"sku\":\"1120886\""
                 }
            },
            {
               "range": {
                  "time": {
                     "gte": "2017-05-15T00:00:00.00000000Z",
                     "lte": "2017-06-17T07:59:59.99999999Z"
                  }
               }
            }
         ]
      }
   },
   "sort": [
      {
         "time": {
            "order": "desc"
         }
      }
   ]
}