~ubuntu-branches/ubuntu/vivid/ceilometer/vivid-proposed

« back to all changes in this revision

Viewing changes to ceilometer/publisher/file.py

  • Committer: Package Import Robot
  • Author(s): James Page, Corey Bryant, James Page
  • Date: 2015-02-19 14:59:07 UTC
  • mfrom: (1.2.3)
  • Revision ID: package-import@ubuntu.com-20150219145907-9jojybdsl64zcn14
Tags: 2015.1~b2-0ubuntu1
[ Corey Bryant ]
* New upstream release.
  - d/control: Align requirements with upstream.
  - d/p/skip-test.patch: Rebased.

[ James Page ]
* d/rules,d/p/skip-gabbi.patch: Skip tests that rely on python-gabbi until
  packaging and MIR is complete.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
1
#
2
2
# Copyright 2013 IBM Corp
3
3
#
4
 
# Author: Tong Li <litong01@us.ibm.com>
5
 
#
6
4
# Licensed under the Apache License, Version 2.0 (the "License"); you may
7
5
# not use this file except in compliance with the License. You may obtain
8
6
# a copy of the License at
20
18
 
21
19
from six.moves.urllib import parse as urlparse
22
20
 
 
21
import ceilometer
23
22
from ceilometer.i18n import _
24
23
from ceilometer.openstack.common import log
25
24
from ceilometer import publisher
97
96
        if self.publisher_logger:
98
97
            for sample in samples:
99
98
                self.publisher_logger.info(sample.as_dict())
 
99
 
 
100
    def publish_events(self, context, events):
 
101
        """Send an event message for publishing
 
102
 
 
103
        :param context: Execution context from the service or RPC call
 
104
        :param events: events from pipeline after transformation
 
105
        """
 
106
        raise ceilometer.NotImplementedError