+
Click a tab to view the template
+
+ {{ if eq .alert.type "Metric" }}
+ {{ if eq .alert.properties.criterionType "StaticThresholdCriterion" }}
+ {{ highlight (partial "templates/arm/metric-static.html" .alert) "json" }}
+ {{ else }}
+ {{ highlight (partial "templates/arm/metric-dynamic.html" .alert) "json" }}
+ {{ end }}
+ {{ else if eq .alert.type "Log" }}
+ {{ highlight (partial "templates/arm/log.html" .alert) "json" }}
+ {{ else if eq .alert.type "ActivityLog" }}
+ {{ if eq .alert.properties.category "Administrative" }}
+ {{ highlight (partial "templates/arm/activity-administrative.html" .alert) "json" }}
+ {{ else if eq .alert.properties.category "ServiceHealth" }}
+ {{ highlight (partial "templates/arm/activity-servicehealth.html" .alert) "json" }}
+ {{ else if eq .alert.properties.category "ResourceHealth" }}
+ {{ highlight (partial "templates/arm/activity-resourcehealth.html" .alert) "json" }}
+ {{ end}}
+ {{ end }}
+
+ {{ if eq .alert.type "Metric" }}
+ {{ if eq .alert.properties.criterionType "StaticThresholdCriterion" }}
+ {{ highlight (partial "templates/bicep/metric-static.html" .alert) "bicep" }}
+ {{ else }}
+ {{ highlight (partial "templates/bicep/metric-dynamic.html" .alert) "bicep" }}
+ {{ end }}
+ {{ else if eq .alert.type "Log" }}
+ {{ highlight (partial "templates/bicep/log.html" .alert) "bicep" }}
+ {{ else if eq .alert.type "ActivityLog" }}
+ {{ if eq .alert.properties.category "Administrative" }}
+ {{ highlight (partial "templates/bicep/activity-administrative.html" .alert) "bicep" }}
+ {{ else if eq .alert.properties.category "ServiceHealth" }}
+ {{ highlight (partial "templates/bicep/activity-servicehealth.html" .alert) "bicep" }}
+ {{ else if eq .alert.properties.category "ResourceHealth" }}
+ {{ highlight (partial "templates/bicep/activity-resourcehealth.html" .alert) "bicep" }}
+ {{ end}}
+ {{ end }}
+
+ {{ $name := .alert.name }}
+ {{ $category := .category }}
+ {{ $type := .type }}
+ {{ range $idx, $value := .alert.deployments }}
+
+
+ Name | {{ $value.name }} |
+ Template | {{ $value.template }} (Download) |
+ Tags | {{ delimit $value.tags "," }} |
+ Properties |
+
+ {{ range $key, $value := $value.properties }}
+ {{ $key }}: {{ $value }}
+ {{ end }}
+ |
+
+
+ {{ $data := readFile $file }}
+ {{ highlight $data "json" }}
+