fix typos in our doc, comment and releasenotes
Trivial-fix Co-Authored-By: ZhiQiang Fan <aji.zqfan@gmail.com> Change-Id: Ib50e6f7262d5b2bcc70e3821181a25c9d900fa55
This commit is contained in:
parent
942e0d8d9b
commit
bb7d87f053
@ -27,7 +27,7 @@ CFG_GROUP = "service_credentials"
|
|||||||
|
|
||||||
|
|
||||||
def get_session(conf, requests_session=None):
|
def get_session(conf, requests_session=None):
|
||||||
"""Get a aodh service credentials auth session."""
|
"""Get an aodh service credentials auth session."""
|
||||||
auth_plugin = ka_loading.load_auth_from_conf_options(conf, CFG_GROUP)
|
auth_plugin = ka_loading.load_auth_from_conf_options(conf, CFG_GROUP)
|
||||||
session = ka_loading.load_session_from_conf_options(
|
session = ka_loading.load_session_from_conf_options(
|
||||||
conf, CFG_GROUP, auth=auth_plugin, session=requests_session
|
conf, CFG_GROUP, auth=auth_plugin, session=requests_session
|
||||||
|
@ -140,7 +140,7 @@ def make_general_rowkey_scan(rts_start=None, rts_end=None, some_id=None):
|
|||||||
if not rts_start:
|
if not rts_start:
|
||||||
# NOTE(idegtiarov): Here we could not use chr > 122 because chr >= 123
|
# NOTE(idegtiarov): Here we could not use chr > 122 because chr >= 123
|
||||||
# will be quoted and character will be turn in a composition that is
|
# will be quoted and character will be turn in a composition that is
|
||||||
# started with '%' (chr(37)) that lexicographically is less then chr
|
# started with '%' (chr(37)) that lexicographically is less than chr
|
||||||
# of number
|
# of number
|
||||||
rts_start = chr(122)
|
rts_start = chr(122)
|
||||||
end_row = prepare_key(some_id, rts_start)
|
end_row = prepare_key(some_id, rts_start)
|
||||||
|
@ -32,7 +32,7 @@ class QueryTransformer(object):
|
|||||||
"in": lambda field_name, values: field_name.in_(values),
|
"in": lambda field_name, values: field_name.in_(values),
|
||||||
"=~": lambda field, value: field.op("regexp")(value)}
|
"=~": lambda field, value: field.op("regexp")(value)}
|
||||||
|
|
||||||
# operators which are differs for different dialects
|
# operators which are different for different dialects
|
||||||
dialect_operators = {'postgresql': {'=~': (lambda field, value:
|
dialect_operators = {'postgresql': {'=~': (lambda field, value:
|
||||||
field.op("~")(value))}}
|
field.op("~")(value))}}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ Aodh allows users to define alarms which can be evaluated based on events
|
|||||||
passed from other OpenStack services. The events can be emitted when the
|
passed from other OpenStack services. The events can be emitted when the
|
||||||
resources from other OpenStack services have been updated, created or deleted,
|
resources from other OpenStack services have been updated, created or deleted,
|
||||||
such as 'compute.instance.reboot.end', 'scheduler.select_destinations.end'.
|
such as 'compute.instance.reboot.end', 'scheduler.select_destinations.end'.
|
||||||
When creating a alarm with type of "event", an event_type can be specified to
|
When creating an alarm with type of "event", an event_type can be specified to
|
||||||
identify the type of evernt that will trigger the alarm. The event_type field
|
identify the type of evernt that will trigger the alarm. The event_type field
|
||||||
support fuzzy matching with wildcard. Additionally, users can also specify
|
support fuzzy matching with wildcard. Additionally, users can also specify
|
||||||
query conditions to filter specific events used to trigger the alarm.
|
query conditions to filter specific events used to trigger the alarm.
|
||||||
|
@ -40,7 +40,7 @@ work with a copy of Aodh installed via devstack.
|
|||||||
``/etc/httpd/conf.d``.
|
``/etc/httpd/conf.d``.
|
||||||
|
|
||||||
2. Modify the ``WSGIDaemonProcess`` directive to set the ``user`` and
|
2. Modify the ``WSGIDaemonProcess`` directive to set the ``user`` and
|
||||||
``group`` values to a appropriate user on your server. In many
|
``group`` values to an appropriate user on your server. In many
|
||||||
installations ``aodh`` will be correct.
|
installations ``aodh`` will be correct.
|
||||||
|
|
||||||
3. Enable the Aodh site. On deb-based systems::
|
3. Enable the Aodh site. On deb-based systems::
|
||||||
|
@ -36,7 +36,7 @@ Create aodh-uwsgi.ini file::
|
|||||||
threads = 8
|
threads = 8
|
||||||
# Make sure the client doesn't try to re-use the connection.
|
# Make sure the client doesn't try to re-use the connection.
|
||||||
add-header = Connection: close
|
add-header = Connection: close
|
||||||
# Set uid and gip to a appropriate user on your server. In many
|
# Set uid and gip to an appropriate user on your server. In many
|
||||||
# installations ``aodh`` will be correct.
|
# installations ``aodh`` will be correct.
|
||||||
uid = aodh
|
uid = aodh
|
||||||
gid = aodh
|
gid = aodh
|
||||||
|
@ -66,11 +66,11 @@ models.
|
|||||||
|
|
||||||
.. note:: The *not* operator has different meaning in Mongo DB and in SQL DB engine.
|
.. note:: The *not* operator has different meaning in Mongo DB and in SQL DB engine.
|
||||||
If the *not* operator is applied on a non existent metadata field then
|
If the *not* operator is applied on a non existent metadata field then
|
||||||
the result depends on the DB engine. For example if
|
the result depends on the DB engine. For example, if
|
||||||
{"not": {"metadata.nonexistent_field" : "some value"}} filter is used in a query
|
{"not": {"metadata.nonexistent_field" : "some value"}} filter is used in a query
|
||||||
the Mongo DB will return every Sample object as *not* operator evaluated true
|
the Mongo DB will return every Sample object as *not* operator evaluated true
|
||||||
for every Sample where the given field does not exists. See more in the Mongod DB doc.
|
for every Sample where the given field does not exists. See more in the Mongod DB doc.
|
||||||
On the other hand SQL based DB engine will return empty result as the join operation
|
On the other hand, SQL based DB engine will return empty result as the join operation
|
||||||
on the metadata table will return zero rows as the on clause of the join which
|
on the metadata table will return zero rows as the on clause of the join which
|
||||||
tries to match on the metadata field name is never fulfilled.
|
tries to match on the metadata field name is never fulfilled.
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
---
|
---
|
||||||
features:
|
features:
|
||||||
- Enable aodh services, including aodh-evalutor, aodh-listener and
|
- Enable aodh services, including aodh-evaluator, aodh-listener and
|
||||||
aodh-notifier to run in multiple worker mode.
|
aodh-notifier to run in multiple worker mode.
|
||||||
|
|
||||||
New options are introduced corresponsively as [evaluator]workers,
|
New options are introduced corresponsively as [evaluator]workers,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user