Skip to content

Commit 1e2460d

Browse files
authored
Merge pull request #911 from ercole-io/thunder-settings-gcp
GCP thunder settings
2 parents 0d9ce25 + e823d3c commit 1e2460d

File tree

2 files changed

+196
-0
lines changed

2 files changed

+196
-0
lines changed

src/components/settings/ThunderService.vue

Lines changed: 149 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -169,6 +169,155 @@
169169
</div>
170170
</div>
171171
</div>
172+
173+
<hr class="my-3" />
174+
<p class="is-size-6 has-text-weight-semibold">Gcp Data Retrieve Job</p>
175+
176+
<div class="columns is-multiline">
177+
<div class="column is-one-quarter">
178+
<div class="field">
179+
<label
180+
v-html="highlight(ThunderServiceLabels[10])"
181+
class="label is-small"
182+
/>
183+
<CustomInput v-model="ThunderService.GcpDataRetrieveJob.Crontab" />
184+
</div>
185+
</div>
186+
<div class="column is-one-quarter">
187+
<div class="field">
188+
<label
189+
v-html="highlight(ThunderServiceLabels[12])"
190+
class="label is-small"
191+
/>
192+
<CustomRadio
193+
v-model="ThunderService.GcpDataRetrieveJob.RunAtStartup"
194+
:options="trueOrFalseOptions"
195+
/>
196+
</div>
197+
</div>
198+
</div>
199+
200+
<div class="columns is-multiline">
201+
<div class="column is-one-quarter">
202+
<div class="field">
203+
<label
204+
v-html="highlight(ThunderServiceLabels[13])"
205+
class="label is-small"
206+
/>
207+
<CustomInput v-model="ThunderService.GcpDataRetrieveJob.ProjectID" />
208+
</div>
209+
</div>
210+
</div>
211+
212+
<div class="columns is-multiline">
213+
<div class="column is-one-quarter">
214+
<div class="field">
215+
<label
216+
v-html="highlight(ThunderServiceLabels[14])"
217+
class="label is-small"
218+
/>
219+
<CustomInput
220+
v-model="ThunderService.GcpDataRetrieveJob.AvgCpuPercentage"
221+
inputType="number"
222+
/>
223+
</div>
224+
</div>
225+
<div class="column is-one-quarter">
226+
<div class="field">
227+
<label
228+
v-html="highlight(ThunderServiceLabels[15])"
229+
class="label is-small"
230+
/>
231+
<CustomInput
232+
v-model="
233+
ThunderService.GcpDataRetrieveJob.AvgCpuUtilizationThreshold
234+
"
235+
inputType="number"
236+
/>
237+
</div>
238+
</div>
239+
<div class="column is-one-quarter">
240+
<div class="field">
241+
<label
242+
v-html="highlight(ThunderServiceLabels[16])"
243+
class="label is-small"
244+
/>
245+
<CustomInput
246+
v-model="ThunderService.GcpDataRetrieveJob.MaxCpuPercentage"
247+
inputType="number"
248+
/>
249+
</div>
250+
</div>
251+
<div class="column is-one-quarter">
252+
<div class="field">
253+
<label
254+
v-html="highlight(ThunderServiceLabels[17])"
255+
class="label is-small"
256+
/>
257+
<CustomInput
258+
v-model="
259+
ThunderService.GcpDataRetrieveJob.MaxCpuUtilizationThreshold
260+
"
261+
inputType="number"
262+
/>
263+
</div>
264+
</div>
265+
</div>
266+
267+
<div class="columns is-multiline">
268+
<div class="column is-one-quarter">
269+
<div class="field">
270+
<label
271+
v-html="highlight(ThunderServiceLabels[18])"
272+
class="label is-small"
273+
/>
274+
<CustomInput
275+
v-model="ThunderService.GcpDataRetrieveJob.MaxMemPercentage"
276+
inputType="number"
277+
/>
278+
</div>
279+
</div>
280+
<div class="column is-one-quarter">
281+
<div class="field">
282+
<label
283+
v-html="highlight(ThunderServiceLabels[19])"
284+
class="label is-small"
285+
/>
286+
<CustomInput
287+
v-model="
288+
ThunderService.GcpDataRetrieveJob.MaxMemUtilizationThreshold
289+
"
290+
inputType="number"
291+
/>
292+
</div>
293+
</div>
294+
<div class="column is-one-quarter">
295+
<div class="field">
296+
<label
297+
v-html="highlight(ThunderServiceLabels[20])"
298+
class="label is-small"
299+
/>
300+
<CustomInput
301+
v-model="ThunderService.GcpDataRetrieveJob.IopsStoragePercentage"
302+
inputType="number"
303+
/>
304+
</div>
305+
</div>
306+
<div class="column is-one-quarter">
307+
<div class="field">
308+
<label
309+
v-html="highlight(ThunderServiceLabels[21])"
310+
class="label is-small"
311+
/>
312+
<CustomInput
313+
v-model="
314+
ThunderService.GcpDataRetrieveJob.ThroughputStoragePercentage
315+
"
316+
inputType="number"
317+
/>
318+
</div>
319+
</div>
320+
</div>
172321
</article>
173322
</template>
174323

