# Path: monasca_notification/conf/types.py
# LOG = log.getLogger(__name__)
# class Plugin(types.String):
# class PluginOpt(cfg.Opt):
# class HostAddressPortType(types.HostAddress):
#     def __init__(self, ignore_missing=False, choices=None, plugin_map=None):
#     def __call__(self, value):
#     def _get_actual_target(self, value):
#     def __init__(self, name, choices=None, plugin_map=None, **kwargs):
#     def __init__(self, version=None):
#     def __call__(self, value):
#     def _validate_port(port=80):
#     def _validate_addr(self, addr):


from oslo_config import cfg
from monasca_notification.conf import types
# Copyright 2017 FUJITSU LIMITED
#
# 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.



_DEFAULT_URL = '127.0.0.1:2181'
_DEFAULT_NOTIFICATION_PATH = '/notification/alarms'
_DEFAULT_RETRY_PATH = '/notification/retry'
_DEFAULT_PERIODIC_PATH = {
    '60': '/notification/60_seconds'
}

zookeeper_group = cfg.OptGroup('zookeeper',
                               title='Zookeeper Options',
                               help='Options under this group allow to '
                                    'configure settings for zookeeper '
                                    'handling.')

zookeeper_opts = [

# Path: monasca_notification/conf/types.py
# LOG = log.getLogger(__name__)
# class Plugin(types.String):
# class PluginOpt(cfg.Opt):
# class HostAddressPortType(types.HostAddress):
#     def __init__(self, ignore_missing=False, choices=None, plugin_map=None):
#     def __call__(self, value):
#     def _get_actual_target(self, value):
#     def __init__(self, name, choices=None, plugin_map=None, **kwargs):
#     def __init__(self, version=None):
#     def __call__(self, value):
#     def _validate_port(port=80):
#     def _validate_addr(self, addr):


# Path: monasca_notification/conf/zookeeper.py
from oslo_config import cfg
from monasca_notification.conf import types

# Copyright 2017 FUJITSU LIMITED
#
# 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.



_DEFAULT_URL = '127.0.0.1:2181'
_DEFAULT_NOTIFICATION_PATH = '/notification/alarms'
_DEFAULT_RETRY_PATH = '/notification/retry'
_DEFAULT_PERIODIC_PATH = {
    '60': '/notification/60_seconds'
}

zookeeper_group = cfg.OptGroup('zookeeper',
                               title='Zookeeper Options',
                               help='Options under this group allow to '
                                    'configure settings for zookeeper '
                                    'handling.')

zookeeper_opts = [

    cfg.ListOpt(name='url', item_type=types.HostAddressPortType(),