-
Notifications
You must be signed in to change notification settings - Fork 255
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
updated formating of alert properties
- Loading branch information
1 parent
bd020cf
commit 868023e
Showing
4 changed files
with
135 additions
and
22 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
|
||
<table> | ||
<tr> | ||
<th>Category</th> | ||
{{ if eq .category "Administrative" }} | ||
<th>Operation Name</th> | ||
<th>Status</th> | ||
{{ else if eq .category "ResourceHealth" }} | ||
<th>Causes</th> | ||
<th>Health Status</th> | ||
{{ else if eq .category "ServiceHealth" }} | ||
<th>Incident Type</th> | ||
{{ end }} | ||
</tr> | ||
|
||
<tr> | ||
<td>{{ .category }}</td> | ||
{{ if eq .category "Administrative" }} | ||
<td>{{ .operationName }}</td> | ||
<td> | ||
{{ if or (reflect.IsMap .status) (reflect.IsSlice .status) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .status) "json" }} | ||
{{ else }} | ||
{{ .status }} | ||
{{ end }} </td> | ||
{{ else if eq .category "ResourceHealth" }} | ||
<td> | ||
{{ if or (reflect.IsMap .causes) (reflect.IsSlice .causes) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .causes) "json" }} | ||
{{ else }} | ||
{{ .causes }} | ||
{{ end }} | ||
</td> | ||
<td> | ||
{{ if or (reflect.IsMap .currentHealthStatus) (reflect.IsSlice .currentHealthStatus) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .currentHealthStatus) "json" }} | ||
{{ else }} | ||
{{ .currentHealthStatus }} | ||
{{ end }} | ||
</td> | ||
{{ else if eq .category "ServiceHealth" }} | ||
<td>{{ .incidentType }}</td> | ||
{{ end }} | ||
</tr> | ||
</table> |
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,40 @@ | ||
|
||
<div><table> | ||
<tr> | ||
<th>Dimensions</th> | ||
<th>Failing Periods</th> | ||
<th>Aggregation</th> | ||
<th>Operator</th> | ||
<th>Threshold</th> | ||
<th>Window</th> | ||
<th>Frequency</th> | ||
<th>Severity</th> | ||
<th>Metric Measure Column</th> | ||
<th>Resource ID Column</th> | ||
</tr> | ||
|
||
<tr> | ||
<td> | ||
{{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .dimensions) "json" }} | ||
{{ else }} | ||
{{ .dimensions }} | ||
{{ end }} | ||
</td> | ||
<td> | ||
{{ if or (reflect.IsMap .failingPeriods) (reflect.IsSlice .failingPeriods) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .failingPeriods) "json" }} | ||
{{ else }} | ||
{{ .failingPeriods }} | ||
{{ end }} | ||
</td> | ||
<td>{{ .timeAggregation }}</td> | ||
<td>{{ .operator }}</td> | ||
<td>{{ .threshold }}</td> | ||
<td>{{ .windowSize }}</td> | ||
<td>{{ .evaluationFrequency }}</td> | ||
<td>{{ .severity }}</td> | ||
<td>{{ .metricMeasureColumn }}</td> | ||
<td>{{ .resouceIdColumn }}</td> | ||
</tr> | ||
</table></div> |
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,44 @@ | ||
|
||
<div><table> | ||
<tr> | ||
<th>Criterion Type</th> | ||
<th>Dimensions</th> | ||
{{ if eq .criterionType "DynamicThresholdCriterion" }} | ||
<th>Alert Sensitivity</th> | ||
<th>Failing Periods</th> | ||
{{ end }} | ||
<th>Aggregation</th> | ||
<th>Operator</th> | ||
<th>Threshold</th> | ||
<th>Window</th> | ||
<th>Frequency</th> | ||
<th>Severity</th> | ||
</tr> | ||
|
||
<tr> | ||
<td>{{ .criterionType }}</td> | ||
<td> | ||
{{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .dimensions) "json" }} | ||
{{ else }} | ||
{{ .dimensions }} | ||
{{ end }} | ||
</td> | ||
{{ if eq .criterionType "DynamicThresholdCriterion" }} | ||
<td>{{ .alertSensitivity }}</td> | ||
<td> | ||
{{ if or (reflect.IsMap .failingPeriods) (reflect.IsSlice .failingPeriods) }} | ||
{{ transform.Highlight (encoding.Jsonify (dict "prefix" "\n" "indent" " ") .failingPeriods) "json" }} | ||
{{ else }} | ||
{{ .failingPeriods }} | ||
{{ end }} | ||
</td> | ||
{{ end }} | ||
<td>{{ .timeAggregation }}</td> | ||
<td>{{ .operator }}</td> | ||
<td>{{ .threshold }}</td> | ||
<td>{{ .windowSize }}</td> | ||
<td>{{ .evaluationFrequency }}</td> | ||
<td>{{ .severity }}</td> | ||
</tr> | ||
</table></div> |
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