diff --git a/docs/layouts/partials/activityAlertProperties.html b/docs/layouts/partials/activityAlertProperties.html
deleted file mode 100644
index d22850aea..000000000
--- a/docs/layouts/partials/activityAlertProperties.html
+++ /dev/null
@@ -1,49 +0,0 @@
-
-
-
- Category |
- {{ .category }} |
-
- {{ if eq .category "Administrative" }}
-
- Operation Name |
- {{ .operationName }} |
-
-
- Status |
-
- {{ if or (reflect.IsMap .status) (reflect.IsSlice .status) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .status) "json" }}
- {{ else }}
- {{ .status }}
- {{ end }}
- |
-
- {{ else if eq .category "ResourceHealth" }}
-
- Causes |
-
- {{ if or (reflect.IsMap .causes) (reflect.IsSlice .causes) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .causes) "json" }}
- {{ else }}
- {{ .causes }}
- {{ end }}
- |
-
-
- Health Status |
-
- {{ if or (reflect.IsMap .currentHealthStatus) (reflect.IsSlice .currentHealthStatus) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .currentHealthStatus) "json" }}
- {{ else }}
- {{ .currentHealthStatus }}
- {{ end }}
- |
-
- {{ else if eq .category "ServiceHealth" }}
-
- Incident Type |
- {{ .incidentType }} |
-
- {{ end }}
-
diff --git a/docs/layouts/partials/logAlertProperties.html b/docs/layouts/partials/logAlertProperties.html
deleted file mode 100644
index 3ea363a82..000000000
--- a/docs/layouts/partials/logAlertProperties.html
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
- {{ if isset . "dimensions" }}
-
- Dimensions |
-
- {{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .dimensions) "json" }}
- {{ else }}
- {{ .dimensions }}
- {{ end }}
- |
-
- {{ end }}
-
- Failing Periods |
-
- {{ if or (reflect.IsMap .failingPeriods) (reflect.IsSlice .failingPeriods) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .failingPeriods) "json" }}
- {{ else }}
- {{ .failingPeriods }}
- {{ end }}
- |
-
-
- Aggregation |
- {{ .timeAggregation }} |
-
-
- Operator |
- {{ .operator }} |
-
-
- Threshold |
- {{ .threshold }} |
-
-
- Window |
- {{ .windowSize }} |
-
-
- Frequency |
- {{ .evaluationFrequency }} |
-
-
- Severity |
- {{ .severity }} |
-
-
- Metric Measure Column |
- {{ .metricMeasureColumn }} |
-
-
- Resource ID Column |
- {{ .resouceIdColumn }} |
-
-
diff --git a/docs/layouts/partials/metricAlertProperties.html b/docs/layouts/partials/metricAlertProperties.html
deleted file mode 100644
index 61709d092..000000000
--- a/docs/layouts/partials/metricAlertProperties.html
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
- Operator |
- {{ .operator }} |
-
-
- Aggregation |
- {{ .timeAggregation }} |
-
- {{ if eq .criterionType "DynamicThresholdCriterion" }}
-
- Alert Sensitivity |
- {{ .alertSensitivity }} |
-
-
- Failing Periods |
-
- {{ if or (reflect.IsMap .failingPeriods) (reflect.IsSlice .failingPeriods) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .failingPeriods) "json" }}
- {{ else }}
- {{ .failingPeriods }}
- {{ end }}
- |
-
- {{ else }}
-
- Threshold |
- {{ cast.ToString .threshold }} |
-
- {{ end }}
-
- Window |
- {{ .windowSize }} |
-
-
- Frequency |
- {{ .evaluationFrequency }} |
-
-
- Severity |
- {{ .severity }} |
-
- {{ if isset . "dimensions" }}
-
- Dimensions |
-
- {{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }}
- {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .dimensions) "json" }}
- {{ else }}
- {{ .dimensions }}
- {{ end }}
- |
-
- {{ end }}
-
- Criterion Type |
- {{ .criterionType }} |
-
-
diff --git a/docs/layouts/shortcodes/alertList.html b/docs/layouts/shortcodes/alertList.html
index daf844ea0..48a117f26 100644
--- a/docs/layouts/shortcodes/alertList.html
+++ b/docs/layouts/shortcodes/alertList.html
@@ -19,7 +19,7 @@
Description |
- {{ range sort .alerts }}
+ {{ range sort .alerts "name" "asc" }}
{{ if or (eq .visible true) (eq $.Site.Params.ambaDevMode true) }}
{{ .name }} |
@@ -34,7 +34,7 @@
- {{ range sort .alerts }}
+ {{ range sort .alerts "name" "asc" }}
{{ if or (eq .visible true) (eq $.Site.Params.ambaDevMode true) }}
@@ -42,21 +42,22 @@
{{ .name }} - {{ .type }} Alert
{{ .description }}
Recommended Properties:
- {{ if eq .type "Metric" }}
- {{- partial "metricAlertProperties" .properties }}
- {{ else if eq .type "Log" }}
- {{- partial "logAlertProperties" .properties }}
- {{ else if eq .type "ActivityLog" }}
- {{- partial "activityAlertProperties" .properties }}
- {{ end }}
- {{ if .properties.query }}
-
-
Query:
-
- {{ transform.Highlight .properties.query "plaintext" }}
-
-
- {{ end }}
+
+ {{ range $key, $value := .properties }}
+
+ {{ $key }} |
+
+ {{ if or (reflect.IsMap $value) (reflect.IsSlice $value) }}
+ {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") $value) "json" }}
+ {{ else if eq $key "query" }}
+ {{ transform.Highlight $value "plaintext" }}
+ {{ else }}
+ {{ $value }}
+ {{ end }}
+ |
+
+ {{ end }}
+
References: