blob: 3b7218855a814dcc04a7c2981c4600e80e2b3fac [file] [log] [blame]
GuangrongFucc1316b2021-02-03 17:29:08 +08001apidescription: ZTE Holmes rule Management rest API
2
3# use the simple server factory if you only want to run on a single port
4#server:
5# type: simple
6# connector:
7# type: http
8# port: 12003
9
10server:
11 type: simple
12 rootPath: '/api/holmes-rule-mgmt/v1/*'
13 applicationContextPath: /
14 adminContextPath: /admin
15 connector:
Andreas Geissler4a5c1bd2023-03-01 11:23:32 +010016 type: http
GuangrongFucc1316b2021-02-03 17:29:08 +080017 port: 9101
GuangrongFucc1316b2021-02-03 17:29:08 +080018 validateCerts: false
19 validatePeers: false
20
21# Logging settings.
22logging:
23
24 # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL.
GuangrongFu717d30b2022-04-26 16:05:53 +080025 level: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080026
27 # Logger-specific levels.
28 loggers:
29
30 # Sets the level for 'com.example.app' to DEBUG.
31 org.onap.holmes.rulemgt: ALL
32
33 appenders:
34 - type: console
GuangrongFu717d30b2022-04-26 16:05:53 +080035 threshold: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080036 timeZone: UTC
37 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
38 - type: file
39 threshold: ERROR
40 #logFormat: "%nopexception%logger\n|%date{yyyy-MM-dd'T'HH:mm:ss.SSSXXX,UTC}\n|%level\n|%message\n|%X{InvocationID}\n|%rootException\n|%marker\n|%thread\n|%n \r\n"
41 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
42 currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-error.log
43 archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz
44 archivedFileCount: 7
45 - type: file
GuangrongFu717d30b2022-04-26 16:05:53 +080046 threshold: INFO
GuangrongFucc1316b2021-02-03 17:29:08 +080047 logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n"
48 currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-debug.log
49 archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-debug-%d{yyyy-MM-dd}.log.gz
50 archivedFileCount: 7
51
52#database
53database:
54 driverClass: org.postgresql.Driver
55 user: ${JDBC_USERNAME}
56 password: ${JDBC_PASSWORD}
57 url: jdbc:postgresql://${URL_JDBC}:${DB_PORT}/${DB_NAME}
58 properties:
59 charSet: UTF-8
60 maxWaitForConnection: 1s
61 validationQuery: "/* MyService Health Check */ SELECT 1"
62 minSize: 8
63 maxSize: 100
64 checkConnectionWhileIdle: false
65 evictionInterval: 10s
66 minIdleTime: 1s