Adjust rule builder copy
parent
4f15c403aa
commit
f6d51ed82e
ui/src/kapacitor/components
|
@ -58,12 +58,15 @@ class KapacitorRule extends Component {
|
||||||
|
|
||||||
editRule(updatedRule)
|
editRule(updatedRule)
|
||||||
.then(() => {
|
.then(() => {
|
||||||
addFlashMessage({type: 'success', text: 'Rule successfully updated!'})
|
addFlashMessage({
|
||||||
|
type: 'success',
|
||||||
|
text: `${rule.name} successfully saved!`,
|
||||||
|
})
|
||||||
})
|
})
|
||||||
.catch(() => {
|
.catch(() => {
|
||||||
addFlashMessage({
|
addFlashMessage({
|
||||||
type: 'error',
|
type: 'error',
|
||||||
text: 'There was a problem updating the rule',
|
text: `There was a problem saving ${rule.name}`,
|
||||||
})
|
})
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
@ -85,7 +88,7 @@ class KapacitorRule extends Component {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!buildInfluxQLQuery({}, query)) {
|
if (!buildInfluxQLQuery({}, query)) {
|
||||||
return 'Please select a database, measurement, and field'
|
return 'Please select a Database, Measurement, and Field'
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!rule.values.value) {
|
if (!rule.values.value) {
|
||||||
|
@ -98,7 +101,7 @@ class KapacitorRule extends Component {
|
||||||
deadmanValidation = () => {
|
deadmanValidation = () => {
|
||||||
const {query} = this.props
|
const {query} = this.props
|
||||||
if (query && (!query.database || !query.measurement)) {
|
if (query && (!query.database || !query.measurement)) {
|
||||||
return 'Deadman requires a database and measurement'
|
return 'Deadman rules require a Database and Measurement'
|
||||||
}
|
}
|
||||||
|
|
||||||
return ''
|
return ''
|
||||||
|
|
Loading…
Reference in New Issue