File: routing_notifier.yaml.sample

package info (click to toggle)
python-oslo.messaging 8.1.4-1%2Bdeb10u1
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 2,108 kB
  • sloc: python: 17,845; sh: 454; makefile: 19
file content (29 lines) | stat: -rw-r--r-- 739 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
# Setting a priority AND an event means both have to be satisfied.
#
# However, defining different sets for the same driver allows you
# to do OR operations.
#
# See how this logic is modelled below:
#
# if (priority in info, warn or error) or
#    (event == compute.scheduler.run_instance)
#        send to messaging driver ...
#
# if priority == 'poll' and
#    event == 'bandwidth.*'
#        send to poll driver

group_1:
    messaging:
        accepted_priorities: ['info', 'warn', 'error']

    poll:
        accepted_priorities: ['poll']
        accepted_events: ['bandwidth.*']

    log:
        accepted_events: ['compute.instance.exists']

group_2:
    messaging:⋅
        accepted_events: ['compute.scheduler.run_instance.*']