"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "monasca_api/common/repositories/model/sub_alarm_definition.py" between
monasca-api-3.1.0.tar.gz and monasca-api-4.0.0.tar.gz

About: OpenStack Monasca API is a RESTful API server that is designed with a layered architecture and supports Monitoring as a Service (MONaaS).
The "Ussuri" series (latest release).

sub_alarm_definition.py  (monasca-api-3.1.0):sub_alarm_definition.py  (monasca-api-4.0.0)
skipping to change at line 50 skipping to change at line 50
self.id = row['id'] self.id = row['id']
self.alarm_definition_id = row['alarm_definition_id'] self.alarm_definition_id = row['alarm_definition_id']
self.metric_name = row['metric_name'] self.metric_name = row['metric_name']
self.dimensions_str = row['dimensions'] self.dimensions_str = row['dimensions']
self.dimensions = self._init_dimensions(row['dimensions']) self.dimensions = self._init_dimensions(row['dimensions'])
self.function = row['function'] self.function = row['function']
self.operator = row['operator'] self.operator = row['operator']
self.period = row['period'] self.period = row['period']
self.periods = row['periods'] self.periods = row['periods']
self.threshold = row['threshold'] self.threshold = row['threshold']
self.deterministic = str(row['is_deterministic']) == '1' self.deterministic = row['is_deterministic']
if sub_expr: if sub_expr:
# id is not used for compare or hash. # id is not used for compare or hash.
self.id = '' self.id = ''
# Must be injected. # Must be injected.
self.alarm_definition_id = '' self.alarm_definition_id = ''
self.metric_name = sub_expr.metric_name self.metric_name = sub_expr.metric_name
self.dimensions_str = sub_expr.dimensions_str self.dimensions_str = sub_expr.dimensions_str
self.dimensions = self._init_dimensions(sub_expr.dimensions_str) self.dimensions = self._init_dimensions(sub_expr.dimensions_str)
self.function = encodeutils.safe_decode(sub_expr.normalized_func, 'u tf-8') self.function = encodeutils.safe_decode(sub_expr.normalized_func, 'u tf-8')
 End of changes. 1 change blocks. 
1 lines changed or deleted 1 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)