"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "monasca_api/api/core/log/model.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).

model.py  (monasca-api-3.1.0):model.py  (monasca-api-4.0.0)
skipping to change at line 18 skipping to change at line 18
# #
# Unless required by applicable law or agreed to in writing, software # Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT # distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the # WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
# License for the specific language governing permissions and limitations # License for the specific language governing permissions and limitations
# under the License. # under the License.
from oslo_utils import timeutils from oslo_utils import timeutils
import six import six
from monasca_common.rest import utils as rest_utils from monasca_api.common.rest import utils as rest_utils
def serialize_envelope(envelope): def serialize_envelope(envelope):
"""Returns json representation of an envelope. """Returns json representation of an envelope.
:return: json object of envelope :return: json object of envelope
:rtype: six.text_type :rtype: six.text_type
""" """
json = rest_utils.as_json(envelope, ensure_ascii=False) json = rest_utils.as_json(envelope, ensure_ascii=False)
 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)