diff --git a/services/CognitiveServices/accounts/templates/arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json b/services/CognitiveServices/accounts/templates/arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json deleted file mode 100644 index eaebbe5c5..000000000 --- a/services/CognitiveServices/accounts/templates/arm/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Number of calls that exceeded rate or quota limit.", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 2, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "0", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "BlockedCalls", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json b/services/CognitiveServices/accounts/templates/arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json deleted file mode 100644 index 3707bb0a1..000000000 --- a/services/CognitiveServices/accounts/templates/arm/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Number of calls with client side error (HTTP response code 4xx).", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 1, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "0", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "ClientErrors", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json b/services/CognitiveServices/accounts/templates/arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json deleted file mode 100644 index 38da92fbd..000000000 --- a/services/CognitiveServices/accounts/templates/arm/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Latency in milliseconds.", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 2, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "90", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Average", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "Latency", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json b/services/CognitiveServices/accounts/templates/arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json deleted file mode 100644 index bb5ecde96..000000000 --- a/services/CognitiveServices/accounts/templates/arm/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Number of calls with service internal error (HTTP response code 5xx).", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 3, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "0", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "ServerErrors", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json b/services/CognitiveServices/accounts/templates/arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json deleted file mode 100644 index 21274fb86..000000000 --- a/services/CognitiveServices/accounts/templates/arm/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Availability percentage with the following calculation: (Total Calls - Server Errors)/Total Calls. Server Errors include any HTTP responses >=500.", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 3, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "LessThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "100", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Average", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "SuccessRate", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json b/services/CognitiveServices/accounts/templates/arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json deleted file mode 100644 index 70a512db0..000000000 --- a/services/CognitiveServices/accounts/templates/arm/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Number of Inference Tokens Processed on an OpenAI Model", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 2, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "180000", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "TokenTransaction", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json b/services/CognitiveServices/accounts/templates/arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json deleted file mode 100644 index 3ec0bd7ad..000000000 --- a/services/CognitiveServices/accounts/templates/arm/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Total number of calls.", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 3, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "5000", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "TotalCalls", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json b/services/CognitiveServices/accounts/templates/arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json deleted file mode 100644 index 5a2eb0410..000000000 --- a/services/CognitiveServices/accounts/templates/arm/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.json +++ /dev/null @@ -1,199 +0,0 @@ -{ - "$schema": "https://schema.management.azure.com/schemas/2019-04-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "parameters": { - "alertName": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Name of the alert" - } - }, - "alertDescription": { - "type": "string", - "defaultValue": "Total number of calls with error response (HTTP response code 4xx or 5xx).", - "metadata": { - "description": "Description of alert" - } - }, - "targetResourceId": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "List of Azure resource Ids seperated by a comma. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name" - } - }, - "targetResourceRegion": { - "type": "string", - "metadata": { - "description": "Azure region in which target resources to be monitored are in (without spaces). For example: EastUS" - } - }, - "targetResourceType": { - "type": "string", - "minLength": 1, - "metadata": { - "description": "Resource type of target resources to be monitored." - } - }, - "isEnabled": { - "type": "bool", - "defaultValue": true, - "metadata": { - "description": "Specifies whether the alert is enabled" - } - }, - "alertSeverity": { - "type": "int", - "defaultValue": 2, - "allowedValues": [ - 0, - 1, - 2, - 3, - 4 - ], - "metadata": { - "description": "Severity of alert {0,1,2,3,4}" - } - }, - "operator": { - "type": "string", - "defaultValue": "GreaterThan", - "allowedValues": [ - "Equals", - "GreaterThan", - "GreaterThanOrEqual", - "LessThan", - "LessThanOrEqual" - ], - "metadata": { - "description": "Operator comparing the current value with the threshold value." - } - }, - "threshold": { - "type": "string", - "defaultValue": "5", - "metadata": { - "description": "The threshold value at which the alert is activated." - } - }, - "timeAggregation": { - "type": "string", - "defaultValue": "Total", - "allowedValues": [ - "Average", - "Minimum", - "Maximum", - "Total", - "Count" - ], - "metadata": { - "description": "How the data that is collected should be combined over time." - } - }, - "windowSize": { - "type": "string", - "defaultValue": "PT5M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H", - "PT6H", - "PT12H", - "PT24H", - "PT1D" - ], - "metadata": { - "description": "Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format." - } - }, - "evaluationFrequency": { - "type": "string", - "defaultValue": "PT1M", - "allowedValues": [ - "PT1M", - "PT5M", - "PT15M", - "PT30M", - "PT1H" - ], - "metadata": { - "description": "how often the metric alert is evaluated represented in ISO 8601 duration format" - } - }, - "currentDateTimeUtcNow": { - "type": "string", - "defaultValue": "[utcNow()]", - "metadata": { - "description": "The current date and time using the utcNow function. Used for deployment name uniqueness" - } - }, - "telemetryOptOut": { - "type": "string", - "defaultValue": "No", - "allowedValues": [ - "Yes", - "No" - ], - "metadata": { - "description": "The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry." - } - } - }, - "variables": { - "pidDeploymentName": "[take(concat('pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-', uniqueString(resourceGroup().id, parameters('alertName'), parameters('currentDateTimeUtcNow'))), 64)]", - "varTargetResourceId": "[split(parameters('targetResourceId'), ',')]" - }, - "resources": [ - { - "type": "Microsoft.Insights/metricAlerts", - "apiVersion": "2018-03-01", - "name": "[parameters('alertName')]", - "location": "global", - "tags": { - "_deployed_by_amba": true - }, - "properties": { - "description": "[parameters('alertDescription')]", - "scopes": "[variables('varTargetResourceId')]", - "targetResourceType": "[parameters('targetResourceType')]", - "targetResourceRegion": "[parameters('targetResourceRegion')]", - "severity": "[parameters('alertSeverity')]", - "enabled": "[parameters('isEnabled')]", - "evaluationFrequency": "[parameters('evaluationFrequency')]", - "windowSize": "[parameters('windowSize')]", - "criteria": { - "odata.type": "Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria", - "allOf": [ - { - "name": "1st criterion", - "metricName": "TotalErrors", - "dimensions": [], - "operator": "[parameters('operator')]", - "threshold": "[parameters('threshold')]", - "timeAggregation": "[parameters('timeAggregation')]", - "criterionType": "StaticThresholdCriterion" - } - ] - } - } - }, - { - "condition": "[equals(parameters('telemetryOptOut'), 'No')]", - "apiVersion": "2020-06-01", - "name": "[variables('pidDeploymentName')]", - "type": "Microsoft.Resources/deployments", - "properties": { - "mode": "Incremental", - "template": { - "$schema": "https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#", - "contentVersion": "1.0.0.0", - "resources": [] - } - } - } - ] -} diff --git a/services/CognitiveServices/accounts/templates/bicep/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.bicep b/services/CognitiveServices/accounts/templates/bicep/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.bicep deleted file mode 100644 index 24bb27923..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/BlockedCalls_87fe8679-655d-4acb-a37c-b7faebe26d47.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Number of calls that exceeded rate or quota limit.' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 2 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 0 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'BlockedCalls' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.bicep b/services/CognitiveServices/accounts/templates/bicep/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.bicep deleted file mode 100644 index 8ef3ee774..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/ClientErrors_ec8c928a-5206-4059-8aea-8486004dd30d.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Number of calls with client side error (HTTP response code 4xx).' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 1 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 0 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'ClientErrors' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.bicep b/services/CognitiveServices/accounts/templates/bicep/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.bicep deleted file mode 100644 index 98204477a..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/Latency_d76ab40a-2831-4fa2-b476-5fdcda3d7c4c.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Latency in milliseconds.' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 2 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 90 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Average' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'Latency' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.bicep b/services/CognitiveServices/accounts/templates/bicep/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.bicep deleted file mode 100644 index 0f7bc916c..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/ServerErrors_3c550d9c-8276-4a61-b0cf-ef437a55e299.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Number of calls with service internal error (HTTP response code 5xx).' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 3 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 0 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'ServerErrors' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.bicep b/services/CognitiveServices/accounts/templates/bicep/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.bicep deleted file mode 100644 index 19b1a1cda..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/SuccessRate_80f3c9ae-7da9-462f-ab44-2ff80d27c8f1.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Availability percentage with the following calculation: (Total Calls - Server Errors)/Total Calls. Server Errors include any HTTP responses >=500.' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 3 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'LessThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 100 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Average' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'SuccessRate' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.bicep b/services/CognitiveServices/accounts/templates/bicep/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.bicep deleted file mode 100644 index 272a7be66..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/TokenTransaction_287a29bf-097d-4c4a-9ac5-df70a10f6903.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Number of Inference Tokens Processed on an OpenAI Model' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 2 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 180000 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'TokenTransaction' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.bicep b/services/CognitiveServices/accounts/templates/bicep/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.bicep deleted file mode 100644 index ae0f1040c..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/TotalCalls_07f1ae0a-94f3-41da-b3a6-ca9188e416cb.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Total number of calls.' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 3 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 5000 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'TotalCalls' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -} diff --git a/services/CognitiveServices/accounts/templates/bicep/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.bicep b/services/CognitiveServices/accounts/templates/bicep/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.bicep deleted file mode 100644 index 8e91ce6c8..000000000 --- a/services/CognitiveServices/accounts/templates/bicep/TotalErrors_e228ad2d-7f9f-4843-88e2-57f6d44c59e9.bicep +++ /dev/null @@ -1,135 +0,0 @@ -@description('Name of the alert') -@minLength(1) -param alertName string - -@description('Description of alert') -param alertDescription string = 'Total number of calls with error response (HTTP response code 4xx or 5xx).' - -@description('Array of Azure resource Ids. For example - /subscriptions/00000000-0000-0000-0000-0000-00000000/resourceGroup/resource-group-name/Microsoft.compute/virtualMachines/vm-name') -@minLength(1) -param targetResourceId array - -@description('Azure region in which target resources to be monitored are in (without spaces). For example: EastUS') -param targetResourceRegion string - -@description('Resource type of target resources to be monitored.') -@minLength(1) -param targetResourceType string - -@description('Specifies whether the alert is enabled') -param isEnabled bool = true - -@description('Severity of alert {0,1,2,3,4}') -@allowed([ - 0 - 1 - 2 - 3 - 4 -]) -param alertSeverity int = 2 - -@description('Operator comparing the current value with the threshold value.') -@allowed([ - 'Equals' - 'GreaterThan' - 'GreaterThanOrEqual' - 'LessThan' - 'LessThanOrEqual' -]) -param operator string = 'GreaterThan' - -@description('The threshold value at which the alert is activated.') -param threshold int = 5 - -@description('How the data that is collected should be combined over time.') -@allowed([ - 'Average' - 'Minimum' - 'Maximum' - 'Total' - 'Count' -]) -param timeAggregation string = 'Total' - -@description('Period of time used to monitor alert activity based on the threshold. Must be between one minute and one day. ISO 8601 duration format.') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' - 'PT6H' - 'PT12H' - 'PT24H' - 'P1D' -]) -param windowSize string = 'PT5M' - -@description('how often the metric alert is evaluated represented in ISO 8601 duration format') -@allowed([ - 'PT1M' - 'PT5M' - 'PT15M' - 'PT30M' - 'PT1H' -]) -param evaluationFrequency string = 'PT1M' - -@description('"The current date and time using the utcNow function. Used for deployment name uniqueness') -param currentDateTimeUtcNow string = utcNow() - -@description('The customer usage identifier used for telemetry purposes. The default value of False enables telemetry. The value of True disables telemetry.') -@allowed([ - 'Yes' - 'No' -]) -param telemetryOptOut string = 'No' - -resource metricAlert 'Microsoft.Insights/metricAlerts@2018-03-01' = { - name: alertName - location: 'global' - tags: { - _deployed_by_amba: 'true' - } - properties: { - description: alertDescription - scopes: targetResourceId - targetResourceType: targetResourceType - targetResourceRegion: targetResourceRegion - severity: alertSeverity - enabled: isEnabled - evaluationFrequency: evaluationFrequency - windowSize: windowSize - criteria: { - 'odata.type': 'Microsoft.Azure.Monitor.MultipleResourceMultipleMetricCriteria' - allOf: [ - { - name: '1st criterion' - metricName: 'TotalErrors' - dimensions: [[]] - operator: operator - threshold: threshold - timeAggregation: timeAggregation - criterionType: 'StaticThresholdCriterion' - } - ] - } - } -} - -var ambaTelemetryPidName = 'pid-8bb7cf8a-bcf7-4264-abcb-703ace2fc84d-${uniqueString(resourceGroup().id, alertName, currentDateTimeUtcNow)}' -resource ambaTelemetryPid 'Microsoft.Resources/deployments@2020-06-01' = if (telemetryOptOut == 'No') { - name: ambaTelemetryPidName - tags: { - _deployed_by_amba: 'true' - } - properties: { - mode: 'Incremental' - template: { - '$schema': 'https://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#' - contentVersion: '1.0.0.0' - resources: [] - } - } -}