summaryrefslogtreecommitdiffstats
path: root/src/components/notifications/Splunk.vue
blob: 86448517b40cec0ff0fe7dd0ca5b533a6f8ac751 (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
<template>
    <div class="mb-3">
        <label for="splunk-rest-url" class="form-label">{{ $t("Splunk Rest URL") }}</label>
        <HiddenInput id="splunk-rest-url" v-model="$parent.notification.splunkRestURL" :required="true" autocomplete="false"></HiddenInput>
    </div>
    <div class="mb-3">
        <label for="splunk-severity" class="form-label">{{ $t("Severity") }}</label>
        <select id="splunk-severity" v-model="$parent.notification.splunkSeverity" class="form-select">
            <option value="INFO">{{ $t("info") }}</option>
            <option value="WARNING">{{ $t("warning") }}</option>
            <option value="CRITICAL" selected="selected">{{ $t("critical") }}</option>
        </select>
    </div>
    <div class="mb-3">
        <label for="splunk-resolve" class="form-label">{{ $t("Auto resolve or acknowledged") }}</label>
        <select id="splunk-resolve" v-model="$parent.notification.splunkAutoResolve" class="form-select">
            <option value="0" selected="selected">{{ $t("do nothing") }}</option>
            <option value="ACKNOWLEDGEMENT">{{ $t("auto acknowledged") }}</option>
            <option value="RECOVERY">{{ $t("auto resolve") }}</option>
        </select>
    </div>
</template>

<script>
import HiddenInput from "../HiddenInput.vue";

export default {
    components: {
        HiddenInput,
    },
};
</script>