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

« back to all changes in this revision

Viewing changes to ceilometer/publisher/__init__.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:
2
2
# Copyright 2013 Intel Corp.
3
3
# Copyright 2013-2014 eNovance
4
4
#
5
 
# Author: Yunhong Jiang <yunhong.jiang@intel.com>
6
 
#         Julien Danjou <julien@danjou.info>
7
 
#
8
5
# Licensed under the Apache License, Version 2.0 (the "License"); you may
9
6
# not use this file except in compliance with the License. You may obtain
10
7
# a copy of the License at
19
16
 
20
17
import abc
21
18
 
22
 
from oslo.utils import netutils
 
19
from oslo_utils import netutils
23
20
import six
24
21
from stevedore import driver
25
22
 
37
34
 
38
35
@six.add_metaclass(abc.ABCMeta)
39
36
class PublisherBase(object):
40
 
    """Base class for plugins that publish the sampler."""
 
37
    """Base class for plugins that publish data."""
41
38
 
42
39
    def __init__(self, parsed_url):
43
40
        pass
45
42
    @abc.abstractmethod
46
43
    def publish_samples(self, context, samples):
47
44
        """Publish samples into final conduit."""
 
45
 
 
46
    @abc.abstractmethod
 
47
    def publish_events(self, context, events):
 
48
        """Publish events into final conduit."""