swagger-stats
Advanced tools
Comparing version 0.95.1 to 0.95.2
@@ -56,2 +56,8 @@ /** | ||
this.elasticURL = swsOptions[swsUtil.supportedOptions.elasticsearch]; | ||
if (!this.elasticURL) { | ||
debug('Elasticsearch url is invalid'); | ||
return; | ||
} | ||
this.elasticURLBulk = this.elasticURL +'/_bulk'; | ||
@@ -158,3 +164,3 @@ | ||
} | ||
if (('statusCode' in response) && (response.statusCode !== 200)) { | ||
if (response && ('statusCode' in response) && (response.statusCode !== 200)) { | ||
debug('Indexing Error: %d %s',response.statusCode, response.message); | ||
@@ -161,0 +167,0 @@ } |
{ | ||
"name": "swagger-stats", | ||
"version": "0.95.1", | ||
"version": "0.95.2", | ||
"description": "API Telemetry and APM. Trace API calls and Monitor API performance, health and usage statistics in Node.js Microservices, based on express routes and Swagger (Open API) specification", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
{ | ||
"template": "api-*", | ||
"settings": { | ||
"index.refresh_interval": "1s", | ||
"analysis": { | ||
@@ -14,3 +15,3 @@ "analyzer": { | ||
"version": 103, | ||
"version": 104, | ||
"mappings": { | ||
@@ -17,0 +18,0 @@ |
12952690
437
21905