Skip to content

Commit 2b70503

Browse files
authored
Merge pull request #101140 from harelbr/patch-15
Added example for the "ignoreDataBefore" parameter
2 parents cb673eb + a557a22 commit 2b70503

File tree

1 file changed

+13
-2
lines changed

1 file changed

+13
-2
lines changed

articles/azure-monitor/platform/alerts-metric-create-templates.md

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ author: harelbr
55
services: azure-monitor
66
ms.service: azure-monitor
77
ms.topic: conceptual
8-
ms.date: 1/13/2020
8+
ms.date: 1/14/2020
99
ms.author: harelbr
1010
ms.subservice: alerts
1111
---
@@ -372,6 +372,13 @@ Save the json below as simpledynamicmetricalert.json for the purpose of this wal
372372
"description": "The number of unhealthy periods to alert on (must be lower or equal to numberOfEvaluationPeriods)."
373373
}
374374
},
375+
"ignoreDataBefore": {
376+
"type": "string",
377+
"defaultValue": "",
378+
"metadata": {
379+
"description": "Use this option to set the date from which to start learning the metric historical data and calculate the dynamic thresholds (in ISO8601 format, e.g. '2019-12-31T22:00:00Z')."
380+
}
381+
},
375382
"timeAggregation": {
376383
"type": "string",
377384
"defaultValue": "Average",
@@ -449,6 +456,7 @@ Save the json below as simpledynamicmetricalert.json for the purpose of this wal
449456
"numberOfEvaluationPeriods": "[parameters('numberOfEvaluationPeriods')]",
450457
"minFailingPeriodsToAlert": "[parameters('minFailingPeriodsToAlert')]"
451458
},
459+
"ignoreDataBefore": "[parameters('ignoreDataBefore')]",
452460
"timeAggregation": "[parameters('timeAggregation')]"
453461
}
454462
]
@@ -505,6 +513,9 @@ Save the json below as simpledynamicmetricalert.parameters.json and modify it as
505513
"minFailingPeriodsToAlert": {
506514
"value": "3"
507515
},
516+
"ignoreDataBefore": {
517+
"value": ""
518+
},
508519
"timeAggregation": {
509520
"value": "Average"
510521
},
@@ -553,7 +564,7 @@ Please note the following constraints when using dimensions in an alert rule tha
553564
- You can only select one value per dimension within each criterion.
554565
- You cannot use "\*" as a dimension value.
555566
- When metrics that are configured in different criterions support the same dimension, then a configured dimension value must be explicitly set in the same way for all of those metrics (in the relevant criterions).
556-
- In the example below, because both the **Transactions** and **SuccessE2ELatency** metrics have an **API Name** dimension, and *criterion1* specifies the *"GetBlob"* value for the **API Name** dimension, then *criterion2* must also set a *"GetBlob"* value for the **API Name** dimension.
567+
- In the example below, because both the **Transactions** and **SuccessE2ELatency** metrics have an **ApiName** dimension, and *criterion1* specifies the *"GetBlob"* value for the **ApiName** dimension, then *criterion2* must also set a *"GetBlob"* value for the **ApiName** dimension.
557568

558569

559570
Save the json below as advancedstaticmetricalert.json for the purpose of this walkthrough.

0 commit comments

Comments
 (0)