From: bryan Date: Tue, 7 Mar 2017 14:32:19 +0000 (-0800) Subject: Update to VES API v3 URL X-Git-Tag: opnfv-6.0.0~170^2 X-Git-Url: https://gerrit.opnfv.org/gerrit/gitweb?a=commitdiff_plain;h=refs%2Fchanges%2F59%2F29959%2F1;p=barometer.git Update to VES API v3 URL JIRA: VES-1 Change-Id: I76679e85cb769b87e5137b8ad2b56930c68b31fb Signed-off-by: Bryan Sullivan --- diff --git a/3rd_party/collectd-ves-plugin/ves_plugin/ves_plugin.py b/3rd_party/collectd-ves-plugin/ves_plugin/ves_plugin.py index a9715ad7..3e300893 100644 --- a/3rd_party/collectd-ves-plugin/ves_plugin/ves_plugin.py +++ b/3rd_party/collectd-ves-plugin/ves_plugin/ves_plugin.py @@ -277,7 +277,7 @@ class VESPlugin(object): def event_send(self, event): """Send event to VES""" - server_url = "http{}://{}:{}/{}eventListener/v1{}".format( + server_url = "http{}://{}:{}/{}eventListener/v3{}".format( 's' if self.__plugin_config['UseHttps'] else '', self.__plugin_config['Domain'], int(self.__plugin_config['Port']), '{}/'.format( '/{}'.format(self.__plugin_config['Path'])) if (len(self.__plugin_config['Path']) > 0) else '',