Skip to content

Commit 2ef0268

Browse files
Move AlertsManagement to main (#22070)
1 parent 874ec15 commit 2ef0268

File tree

3 files changed

+14
-14
lines changed

3 files changed

+14
-14
lines changed

src/AlertsManagement/AlertsManagement/Az.AlertsManagement.psd1

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#
44
# Generated by: Microsoft Corporation
55
#
6-
# Generated on: 2023/5/22
6+
# Generated on: 6/14/2023
77
#
88

99
@{
@@ -108,7 +108,7 @@ PrivateData = @{
108108
PSData = @{
109109

110110
# Tags applied to this module. These help with module discovery in online galleries.
111-
Tags = 'Azure','Alerts','AlertsManagement','Notifications'
111+
Tags = 'Azure', 'Alerts', 'AlertsManagement', 'Notifications'
112112

113113
# A URL to the license for this module.
114114
LicenseUri = 'https://aka.ms/azps-license'
@@ -133,7 +133,7 @@ PrivateData = @{
133133

134134
} # End of PSData hashtable
135135

136-
} # End of PrivateData hashtable
136+
} # End of PrivateData hashtable
137137

138138
# HelpInfo URI of this module
139139
# HelpInfoURI = ''
Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
{
2-
"autorest_modelerfour": "4.15.414",
2+
"swagger_commit": "2b6e1ef17ca3ba9d391d9b13fa79d55577e6a99c",
33
"node": "v14.15.5",
4+
"autorest_modelerfour": "4.15.414",
5+
"autorest_core": "3.9.6",
46
"autorest_powershell": "3.0.504",
5-
"autorest": "`-- (empty)",
6-
"autorest_core": "3.9.5",
7-
"swagger_commit": "fd0b301360d7f83dee9dec5afe3fff77b90b79f6"
7+
"autorest": "`-- (empty)"
88
}

src/AlertsManagement/PrometheusRuleGroups.Autorest/test/New-AzPrometheusRuleGroup.Tests.ps1

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,13 @@ if(($null -eq $TestName) -or ($TestName -contains 'New-AzPrometheusRuleGroup'))
1717
Describe 'New-AzPrometheusRuleGroup' {
1818
It 'CreateExpanded' {
1919
$rule1 = New-AzPrometheusRuleObject -Record "job_type:billing_jobs_duration_seconds:99p5m" -Expression 'histogram_quantile(0.99, sum(rate(jobs_duration_seconds_bucket{service="billing-processing"}[5m])) by (job_type))'
20-
$actiongroup = get-AzActionGroup -Name $env.rstr1 -ResourceGroupName $env.resourceGroup
21-
$actiongroup
22-
$actiongroup.id
23-
$action = New-AzPrometheusRuleGroupActionObject -ActionGroupId $actiongroup.Id -ActionProperty @{"key1" = "value1"}
24-
$Timespan = New-TimeSpan -Minutes 15
25-
$rule2 = New-AzPrometheusRuleObject -Alert Billing_Processing_Very_Slow -Expression "job_type:billing_jobs_duration_seconds:99p5m > 30" -Enabled $false -Severity 3 -For $Timespan -Label @{"team"="prod"} -Annotation @{"annotation" = "value"} -ResolveConfigurationAutoResolved $true -ResolveConfigurationTimeToResolve $Timespan -Action $action
26-
$rules = @($rule1, $rule2)
20+
# $actiongroup = get-AzActionGroup -Name $env.rstr1 -ResourceGroupName $env.resourceGroup
21+
# $actiongroup
22+
# $actiongroup.id
23+
# $action = New-AzPrometheusRuleGroupActionObject -ActionGroupId $actiongroup.Id -ActionProperty @{"key1" = "value1"}
24+
# $Timespan = New-TimeSpan -Minutes 15
25+
# $rule2 = New-AzPrometheusRuleObject -Alert Billing_Processing_Very_Slow -Expression "job_type:billing_jobs_duration_seconds:99p5m > 30" -Enabled $false -Severity 3 -For $Timespan -Label @{"team"="prod"} -Annotation @{"annotation" = "value"} -ResolveConfigurationAutoResolved $true -ResolveConfigurationTimeToResolve $Timespan -Action $action
26+
# $rules = @($rule1, $rule2)
2727
$scope = "/subscriptions/9e223dbe-3399-4e19-88eb-0975f02ac87f/resourcegroups/lnxtest/providers/microsoft.monitor/accounts/lnxmonitorworkspace"
2828
{New-AzPrometheusRuleGroup -ResourceGroupName $env.resourceGroup -RuleGroupName $env.rstr2 -Location eastus -Rule $rule1 -Scope $scope -Enabled } | Should -Not -Throw
2929
}

0 commit comments

Comments
 (0)