-
Notifications
You must be signed in to change notification settings - Fork 9
/
mta.yaml
337 lines (317 loc) · 8.6 KB
/
mta.yaml
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
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
_schema-version: "3.1"
ID: btp-resource-consumption
version: 2.0.2
description: BTP usage and resource consumption dashboard
parameters:
enable-parallel-deployments: true
deploy_mode: html5-repo
build-parameters:
before-all:
- builder: custom
commands:
- npm run build:cf
modules:
- name: BTPResourceConsumption-srv
type: nodejs
path: gen/srv
deployed-after:
- BTPResourceConsumption-db-deployer
parameters:
buildpack: nodejs_buildpack
disk-quota: 512M
memory: 512M
build-parameters:
builder: npm
ignore:
- node_modules/
provides:
- name: srv-api
properties:
srv-url: ${default-url}
requires:
- name: btprc-auth
- name: btprc-dest
- name: btprc-db
- name: btprc-log
- name: btprc-uas
# - name: btprc-uas-ups
- name: BTPResourceConsumption-db-deployer
type: hdb
path: gen/db
build-parameters:
builder: npm
ignore:
- node_modules/
parameters:
buildpack: nodejs_buildpack
disk-quota: 256M
memory: 256M
requires:
- name: btprc-db
- name: btprc-dest-content
type: com.sap.application.content
requires:
- name: btprc-dest
parameters:
content-target: true
- name: srv-api
- name: btprc-auth
parameters:
service-key:
name: btprc-auth-key
- name: btprc-notif
parameters:
service-key:
name: btprc-notif-key
- name: btprc-repo-host
parameters:
service-key:
name: btprc-repo-host-key
- name: btprc-scheduler
parameters:
service-key:
name: btprc-scheduler-key
parameters:
content:
subaccount:
destinations:
- Name: btprc-srv
Authentication: OAuth2UserTokenExchange
TokenServiceInstanceName: btprc-auth
TokenServiceKeyName: btprc-auth-key
URL: ~{srv-api/srv-url}
sap.cloud.service: sap.btp.resourceconsumption
HTML5.DynamicDestination: true
WebIDEEnabled: true
WebIDEUsage: odata_gen
existing_destinations_policy: update
instance:
destinations:
- Name: btprc-srv-api
Authentication: OAuth2UserTokenExchange
TokenServiceInstanceName: btprc-auth
TokenServiceKeyName: btprc-auth-key
URL: ~{srv-api/srv-url}
sap.cloud.service: sap.btp.resourceconsumption
HTML5.Timeout: 60000
- Name: btprc-repo-host
ServiceInstanceName: btprc-repo-host
ServiceKeyName: btprc-repo-host-key
sap.cloud.service: sap.btp.resourceconsumption
- Name: btprc-auth
Authentication: OAuth2UserTokenExchange
ServiceInstanceName: btprc-auth
ServiceKeyName: btprc-auth-key
sap.cloud.service: sap.btp.resourceconsumption
- Name: btprc-notif
Authentication: OAuth2ClientCredentials
ServiceInstanceName: btprc-notif
ServiceKeyName: btprc-notif-key
- Name: btprc-scheduler
Authentication: OAuth2ClientCredentials
ServiceInstanceName: btprc-scheduler
ServiceKeyName: btprc-scheduler-key
existing_destinations_policy: update
build-parameters:
no-source: true
- name: btprc-app-content
type: com.sap.application.content
path: .
requires:
- name: btprc-repo-host
parameters:
content-target: true
service-key:
name: btprc-repo-host-key
build-parameters:
build-result: resources
requires:
- name: btprcreport
target-path: resources/
artifacts:
- btprcreport.zip
- name: managealerts
target-path: resources/
artifacts:
- managealerts.zip
- name: managetags
target-path: resources/
artifacts:
- managetags.zip
- name: measurestotal
target-path: resources/
artifacts:
- measurestotal.zip
- name: measuresbytags
target-path: resources/
artifacts:
- measuresbytags.zip
- name: measuresforyears
target-path: resources/
artifacts:
- measuresforyears.zip
- name: measuresforyearbytags
target-path: resources/
artifacts:
- measuresforyearbytags.zip
- name: billingdifferences
target-path: resources/
artifacts:
- billingdifferences.zip
- name: btprcreport
type: html5
path: app/btprcreport
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: managealerts
type: html5
path: app/managealerts
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: managetags
type: html5
path: app/managetags
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: measurestotal
type: html5
path: app/measurestotal
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: measuresbytags
type: html5
path: app/measuresbytags
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: measuresforyears
type: html5
path: app/measuresforyears
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: measuresforyearbytags
type: html5
path: app/measuresforyearbytags
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
- name: billingdifferences
type: html5
path: app/billingdifferences
build-parameters:
build-result: dist
builder: custom
commands:
- npm install
- npm run build:cf
supported-platforms: []
resources:
- name: btprc-db
type: com.sap.xs.hdi-container
parameters:
service: hana
service-plan: hdi-shared
config:
schema: BTPRC_${space}
service-keys:
- name: btprc-db-key
- name: btprc-scheduler
type: org.cloudfoundry.managed-service
parameters:
service: jobscheduler
service-plan: standard
config:
enable-xsuaa-support: true
service-keys:
- name: btprc-scheduler-key
- name: btprc-notif
type: org.cloudfoundry.managed-service
parameters:
service: alert-notification
service-plan: standard
service-keys:
- name: btprc-notif-key
- name: btprc-uas
type: org.cloudfoundry.managed-service
parameters:
service: uas
service-plan: reporting-ga-admin
service-keys:
- name: btprc-uas-key
# - name: btprc-uas-ups
# type: org.cloudfoundry.existing-service
- name: btprc-auth
type: org.cloudfoundry.managed-service
parameters:
service: xsuaa
service-plan: application
path: ./xs-security.json
config:
xsappname: btprc-${space}
tenant-mode: dedicated
service-keys:
- name: btprc-auth-key
- name: btprc-repo-host
type: org.cloudfoundry.managed-service
parameters:
service: html5-apps-repo
service-plan: app-host
service-keys:
- name: btprc-repo-host-key
- name: btprc-dest
type: org.cloudfoundry.managed-service
parameters:
service: destination
service-plan: lite
config:
HTML5Runtime_enabled: true
init_data:
instance:
destinations:
- Authentication: NoAuthentication
Name: ui5
ProxyType: Internet
Type: HTTP
URL: https://ui5.sap.com
existing_destinations_policy: update
version: 1.0.0
service-keys:
- name: btprc-dest-key
- name: btprc-log
type: org.cloudfoundry.managed-service
parameters:
service: application-logs
service-plan: standard