4dd644ac20
Gnocchi performs better if measurements are write in batch When Ceilometer is used with Gnocchi, this is not possible. This change introduce a new notification listener that allows that. On the driver side, a default batch implementation is provided. It's just call the legacy poll method many times. Driver can override it to provide a better implementation. For example, kafka handles batch natively and take benefit of this. Change-Id: I16184da24b8661aff7f4fba6196ecf33165f1a77
32 lines
1.1 KiB
Python
32 lines
1.1 KiB
Python
|
|
# Copyright 2013 Red Hat, Inc.
|
|
#
|
|
# Licensed under the Apache License, Version 2.0 (the "License"); you may
|
|
# not use this file except in compliance with the License. You may obtain
|
|
# a copy of the License at
|
|
#
|
|
# http://www.apache.org/licenses/LICENSE-2.0
|
|
#
|
|
# Unless required by applicable law or agreed to in writing, software
|
|
# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
|
|
# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
|
|
# License for the specific language governing permissions and limitations
|
|
# under the License.
|
|
|
|
__all__ = ['Notifier',
|
|
'LoggingNotificationHandler',
|
|
'get_notification_transport',
|
|
'get_notification_listener',
|
|
'get_batch_notification_listener',
|
|
'NotificationResult',
|
|
'NotificationFilter',
|
|
'PublishErrorsHandler',
|
|
'LoggingErrorNotificationHandler']
|
|
|
|
from .filter import NotificationFilter
|
|
from .notifier import *
|
|
from .listener import *
|
|
from .log_handler import *
|
|
from .logger import *
|
|
from .dispatcher import NotificationResult
|