)]}'
{"watcher/common/ceilometer_helper.py":[{"author":{"_account_id":11235,"name":"Edwin Zhai","email":"edwin.zhai@intel.com","username":"gzhai"},"change_message_id":"09ce4662331eade0173b1149d35aeee6f9ea04c4","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            if isinstance(start_time, datetime.datetime):"},{"line_number":71,"context_line":"                start_timestamp \u003d start_time.isoformat()"},{"line_number":72,"context_line":"            query.append({\"field\": \"timestamp\", \"op\": \"ge\","},{"line_number":73,"context_line":"                          \"value\": start_timestamp})"},{"line_number":74,"context_line":"        if end_time:"},{"line_number":75,"context_line":"            end_timestamp \u003d end_time"},{"line_number":76,"context_line":"            if isinstance(end_time, datetime.datetime):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ac371cc_9e102a5b","line":73,"updated":"2016-08-17 06:13:57.000000000","message":"How about \"start_timestamp \u003d xxx  if ... else yyy\"","commit_id":"54b85f297d0829ff3791fa85eb6025b364b6883a"},{"author":{"_account_id":18971,"name":"Vincent Françoise","email":"Vincent.FRANCOISE@b-com.com","username":"v-francoise"},"change_message_id":"28b40745c7c449a8c0c20d35337e0c56597a6a12","unresolved":false,"context_lines":[{"line_number":70,"context_line":"            if isinstance(start_time, datetime.datetime):"},{"line_number":71,"context_line":"                start_timestamp \u003d start_time.isoformat()"},{"line_number":72,"context_line":"            query.append({\"field\": \"timestamp\", \"op\": \"ge\","},{"line_number":73,"context_line":"                          \"value\": start_timestamp})"},{"line_number":74,"context_line":"        if end_time:"},{"line_number":75,"context_line":"            end_timestamp \u003d end_time"},{"line_number":76,"context_line":"            if isinstance(end_time, datetime.datetime):"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ac371cc_bb0d29ea","line":73,"in_reply_to":"3ac371cc_9e102a5b","updated":"2016-08-18 08:21:36.000000000","message":"Inline \u0027if\u0027 doesn\u0027t fit in one line so I thought it was clearer to write it like that.","commit_id":"54b85f297d0829ff3791fa85eb6025b364b6883a"}],"watcher/common/monasca_helper.py":[{"author":{"_account_id":20033,"name":"Artur Basiak","email":"artur.basiak@ts.fujitsu.com","username":"abasiak"},"change_message_id":"075ccccf593b1623b9d60aa7a1cfc3c202daa794","unresolved":false,"context_lines":[{"line_number":30,"context_line":"        self.osc \u003d osc if osc else clients.OpenStackClients()"},{"line_number":31,"context_line":"        self.monasca \u003d self.osc.monasca()"},{"line_number":32,"context_line":""},{"line_number":33,"context_line":"    def query_retry(self, f, *args, **kargs):"},{"line_number":34,"context_line":"        try:"},{"line_number":35,"context_line":"            return f(*args, **kargs)"},{"line_number":36,"context_line":"        except exc.HTTPUnauthorized:"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba5201f7_58b006de","line":33,"range":{"start_line":33,"start_character":38,"end_line":33,"end_character":43},"updated":"2017-01-02 13:12:58.000000000","message":"Shouldn\u0027t be kwargs??","commit_id":"a1996278d14ed55b8e6f1ae0541e521388c06df5"}],"watcher/decision_engine/cluster/history/monasca.py":[{"author":{"_account_id":11235,"name":"Edwin Zhai","email":"edwin.zhai@intel.com","username":"gzhai"},"change_message_id":"09ce4662331eade0173b1149d35aeee6f9ea04c4","unresolved":false,"context_lines":[{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Authors: Jean-Emile DARTOIS \u003cjean-emile.dartois@b-com.com\u003e"},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":7,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":8,"context_line":"# You may obtain a copy of the License at"},{"line_number":9,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ac371cc_342dd595","line":6,"updated":"2016-08-17 06:13:57.000000000","message":"Shouldn\u0027t it be watcher/metrics_engine/cluster_history/monasca.py?","commit_id":"54b85f297d0829ff3791fa85eb6025b364b6883a"},{"author":{"_account_id":18971,"name":"Vincent Françoise","email":"Vincent.FRANCOISE@b-com.com","username":"v-francoise"},"change_message_id":"28b40745c7c449a8c0c20d35337e0c56597a6a12","unresolved":false,"context_lines":[{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Authors: Jean-Emile DARTOIS \u003cjean-emile.dartois@b-com.com\u003e"},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":7,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":8,"context_line":"# You may obtain a copy of the License at"},{"line_number":9,"context_line":"#"}],"source_content_type":"text/x-python","patch_set":4,"id":"3ac371cc_af016b6c","line":6,"in_reply_to":"3ac371cc_342dd595","updated":"2016-08-18 08:21:36.000000000","message":"The metrics_engine package has been removed and its content has been merged into the decision_engine package instead.","commit_id":"54b85f297d0829ff3791fa85eb6025b364b6883a"},{"author":{"_account_id":12394,"name":"David TARDIVEL","email":"David.TARDIVEL@b-com.com","username":"David.T"},"change_message_id":"5f43d36e44ef773b00dc6f01015f48c16ea0875c","unresolved":false,"context_lines":[{"line_number":1,"context_line":"# -*- encoding: utf-8 -*-"},{"line_number":2,"context_line":"# Copyright (c) 2015 b\u003c\u003ecom"},{"line_number":3,"context_line":"#"},{"line_number":4,"context_line":"# Authors: Jean-Emile DARTOIS \u003cjean-emile.dartois@b-com.com\u003e"},{"line_number":5,"context_line":"#"},{"line_number":6,"context_line":"# Licensed under the Apache License, Version 2.0 (the \"License\");"},{"line_number":7,"context_line":"# you may not use this file except in compliance with the License."},{"line_number":8,"context_line":"# You may obtain a copy of the License at"},{"line_number":9,"context_line":"#"},{"line_number":10,"context_line":"# http://www.apache.org/licenses/LICENSE-2.0"},{"line_number":11,"context_line":"#"},{"line_number":12,"context_line":"# Unless required by applicable law or agreed to in writing, software"},{"line_number":13,"context_line":"# distributed under the License is distributed on an \"AS IS\" BASIS,"},{"line_number":14,"context_line":"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or"},{"line_number":15,"context_line":"# implied."},{"line_number":16,"context_line":"# See the License for the specific language governing permissions and"},{"line_number":17,"context_line":"# limitations under the License."},{"line_number":18,"context_line":""},{"line_number":19,"context_line":"from watcher.common import monasca_helper"},{"line_number":20,"context_line":""},{"line_number":21,"context_line":""},{"line_number":22,"context_line":"class MonascaClusterHistory(object):"},{"line_number":23,"context_line":"    def __init__(self, osc\u003dNone):"},{"line_number":24,"context_line":"        \"\"\":param osc: an OpenStackClients instance\"\"\""},{"line_number":25,"context_line":"        super(MonascaClusterHistory, self).__init__()"},{"line_number":26,"context_line":"        self.monasca \u003d monasca_helper.MonascaHelper(osc\u003dosc)"},{"line_number":27,"context_line":""},{"line_number":28,"context_line":"    def statistic_list(self, meter_name, dimensions, period\u003dNone):"},{"line_number":29,"context_line":"        return self.monasca.statistics_list("},{"line_number":30,"context_line":"            meter_name, dimensions, period)"},{"line_number":31,"context_line":""},{"line_number":32,"context_line":"    def statistic_aggregation(self, meter_name, dimensions,"},{"line_number":33,"context_line":"                              start_time\u003dNone, end_time\u003dNone, period\u003dNone,"},{"line_number":34,"context_line":"                              aggregate\u003d\u0027avg\u0027, group_by\u003d\u0027*\u0027):"},{"line_number":35,"context_line":"        return self.monasca.statistic_aggregation("},{"line_number":36,"context_line":"            meter_name\u003dmeter_name, dimensions\u003ddimensions,"},{"line_number":37,"context_line":"            start_time\u003dstart_time, end_time\u003dend_time, period\u003dperiod,"},{"line_number":38,"context_line":"            aggregate\u003daggregate, group_by\u003dgroup_by)"}],"source_content_type":"text/x-python","patch_set":5,"id":"ba5201f7_d8ceafb3","line":38,"range":{"start_line":1,"start_character":0,"end_line":38,"end_character":51},"updated":"2017-01-10 09:40:23.000000000","message":"please remove this file","commit_id":"a1996278d14ed55b8e6f1ae0541e521388c06df5"}]}
