Debian Codegraph @

masakarimonitors/conf/service.py

raw symbols ◀ ▶ SCIP
1 Debian patch touch this file
1 # Copyright(c) 2016 Nippon Telegraph and Telephone Corporation
2 #
3 # Licensed under the Apache License, Version 2.0 (the "License");
4 # you may not use this file except in compliance with the License.
5 # You may obtain a copy of the License at
6 #
7 # http://www.apache.org/licenses/LICENSE-2.0
8 #
9 # Unless required by applicable law or agreed to in writing, software
10 # distributed under the License is distributed on an "AS IS" BASIS,
11 # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 # See the License for the specific language governing permissions and
13 # limitations under the License.
14
15 import socket
16
17 from oslo_config import cfg
18
19 service_opts = [
20 cfg.StrOpt('hostname',
21 default=socket.gethostname(),
22 deprecated_name="host",
•23 sample_default='<HOSTNAME>',
24 help='''
25 Hostname, FQDN or IP address of this host. Must be valid within AMQP key.
26
27 Possible values:
28
29 * String with hostname, FQDN or IP address. Default is hostname of this host.
30 '''),
31 cfg.StrOpt('instancemonitor_manager',
32 default='masakarimonitors.instancemonitor.instance'
33 '.InstancemonitorManager',
34 help='Full class name for the Manager for instancemonitor.'),
35 cfg.StrOpt('introspectiveinstancemonitor_manager',
36 default='masakarimonitors.introspectiveinstancemonitor.instance'
37 '.IntrospectiveInstanceMonitorManager',
38 help='Full class name for introspectiveinstancemonitor.'),
39 cfg.StrOpt('processmonitor_manager',
40 default='masakarimonitors.processmonitor.process'
41 '.ProcessmonitorManager',
42 help='Full class name for the Manager for processmonitor.'),
43 cfg.StrOpt('hostmonitor_manager',
44 default='masakarimonitors.hostmonitor.host'
45 '.HostmonitorManager',
46 help='Full class name for the Manager for hostmonitor.'),
47 ]
48
49
50 def register_opts(conf):
51 conf.register_opts(service_opts)
52
53
54 def list_opts():
55 return {'DEFAULT': service_opts}