GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 1 | apidescription: 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 | |
| 10 | server: |
| 11 | type: simple |
| 12 | rootPath: '/api/holmes-rule-mgmt/v1/*' |
| 13 | applicationContextPath: / |
| 14 | adminContextPath: /admin |
| 15 | connector: |
| 16 | type: https |
| 17 | port: 9101 |
| 18 | keyStorePath: /opt/onap/conf/holmes.keystore |
| 19 | keyStorePassword: holmes |
| 20 | validateCerts: false |
| 21 | validatePeers: false |
| 22 | |
| 23 | # Logging settings. |
| 24 | logging: |
| 25 | |
| 26 | # The default level of all loggers. Can be OFF, ERROR, WARN, INFO, DEBUG, TRACE, or ALL. |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 27 | level: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 28 | |
| 29 | # Logger-specific levels. |
| 30 | loggers: |
| 31 | |
| 32 | # Sets the level for 'com.example.app' to DEBUG. |
| 33 | org.onap.holmes.rulemgt: ALL |
| 34 | |
| 35 | appenders: |
| 36 | - type: console |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 37 | threshold: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 38 | timeZone: UTC |
| 39 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 40 | - type: file |
| 41 | threshold: ERROR |
| 42 | #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" |
| 43 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 44 | currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-error.log |
| 45 | archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-error-%d{yyyy-MM-dd}.log.gz |
| 46 | archivedFileCount: 7 |
| 47 | - type: file |
GuangrongFu | 717d30b | 2022-04-26 16:05:53 +0800 | [diff] [blame] | 48 | threshold: INFO |
GuangrongFu | cc1316b | 2021-02-03 17:29:08 +0800 | [diff] [blame] | 49 | logFormat: "%d{yyyy-MM-dd HH:mm:ss SSS} %-5p [%c][%t] invocationID:{InvocationID} - %m%n" |
| 50 | currentLogFilename: /var/log/ONAP/holmes/rulemgt-relation-debug.log |
| 51 | archivedLogFilenamePattern: /var/log/ONAP/holmes/zip/rulemgt-relation-debug-%d{yyyy-MM-dd}.log.gz |
| 52 | archivedFileCount: 7 |
| 53 | |
| 54 | #database |
| 55 | database: |
| 56 | driverClass: org.postgresql.Driver |
| 57 | user: ${JDBC_USERNAME} |
| 58 | password: ${JDBC_PASSWORD} |
| 59 | url: jdbc:postgresql://${URL_JDBC}:${DB_PORT}/${DB_NAME} |
| 60 | properties: |
| 61 | charSet: UTF-8 |
| 62 | maxWaitForConnection: 1s |
| 63 | validationQuery: "/* MyService Health Check */ SELECT 1" |
| 64 | minSize: 8 |
| 65 | maxSize: 100 |
| 66 | checkConnectionWhileIdle: false |
| 67 | evictionInterval: 10s |
| 68 | minIdleTime: 1s |