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 @@ - - - - - - - {{ if eq .category "Administrative" }} - - - - - - - - - {{ else if eq .category "ResourceHealth" }} - - - - - - - - - {{ else if eq .category "ServiceHealth" }} - - - - - {{ end }} -
Category{{ .category }}
Operation Name{{ .operationName }}
Status - {{ if or (reflect.IsMap .status) (reflect.IsSlice .status) }} - {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .status) "json" }} - {{ else }} - {{ .status }} - {{ end }} -
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 }} -
Incident Type{{ .incidentType }}
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" }} - - - - - {{ end }} - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Dimensions - {{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }} - {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .dimensions) "json" }} - {{ else }} - {{ .dimensions }} - {{ 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 @@ - -
- - - - - - - - - {{ if eq .criterionType "DynamicThresholdCriterion" }} - - - - - - - - - {{ else }} - - - - - {{ end }} - - - - - - - - - - - - - {{ if isset . "dimensions" }} - - - - - {{ end }} - - - - -
Operator{{ .operator }}
Aggregation{{ .timeAggregation }}
Alert Sensitivity{{ .alertSensitivity }}
Failing Periods - {{ if or (reflect.IsMap .failingPeriods) (reflect.IsSlice .failingPeriods) }} - {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .failingPeriods) "json" }} - {{ else }} - {{ .failingPeriods }} - {{ end }} -
Threshold{{ cast.ToString .threshold }}
Window{{ .windowSize }}
Frequency{{ .evaluationFrequency }}
Severity{{ .severity }}
Dimensions - {{ if or (reflect.IsMap .dimensions) (reflect.IsSlice .dimensions) }} - {{ transform.Highlight (encoding.Jsonify (dict "indent" " ") .dimensions) "json" }} - {{ else }} - {{ .dimensions }} - {{ 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 }} + + + + + {{ end }} +
{{ $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 }} +

References:

{{ range .references }}