[COPYEDIT] Edits to Create Threshold in Watcher (#19905)

This commit is contained in:
gchaps 2018-06-14 10:13:39 -07:00 committed by GitHub
parent 121ffe1f90
commit 718b951e63
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 19 additions and 20 deletions

View file

@ -3,7 +3,7 @@
class="thresholdPreviewChartNoData"
ng-if="!thresholdPreviewChart.isDataExists"
>
Your index and condition combo did not return any data.
Your index and condition did not return any data
</p>
<flot-chart
ng-if="thresholdPreviewChart.isDataExists"

View file

@ -56,13 +56,13 @@ export class ThresholdWatch extends BaseWatch {
}
get titleDescription() {
const staticPart = `Send out an alert when specific conditions are met.`;
const staticPart = `Send an alert when a specific condition is met.`;
if (isNaN(this.triggerIntervalSize)) {
return staticPart;
}
const timeUnitLabel = getTimeUnitsLabel(this.triggerIntervalUnit, this.triggerIntervalSize);
return `${staticPart} This will run once every ${this.triggerIntervalSize} ${timeUnitLabel}.`;
return `${staticPart} This will run every ${this.triggerIntervalSize} ${timeUnitLabel}.`;
}
get upstreamJson() {
@ -95,7 +95,7 @@ export class ThresholdWatch extends BaseWatch {
static typeName = 'Threshold Alert';
static iconClass = '';
static selectMessage = 'Send out an alert on a specific condition.';
static selectMessage = 'Send an alert on a specific condition';
static isCreatable = true;
static selectSortOrder = 1;
}

View file

@ -8,7 +8,7 @@
<div class="kuiInfoPanelBody">
<div class="kuiInfoPanelBody__message">
To modify how the watch is executed, expand the sections below.
To modify how the watch is executed, expand the sections below
</div>
</div>
</div>

View file

@ -34,7 +34,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('watchName', 'required')"
>
A name is required.
Name is required
</div>
&nbsp;
</div>
@ -45,7 +45,7 @@
<label
for="indexSelectSearchBox"
class="kuiLabel kuiVerticalRhythmSmall">
Select an Index
Indices to query
</label>
<div
class="kuiVerticalRhythmSmall watchEditTitleIndexSelectContainer"
@ -67,7 +67,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.showRequiredIndexSelectionValidationMessage()"
>
At least one index is required.
Enter one or more indices
</div>
<div
id="{{watchEditTitlePanel.makeId(['indexSelectSearchBox', 'invalid'])}}"
@ -75,7 +75,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.showInvalidIndexValidationMessage()"
>
Your index query does not match any valid indices.
Your index query does not match any valid indices
</div>
<div
id="{{watchEditTitlePanel.makeId(['indexSelectSearchBox', 'notimefield'])}}"
@ -83,9 +83,9 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.showNoTimeFieldsValidationMessage()"
>
Your index query has no associated time fields.
Your index query does not have an associated time field
</div>
<span>Broad searches can be done by adding * to your query</span>
<span>Use * to broaden your search query</span>
</div>
</div>
@ -93,7 +93,7 @@
<label
for="{{watchEditTitlePanel.makeId('timeField')}}"
class="kuiLabel kuiVerticalRhythmSmall">
Select a time field
Time field
</label>
<div class="kuiVerticalRhythmSmall">
<select
@ -104,7 +104,7 @@
ng-model="watchEditTitlePanel.watch.timeField"
ng-options="timeField.name as timeField.name group by timeField.normalizedType for timeField in watchEditTitlePanel.timeFields"
>
<option value="">Select a field...</option>
<option value="">Select a field</option>
</select>
</div>
<div class="kuiSubText kuiSubduedText kuiVerticalRhythmSmall">
@ -114,7 +114,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('timeField', 'required')"
>
A time field is required.
A time field is required
</div>
&nbsp;
</div>
@ -146,7 +146,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('durationSelectTriggerIntervalSize', 'required')"
>
An interval size is required.
Interval size is required
</div>
<div
id="{{watchEditTitlePanel.makeId(['durationSelectTriggerIntervalSize', 'min'])}}"
@ -154,7 +154,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('durationSelectTriggerIntervalSize', 'min')"
>
Interval size can not be a negative number.
Interval size cannot be a negative number
</div>
<div
id="{{watchEditTitlePanel.makeId(['durationSelectTriggerIntervalSize', 'number'])}}"
@ -162,7 +162,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('durationSelectTriggerIntervalSize', 'number')"
>
Interval size must be a valid number.
Interval size must be a valid number
</div>
<div
id="{{watchEditTitlePanel.makeId(['durationSelectTriggerIntervalUnit', 'required'])}}"
@ -170,7 +170,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('durationSelectTriggerIntervalUnit', 'required')"
>
An interval unit is required.
An interval size is required
</div>
<div
id="{{watchEditTitlePanel.makeId(['durationSelectTriggerIntervalSize', 'minimumDuration'])}}"
@ -178,8 +178,7 @@
class="kuiInputNote kuiInputNote--danger"
ng-if="watchEditTitlePanel.isValidationMessageVisible('durationSelectTriggerIntervalSize', 'minimumDuration', false)"
>
Interval duration is too short.
The miminum allowed is {{watchEditTitlePanel.triggerIntervalMinimumSize}}{{watchEditTitlePanel.triggerIntervalMinimumUnit}}.
The miminum duration is {{watchEditTitlePanel.triggerIntervalMinimumSize}}{{watchEditTitlePanel.triggerIntervalMinimumUnit}}
</div>
</div>
</div>