src/mixins/settings/settings.js

Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,19 @@ export default {
139139
DaysThreshold: null,
140140
RunAtStartup: null,
141141
},
142+
GcpDataRetrieveJob: {
143+
AvgCpuPercentage: null,
144+
AvgCpuUtilizationThreshold: null,
145+
Crontab: null,
146+
IopsStoragePercentage: null,
147+
MaxCpuPercentage: null,
148+
MaxCpuUtilizationThreshold: null,
149+
MaxMemPercentage: null,
150+
MaxMemUtilizationThreshold: null,
151+
ProjectID: null,
152+
RunAtStartup: null,
153+
ThroughputStoragePercentage: null,
154+
},
142155
},
143156
APIServiceLabels: [
144157
'Remote Endpoint',
@@ -233,6 +246,15 @@ export default {
233246
'Crontab',
234247
'HourThreshold',
235248
'Run At Startup',
249+
'Project ID',
250+
'Average Cpu Percentage',
251+
'Average Cpu Utilization Threshold',
252+
'Max Cpu Percentage',
253+
'Max Cpu Utilization Threshold',
254+
'Max Memory Percentage',
255+
'Max Memory Utilization Threshold',
256+
'Iops Storage Percentage',
257+
'Through Put Storage Percentage',
236258
],
237259
highlightThunderService: false,
238260
}
@@ -444,6 +466,31 @@ export default {
444466
this.getThunderService.AwsDataRetrieveJob.DaysThreshold,
445467
RunAtStartup: this.getThunderService.AwsDataRetrieveJob.RunAtStartup,
446468
},
469+
GcpDataRetrieveJob: {
470+
AvgCpuPercentage:
471+
this.getThunderService.GcpDataRetrieveJob.AvgCpuPercentage,
472+
AvgCpuUtilizationThreshold:
473+
this.getThunderService.GcpDataRetrieveJob
474+
.AvgCpuUtilizationThreshold,
475+
Crontab: this.getThunderService.GcpDataRetrieveJob.Crontab,
476+
IopsStoragePercentage:
477+
this.getThunderService.GcpDataRetrieveJob.IopsStoragePercentage,
478+
MaxCpuPercentage:
479+
this.getThunderService.GcpDataRetrieveJob.MaxCpuPercentage,
480+
MaxCpuUtilizationThreshold:
481+
this.getThunderService.GcpDataRetrieveJob
482+
.MaxCpuUtilizationThreshold,
483+
MaxMemPercentage:
484+
this.getThunderService.GcpDataRetrieveJob.MaxMemPercentage,
485+
MaxMemUtilizationThreshold:
486+
this.getThunderService.GcpDataRetrieveJob
487+
.MaxMemUtilizationThreshold,
488+
ProjectID: this.getThunderService.GcpDataRetrieveJob.ProjectID,
489+
RunAtStartup: this.getThunderService.GcpDataRetrieveJob.RunAtStartup,
490+
ThroughputStoragePercentage:
491+
this.getThunderService.GcpDataRetrieveJob
492+
.ThroughputStoragePercentage,
493+
},
447494
}
448495
},
449496
searchByLabels(e) {

0 commit comments

Comments
 (0)