summaryrefslogtreecommitdiffstats
path: root/datafile-app-server/dpo/spec/datafile-component-spec.json
blob: 6047a7c0ce08ede77642a53abe2e1677479cc709 (plain)
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
{
  "self": {
    "name": "datafile-collector",
    "version": "1.0.0",
    "description": "Docker application to collect log file from PNF",
    "component_type": "docker"
  },
  "streams": {
    "subscribes": [
    ],
    "publishes": [
      {
        "type": "data_router",
        "config_key": "PM_MEAS_FILES",
        "format": "3GPP_XML",
        "version": "1.0.0"
      }
    ]
  },
  "services": {
    "calls": [],
    "provides": []
  },
  "auxilary": {
    "healthcheck": {
      "type": "http",
      "interval": "15s",
      "timeout": "1s",
      "endpoint": "/heartbeat"
    },
    "ports": [
      "8100:0",
      "8433:0"
    ]
  },
  "artifacts": [
    {
      "uri": "nexus3.onap.org:10001/onap/org.onap.dcaegen2.collectors.datafile.datafile-app-server:latest",
      "type": "docker image"
    }
  ],
  "parameters": [
    {
      "name": "streams_subscribes",
      "value": {"dmaap_subscriber": {"dmaap_info": {"topic_url":
      "https://message-router.onap.svc.cluster.local:3905/events/unauthenticated.VES_NOTIFICATION_OUTPUT/OpenDcae-c12/C12"}}},
      "description": "datafile collector consume VES event to message router topic ",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.ftpesConfig.keyCert",
      "value": "/opt/app/datafile/config/dfc.jks",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.ftpesConfig.keyPasswordPath",
      "value": "/opt/app/datafile/etc/cert/jks.pass",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.ftpesConfig.trustedCa",
      "value": "/opt/app/datafile/config/cert.jks",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.ftpesConfig.trustedCaPasswordPath",
      "value": "/opt/app/datafile/etc/cert/trust.pass",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.security.trustStorePath",
      "value": "/opt/app/datafile/etc/cert/trust.jks",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.security.trustStorePasswordPath",
      "value": "/opt/app/datafile/etc/cert/trust.pass",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.security.keyStorePath",
      "value": "/opt/app/datafile/etc/cert/cert.jks",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.security.keyStorePasswordPath",
      "value": "/opt/app/datafile/etc/cert/jks.pass",
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    },
    {
      "name": "dmaap.security.enableDmaapCertAuth",
      "value": false,
      "description": "",
      "designer_editable": true,
      "sourced_at_deployment": false,
      "policy_editable": false,
      "type": "string",
      "required": true
    }
  ]
}
ss="n">pattern}</pattern> </encoder> </appender> <!-- Debug log --> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="DEBUG_ROLLING"> <file>${logDirectory}/${debugLogName}.log</file> <!-- No need to deny audit messages - they are INFO only, will be denied anyway --> <!-- Transaction messages filter - deny Transaction messages, there are some DEBUG level messages among them --> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>TRANSACTION_MARKER</marker> </evaluator> <onMismatch>NEUTRAL</onMismatch> <onMatch>DENY</onMatch> </filter> <!-- accept DEBUG and TRACE level --> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator class="ch.qos.logback.classic.boolex.GEventEvaluator"> <expression>e.level.toInt() &lt;= DEBUG.toInt()</expression> </evaluator> <OnMismatch>DENY</OnMismatch> <OnMatch>NEUTRAL</OnMatch> </filter> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${logDirectory}/${debugLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>${maxFileSize}</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>${maxHistory}</maxHistory> <totalSizeCap>${totalSizeCap}</totalSizeCap> </rollingPolicy> <encoder> <pattern>${pattern}</pattern> </encoder> </appender> <!-- Audit log --> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="AUDIT_ROLLING"> <file>${logDirectory}/${auditLogName}.log</file> <!-- Audit messages filter - accept audit messages --> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>AUDIT_MARKER</marker> </evaluator> <onMismatch>DENY</onMismatch> <onMatch>ACCEPT</onMatch> </filter> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${logDirectory}/${auditLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>${maxFileSize}</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>${maxHistory}</maxHistory> <totalSizeCap>${totalSizeCap}</totalSizeCap> </rollingPolicy> <encoder> <pattern>${pattern}</pattern> </encoder> </appender> <!-- SdncTransaction log --> <appender class="ch.qos.logback.core.rolling.RollingFileAppender" name="TRANSACTION_ROLLING"> <file>${logDirectory}/${transactionLogName}.log</file> <!-- Transaction messages filter - accept audit messages --> <filter class="ch.qos.logback.core.filter.EvaluatorFilter"> <evaluator class="ch.qos.logback.classic.boolex.OnMarkerEvaluator"> <marker>TRANSACTION_MARKER</marker> </evaluator> <onMismatch>DENY</onMismatch> <onMatch>ACCEPT</onMatch> </filter> <rollingPolicy class="ch.qos.logback.core.rolling.TimeBasedRollingPolicy"> <fileNamePattern>${logDirectory}/${transactionLogName}.%d{yyyy-MM-dd}.%i.log</fileNamePattern> <timeBasedFileNamingAndTriggeringPolicy class="ch.qos.logback.core.rolling.SizeAndTimeBasedFNATP"> <maxFileSize>${maxFileSize}</maxFileSize> </timeBasedFileNamingAndTriggeringPolicy> <maxHistory>${maxHistory}</maxHistory> <totalSizeCap>${totalSizeCap}</totalSizeCap> </rollingPolicy> <encoder> <pattern>${pattern}</pattern> </encoder> </appender> <!-- Asynchronicity Configurations --> <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC_DEBUG"> <queueSize>${queueSize}</queueSize> <appender-ref ref="DEBUG_ROLLING" /> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC_TRANSACTION"> <queueSize>${queueSize}</queueSize> <appender-ref ref="TRANSACTION_ROLLING" /> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC_ERROR"> <queueSize>${queueSize}</queueSize> <appender-ref ref="ERROR_ROLLING" /> </appender> <appender class="ch.qos.logback.classic.AsyncAppender" name="ASYNC_AUDIT"> <queueSize>${queueSize}</queueSize> <appender-ref ref="AUDIT_ROLLING" /> </appender> <root level="INFO"> <appender-ref ref="ASYNC_ERROR" /> <appender-ref ref="ASYNC_DEBUG" /> <appender-ref ref="ASYNC_AUDIT" /> <appender-ref ref="ASYNC_TRANSACTION" /> <if condition='property("enable-all-log").equalsIgnoreCase("true")'> <then> <appender-ref ref="ALL_ROLLING" /> </then> </if> </root> <logger level="INFO" name="org.openecomp.sdc" /> </configuration>