Skip to content

Commit

Permalink
add new filed in result field
Browse files Browse the repository at this point in the history
  • Loading branch information
ashay-maheshwari committed Feb 12, 2017
1 parent e1bb32f commit c627eb3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/runtime/rest/api.org
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ def get_total_usage():
stats_response = json.loads(req.content)

total_analytics = {}
total_analytics = elk_response["count"] + stats_response["usage"]
total_analytics["description"] = "Total analytics = Usage(stats.vlabs.ac.in/analytics/) + Usage(Elasticsearch Server)"
total_analytics["total_usage"] = elk_response["count"] + stats_response["usage"]
return json.dumps(total_analytics)

except:
Expand Down

0 comments on commit c627eb3

Please sign in to comment.