aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS')
-rw-r--r--vnfs/DAaaS/lib/promql_api/prom_ql_api.py2
-rw-r--r--vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py18
2 files changed, 10 insertions, 10 deletions
diff --git a/vnfs/DAaaS/lib/promql_api/prom_ql_api.py b/vnfs/DAaaS/lib/promql_api/prom_ql_api.py
index 2ee273a0..8ebec6be 100644
--- a/vnfs/DAaaS/lib/promql_api/prom_ql_api.py
+++ b/vnfs/DAaaS/lib/promql_api/prom_ql_api.py
@@ -154,7 +154,7 @@ def query_range(map_of_parameters):
LOG.error("::::ERROR:::: {}".format(response.json()['error']))
print(f'Check logs..HTTP error occurred: {http_err}')
except Exception as err:
- print(f'Check logs..Other error occurred: {err}')
+ print(f'Check logs..Other error occurred: {err}')
else:
if response.json()['status'] == "error":
LOG.error("::::ERROR OCCURED!::::")
diff --git a/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py b/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py
index 844189bd..80149636 100644
--- a/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py
+++ b/vnfs/DAaaS/sample-apps/m3db_promql/build/sample_promql_query.py
@@ -29,20 +29,20 @@ MAP_OF_PARAMETERS = {'query': 'up', 'start': '2019-06-19T20:10:30.781Z', 'end':
#MAP_OF_PARAMETERS = {'query': 'up', 'start': '2019-06-19T20:10:30.781Z', 'end': '2019-06-19T20:10:45.781Z', 'step': '15s', 'timeout':'600s'}
def demo_query():
- list_of_result_sets = query(QUERY_STRING)
- if list_of_result_sets:
- for each_result in list_of_result_sets:
- pprint.pprint(each_result)
+ list_of_result_sets = query(QUERY_STRING)
+ if list_of_result_sets:
+ for each_result in list_of_result_sets:
+ pprint.pprint(each_result)
def demo_query_range():
- list_of_result_sets = query_range(MAP_OF_PARAMETERS)
- pprint.pprint(list_of_result_sets)
+ list_of_result_sets = query_range(MAP_OF_PARAMETERS)
+ pprint.pprint(list_of_result_sets)
def main():
- demo_query()
- demo_query_range()
+ demo_query()
+ demo_query_range()
if __name__ == "__main__":
- main()
+ main()