Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
031c541
commit b7e4954
Showing
5 changed files
with
497 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,294 @@ | ||
<template> | ||
<div> | ||
<praeco-form-item label="Host" prop="irisHost" required> | ||
<el-input id="irisHost" v-model="irisHost" :disabled="viewOnly" /> | ||
<label> | ||
Address of the Iris host. Exclude https:// For example: iris.example.com. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="irisApiToken" prop="irisApiToken" required> | ||
<el-input id="irisApiToken" v-model="irisApiToken" :disabled="viewOnly" /> | ||
<label> | ||
The API key of the user you created, which will be used to initiate alerts and cases on behalf of this user. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Customer Id" prop="irisCustomerId"> | ||
<el-input-number id="irisCustomerId" v-model="irisCustomerId" :disabled="viewOnly" /> | ||
<label> | ||
This field represents the unique identifier of the customer for whom an incident/case will be created within the system. | ||
Configure and view the existing options in the section Advanced -> Customers of your IRIS instance. | ||
The default value is: 1. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="CA Certs" prop="irisCaCerts"> | ||
<el-switch | ||
id="irisCaCerts" | ||
v-model="irisCaCerts" | ||
:disabled="viewOnly" | ||
@change="changeIrisCaCerts" /> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Ignore SSL Errors" prop="irisIgnoreSslErrors"> | ||
<el-switch | ||
id="irisIgnoreSslErrors" | ||
v-model="irisIgnoreSslErrors" | ||
:disabled="viewOnly" | ||
@change="changeIrisIgnoreSslErrors" /> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Description" prop="irisDescription"> | ||
<el-input-number id="irisDescription" v-model="irisDescription" :disabled="viewOnly" /> | ||
<label> | ||
Description of the alert or case. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Overwrite Timestamp" prop="irisOverwriteTimestamp"> | ||
<el-switch | ||
id="irisOverwriteTimestamp" | ||
v-model="irisOverwriteTimestamp" | ||
:disabled="viewOnly" | ||
@change="changeIrisOverwriteTimestamp" /> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Type" prop="irisType"> | ||
<el-radio-group v-model="irisType" :disabled="viewOnly"> | ||
<el-radio id="irisTypeAlert" label="alert" border> | ||
none | ||
</el-radio> | ||
<el-radio id="irisTypeCase" label="case" border> | ||
full | ||
</el-radio> | ||
</el-radio-group> | ||
<label>The type of object being created. It can be either alert or case. The default value is alert.</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Case template ID" prop="irisCaseTemplateId"> | ||
<el-input-number id="irisCaseTemplateId" v-model="irisCaseTemplateId" :disabled="viewOnly" /> | ||
<label> | ||
Case template ID, if you want to apply a pre-prepared template. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Alert Note" prop="irisAlertNote"> | ||
<el-input-number id="irisAlertNote" v-model="irisAlertNote" :disabled="viewOnly" /> | ||
<label> | ||
Note for the alert. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Alert Tags" prop="irisAlertTags"> | ||
<el-input-number id="irisAlertTags" v-model="irisAlertTags" :disabled="viewOnly" /> | ||
<label> | ||
List of tags. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Alert Status Id" prop="irisAlertStatusId"> | ||
<el-input-number id="irisAlertStatusId" v-model="irisAlertStatusId" :disabled="viewOnly" :min="1" :max="7" /> | ||
<label> | ||
The alert status of the alert, default value is 2. This parameter requires an integer input. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Alert Source Link" prop="irisAlertSourceLink"> | ||
<el-input-number id="irisAlertSourceLink" v-model="irisAlertSourceLink" :disabled="viewOnly" /> | ||
<label> | ||
Your custom link, if needed. | ||
</label> | ||
</praeco-form-item> | ||
|
||
<praeco-form-item label="Alert Severity Id" prop="irisAlertSeverityId"> | ||
<el-input-number id="irisAlertSeverityId" v-model="irisAlertSeverityId" :disabled="viewOnly" :min="1" :max="6" /> | ||
<label> | ||
The severity level of the alert, default value is 1. This parameter requires an integer input. | ||
</label> | ||
</praeco-form-item> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
export default { | ||
props: ['viewOnly'], | ||
computed: { | ||
irisHost: { | ||
get() { | ||
return this.$store.state.config.alert.irisHost; | ||
}, | ||
set(value) { | ||
this.$store.commit('config/alert/UPDATE_IRIS_HOST', value); | ||
} | ||
}, | ||
irisApiToken: { | ||
get() { | ||
return this.$store.state.config.alert.irisApiToken; | ||
}, | ||
set(value) { | ||
this.$store.commit('config/alert/UPDATE_IRIS_API_TOKEN', value); | ||
} | ||
}, | ||
irisCustomerId: { | ||
get() { | ||
return this.$store.state.config.alert.irisCustomerId; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_CUSTOMER_ID', | ||
value | ||
); | ||
} | ||
}, | ||
irisIgnoreSslErrors: { | ||
get() { | ||
return this.$store.state.config.alert.irisIgnoreSslErrors; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_IGNORE_SSL_ERRORS', | ||
value | ||
); | ||
} | ||
}, | ||
irisCaCerts: { | ||
get() { | ||
return this.$store.state.config.alert.irisCaCerts; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_CA_CERTS', | ||
value | ||
); | ||
} | ||
}, | ||
irisDescription: { | ||
get() { | ||
return this.$store.state.config.alert.irisDescription; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_DESCRIPTION', | ||
value | ||
); | ||
} | ||
}, | ||
irisOverwriteTimestamp: { | ||
get() { | ||
return this.$store.state.config.alert.irisOverwriteTimestamp; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_OVERWRITE_TIMESTAMP', | ||
value | ||
); | ||
} | ||
}, | ||
irisType: { | ||
get() { | ||
return this.$store.state.config.alert.irisType; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_TYPE', | ||
value | ||
); | ||
} | ||
}, | ||
irisCaseTemplateId: { | ||
get() { | ||
return this.$store.state.config.alert.irisCaseTemplateId; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_CASE_TEMPLATE_ID', | ||
value | ||
); | ||
} | ||
}, | ||
irisAlertNote: { | ||
get() { | ||
return this.$store.state.config.alert.irisAlertNote; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_ALERT_NOTE', | ||
value | ||
); | ||
} | ||
}, | ||
irisAlertTags: { | ||
get() { | ||
return this.$store.state.config.alert.irisAlertTags; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_ALERT_TAGS', | ||
value | ||
); | ||
} | ||
}, | ||
irisAlertStatusId: { | ||
get() { | ||
return this.$store.state.config.alert.irisAlertStatusId; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_ALERT_STATUS_ID', | ||
value | ||
); | ||
} | ||
}, | ||
irisAlertSourceLink: { | ||
get() { | ||
return this.$store.state.config.alert.irisAlertSourceLink; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_ALERT_SOURCE_LINK', | ||
value | ||
); | ||
} | ||
}, | ||
irisAlertSeverityId: { | ||
get() { | ||
return this.$store.state.config.alert.irisAlertSeverityId; | ||
}, | ||
set(value) { | ||
this.$store.commit( | ||
'config/alert/UPDATE_IRIS_ALERT_SEVERITY_ID', | ||
value | ||
); | ||
} | ||
} | ||
}, | ||
methods: { | ||
changeIrisIgnoreSslErrors(val) { | ||
if (val) { | ||
this.irisIgnoreSslErrors = true; | ||
} else { | ||
this.irisIgnoreSslErrors = false; | ||
} | ||
}, | ||
changeIrisCaCerts(val) { | ||
if (val) { | ||
this.irisCaCerts = true; | ||
} else { | ||
this.irisCaCerts = false; | ||
} | ||
}, | ||
changeIrisOverwriteTimestamp(val) { | ||
if (val) { | ||
this.irisOverwriteTimestamp = true; | ||
} else { | ||
this.irisOverwriteTimestamp = false; | ||
} | ||
} | ||
} | ||
}; | ||
</script> | ||
|
||
<style lang="scss" scoped> | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.