Skip to content

Commit 8ee94b3

Browse files
author
SDKAuto
committed
CodeGen from PR 32650 in Azure/azure-rest-api-specs
Merge e4d1b7d6b6a88955716c86710a11f8d8c4079fac into 7fc6689d84858b1c71b786526b04c014c4589968
1 parent 131ff15 commit 8ee94b3

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

41 files changed

+7040
-5967
lines changed

sdk/resourcemanager/alertsmanagement/armalertsmanagement/CHANGELOG.md

Lines changed: 157 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,162 @@
11
# Release History
22

3+
## 0.11.0 (2025-05-13)
4+
### Breaking Changes
5+
6+
- Function `NewAlertsClient` parameter(s) have been changed from `(string, azcore.TokenCredential, *arm.ClientOptions)` to `(azcore.TokenCredential, *arm.ClientOptions)`
7+
- Function `*AlertsClient.ChangeState` parameter(s) have been changed from `(context.Context, string, AlertState, *AlertsClientChangeStateOptions)` to `(context.Context, string, string, AlertState, *AlertsClientChangeStateOptions)`
8+
- Function `*AlertsClient.GetByID` parameter(s) have been changed from `(context.Context, string, *AlertsClientGetByIDOptions)` to `(context.Context, string, string, *AlertsClientGetByIDOptions)`
9+
- Function `*AlertsClient.GetHistory` parameter(s) have been changed from `(context.Context, string, *AlertsClientGetHistoryOptions)` to `(context.Context, string, string, *AlertsClientGetHistoryOptions)`
10+
- Function `*AlertsClient.GetSummary` parameter(s) have been changed from `(context.Context, AlertsSummaryGroupByFields, *AlertsClientGetSummaryOptions)` to `(context.Context, string, AlertsSummaryGroupByFields, *AlertsClientGetSummaryOptions)`
11+
- Function `*AlertsClient.NewGetAllPager` parameter(s) have been changed from `(*AlertsClientGetAllOptions)` to `(string, *AlertsClientGetAllOptions)`
12+
- Function `NewClientFactory` parameter(s) have been changed from `(string, azcore.TokenCredential, *arm.ClientOptions)` to `(string, string, azcore.TokenCredential, *arm.ClientOptions)`
13+
- Function `*PrometheusRuleGroupsClient.Update` parameter(s) have been changed from `(context.Context, string, string, PrometheusRuleGroupResourcePatch, *PrometheusRuleGroupsClientUpdateOptions)` to `(context.Context, string, string, PrometheusRuleGroupResourcePatchParameters, *PrometheusRuleGroupsClientUpdateOptions)`
14+
- Function `*ClientFactory.NewTenantActivityLogAlertsClient` has been removed
15+
- Function `NewTenantActivityLogAlertsClient` has been removed
16+
- Function `*TenantActivityLogAlertsClient.CreateOrUpdate` has been removed
17+
- Function `*TenantActivityLogAlertsClient.Delete` has been removed
18+
- Function `*TenantActivityLogAlertsClient.Get` has been removed
19+
- Function `*TenantActivityLogAlertsClient.NewListByManagementGroupPager` has been removed
20+
- Function `*TenantActivityLogAlertsClient.NewListByTenantPager` has been removed
21+
- Function `*TenantActivityLogAlertsClient.Update` has been removed
22+
- Struct `ActionGroup` has been removed
23+
- Struct `ActionList` has been removed
24+
- Struct `AlertRuleAllOfCondition` has been removed
25+
- Struct `AlertRuleAnyOfOrLeafCondition` has been removed
26+
- Struct `AlertRuleLeafCondition` has been removed
27+
- Struct `AlertRuleProperties` has been removed
28+
- Struct `PrometheusRuleGroupResourcePatch` has been removed
29+
- Struct `PrometheusRuleGroupResourcePatchProperties` has been removed
30+
- Struct `TenantActivityLogAlertResource` has been removed
31+
- Struct `TenantAlertRuleList` has been removed
32+
- Struct `TenantAlertRulePatchObject` has been removed
33+
- Struct `TenantAlertRulePatchProperties` has been removed
34+
35+
### Features Added
36+
37+
- New value `AlertStateFired`, `AlertStateFiring`, `AlertStateNoAlert`, `AlertStateResolved`, `AlertStateResolving` added to enum type `AlertState`
38+
- New value `MonitorServiceResourceHealth` added to enum type `MonitorService`
39+
- New enum type `AbnormalEventType` with values `AbnormalEventTypeDependency`, `AbnormalEventTypeException`, `AbnormalEventTypeRequest`
40+
- New enum type `AddedByType` with values `AddedByTypeAutomatic`, `AddedByTypeManual`
41+
- New enum type `AggregationType` with values `AggregationTypeAverage`, `AggregationTypeCount`, `AggregationTypeMaximum`, `AggregationTypeMinimum`, `AggregationTypeNone`, `AggregationTypeTotal`, `AggregationTypeUnique`
42+
- New enum type `AlertSeverity` with values `AlertSeverityFour`, `AlertSeverityOne`, `AlertSeverityThree`, `AlertSeverityTwo`, `AlertSeverityZero`
43+
- New enum type `AnomalyDirection` with values `AnomalyDirectionDecrease`, `AnomalyDirectionIncrease`, `AnomalyDirectionIncreaseAndDecrease`
44+
- New enum type `AvailabilityState` with values `AvailabilityStateAvailable`, `AvailabilityStateDegraded`, `AvailabilityStateUnavailable`, `AvailabilityStateUnknown`, `AvailabilityStateUserInitiated`
45+
- New enum type `CategoryType` with values `CategoryTypeAlert`, `CategoryTypeDiagnostics`, `CategoryTypeInvestigation`, `CategoryTypeLog`, `CategoryTypeMetric`, `CategoryTypeResourceHealth`
46+
- New enum type `ConditionOperator` with values `ConditionOperatorEquals`, `ConditionOperatorGreaterOrLessThan`, `ConditionOperatorGreaterThan`, `ConditionOperatorGreaterThanOrEqual`, `ConditionOperatorLessThan`, `ConditionOperatorLessThanOrEqual`
47+
- New enum type `CriterionType` with values `CriterionTypeDynamicThresholdCriterion`, `CriterionTypeStaticThresholdCriterion`
48+
- New enum type `DetailsType` with values `DetailsTypeAbnormalEvent`, `DetailsTypeAzureMetric`, `DetailsTypeDiagnostics`, `DetailsTypeFinding`, `DetailsTypeInvestigation`, `DetailsTypeRelatedAlert`, `DetailsTypeResourceHealth`
49+
- New enum type `DimensionOperator` with values `DimensionOperatorExclude`, `DimensionOperatorInclude`
50+
- New enum type `HealthState` with values `HealthStateHealthy`, `HealthStateUnhealthy`, `HealthStateUnknown`
51+
- New enum type `InvestigationEntityType` with values `InvestigationEntityTypeEvidence`, `InvestigationEntityTypeFinding`, `InvestigationEntityTypeInvestigation`
52+
- New enum type `InvestigationExecutionRunState` with values `InvestigationExecutionRunStateCanceled`, `InvestigationExecutionRunStateFailed`, `InvestigationExecutionRunStateInProgress`, `InvestigationExecutionRunStateNone`, `InvestigationExecutionRunStateSucceeded`
53+
- New enum type `Kind` with values `KindEventLogAlert`, `KindLogAlert`, `KindLogToMetric`
54+
- New enum type `Relevance` with values `RelevanceIrrelevant`, `RelevanceNone`, `RelevanceRelevant`
55+
- New enum type `ResourceProvisioningState` with values `ResourceProvisioningStateCanceled`, `ResourceProvisioningStateFailed`, `ResourceProvisioningStateSucceeded`
56+
- New enum type `Status` with values `StatusCanceled`, `StatusClosed`, `StatusFailed`, `StatusInProgress`, `StatusMitigated`, `StatusNew`, `StatusSucceeded`
57+
- New enum type `TimeAggregation` with values `TimeAggregationAverage`, `TimeAggregationCount`, `TimeAggregationMaximum`, `TimeAggregationMinimum`, `TimeAggregationTotal`
58+
- New enum type `Type` with values `TypePrometheusInstantQuery`, `TypePrometheusRangeQuery`
59+
- New function `*AbnormalEventDetails.GetDetailsBase() *DetailsBase`
60+
- New function `*AlertEnrichmentItem.GetAlertEnrichmentItem() *AlertEnrichmentItem`
61+
- New function `*AlertsClient.GetEnrichments(context.Context, string, string, *AlertsClientGetEnrichmentsOptions) (AlertsClientGetEnrichmentsResponse, error)`
62+
- New function `*AlertsClient.NewListEnrichmentsPager(string, string, *AlertsClientListEnrichmentsOptions) *runtime.Pager[AlertsClientListEnrichmentsResponse]`
63+
- New function `*AzureMetricDetails.GetDetailsBase() *DetailsBase`
64+
- New function `NewClient(string, azcore.TokenCredential, *arm.ClientOptions) (*Client, error)`
65+
- New function `*Client.PreviewAlertRule(context.Context, PreviewAlertRuleRequest, *ClientPreviewAlertRuleOptions) (ClientPreviewAlertRuleResponse, error)`
66+
- New function `*ClientFactory.NewClient() *Client`
67+
- New function `*ClientFactory.NewIssueClient() *IssueClient`
68+
- New function `*DetailsBase.GetDetailsBase() *DetailsBase`
69+
- New function `*DiagnosticsSolutionDetails.GetDetailsBase() *DetailsBase`
70+
- New function `*InvestigationDetails.GetDetailsBase() *DetailsBase`
71+
- New function `NewIssueClient(string, azcore.TokenCredential, *arm.ClientOptions) (*IssueClient, error)`
72+
- New function `*IssueClient.AddOrUpdateAlerts(context.Context, string, RelatedAlerts, *IssueClientAddOrUpdateAlertsOptions) (IssueClientAddOrUpdateAlertsResponse, error)`
73+
- New function `*IssueClient.AddOrUpdateResources(context.Context, string, RelatedResources, *IssueClientAddOrUpdateResourcesOptions) (IssueClientAddOrUpdateResourcesResponse, error)`
74+
- New function `*IssueClient.Create(context.Context, string, IssueResource, *IssueClientCreateOptions) (IssueClientCreateResponse, error)`
75+
- New function `*IssueClient.Delete(context.Context, string, *IssueClientDeleteOptions) (IssueClientDeleteResponse, error)`
76+
- New function `*IssueClient.FetchInvestigationResult(context.Context, string, FetchInvestigationResultParameters, *IssueClientFetchInvestigationResultOptions) (IssueClientFetchInvestigationResultResponse, error)`
77+
- New function `*IssueClient.Get(context.Context, string, *IssueClientGetOptions) (IssueClientGetResponse, error)`
78+
- New function `*IssueClient.NewListAlertsPager(string, ListParameter, *IssueClientListAlertsOptions) *runtime.Pager[IssueClientListAlertsResponse]`
79+
- New function `*IssueClient.NewListPager(string, *IssueClientListOptions) *runtime.Pager[IssueClientListResponse]`
80+
- New function `*IssueClient.NewListResourcesPager(string, ListParameter, *IssueClientListResourcesOptions) *runtime.Pager[IssueClientListResourcesResponse]`
81+
- New function `*IssueClient.StartInvestigation(context.Context, string, StartInvestigationParameters, *IssueClientStartInvestigationOptions) (IssueClientStartInvestigationResponse, error)`
82+
- New function `*IssueClient.Update(context.Context, string, IssueResourceUpdate, *IssueClientUpdateOptions) (IssueClientUpdateResponse, error)`
83+
- New function `*PrometheusEnrichmentItem.GetAlertEnrichmentItem() *AlertEnrichmentItem`
84+
- New function `*PrometheusEnrichmentItem.GetPrometheusEnrichmentItem() *PrometheusEnrichmentItem`
85+
- New function `*PrometheusInstantQuery.GetAlertEnrichmentItem() *AlertEnrichmentItem`
86+
- New function `*PrometheusInstantQuery.GetPrometheusEnrichmentItem() *PrometheusEnrichmentItem`
87+
- New function `*PrometheusRangeQuery.GetAlertEnrichmentItem() *AlertEnrichmentItem`
88+
- New function `*PrometheusRangeQuery.GetPrometheusEnrichmentItem() *PrometheusEnrichmentItem`
89+
- New function `*RelatedAlertDetails.GetDetailsBase() *DetailsBase`
90+
- New function `*ResourceHealthDetails.GetDetailsBase() *DetailsBase`
91+
- New struct `AbnormalEventAnomalyInsight`
92+
- New struct `AbnormalEventData`
93+
- New struct `AbnormalEventDetails`
94+
- New struct `AlertEnrichmentProperties`
95+
- New struct `AlertEnrichmentResponse`
96+
- New struct `AlertEnrichmentsList`
97+
- New struct `AnomalyRange`
98+
- New struct `AzureMetricAnomalyInsight`
99+
- New struct `AzureMetricData`
100+
- New struct `AzureMetricDetails`
101+
- New struct `BaselineRange`
102+
- New struct `CorrelationDetails`
103+
- New struct `DiagnosticsInsight`
104+
- New struct `DiagnosticsSolutionDetails`
105+
- New struct `DimensionNameAndValue`
106+
- New struct `EvaluatedPeriod`
107+
- New struct `Evaluation`
108+
- New struct `ExceptionPatternAnomaly`
109+
- New struct `FetchInvestigationResultParameters`
110+
- New struct `InvestigationDetails`
111+
- New struct `InvestigationEntity`
112+
- New struct `InvestigationExecution`
113+
- New struct `InvestigationMetadata`
114+
- New struct `InvestigationResult`
115+
- New struct `InvestigationScope`
116+
- New struct `IssueProperties`
117+
- New struct `IssuePropertiesUpdate`
118+
- New struct `IssueResource`
119+
- New struct `IssueResourceListResult`
120+
- New struct `IssueResourceUpdate`
121+
- New struct `ListParameter`
122+
- New struct `LogAlertRuleCondition`
123+
- New struct `LogAlertRuleConditionFailingPeriods`
124+
- New struct `LogAlertRuleCriteria`
125+
- New struct `LogAlertRuleDimension`
126+
- New struct `LogAlertRuleProperties`
127+
- New struct `LogAlertRuleResolveConfiguration`
128+
- New struct `LogAlertRuleResource`
129+
- New struct `Origin`
130+
- New struct `PagedRelatedAlert`
131+
- New struct `PagedRelatedResource`
132+
- New struct `PreviewAlertRuleRequest`
133+
- New struct `PreviewAlertRuleRequestProperties`
134+
- New struct `PreviewAlertRuleResponse`
135+
- New struct `PrometheusInstantQuery`
136+
- New struct `PrometheusRangeQuery`
137+
- New struct `PrometheusRuleGroupResourcePatchParameters`
138+
- New struct `PrometheusRuleGroupResourcePatchParametersProperties`
139+
- New struct `RelatedAlert`
140+
- New struct `RelatedAlertAnomalyInsight`
141+
- New struct `RelatedAlertData`
142+
- New struct `RelatedAlertDetails`
143+
- New struct `RelatedAlerts`
144+
- New struct `RelatedResource`
145+
- New struct `RelatedResources`
146+
- New struct `ResourceHealthDetails`
147+
- New struct `ResourceHealthInsight`
148+
- New struct `RulePreviewResult`
149+
- New struct `RunParameters`
150+
- New struct `StartInvestigationParameters`
151+
- New struct `Summary`
152+
- New struct `TracePatternAnomaly`
153+
- New struct `TransactionEdge`
154+
- New struct `TransactionNode`
155+
- New struct `TransactionPatternAnomaly`
156+
- New field `Category` in struct `AlertRuleRecommendationProperties`
157+
- New field `CorrelationDetails`, `HasEnrichments`, `IsStatefulAlert` in struct `Essentials`
158+
159+
3160
## 0.10.0 (2024-03-01)
4161
### Breaking Changes
5162

sdk/resourcemanager/alertsmanagement/armalertsmanagement/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ For more information on authentication, please see the documentation for `aziden
3636
Azure Alerts Management module consists of one or more clients. We provide a client factory which could be used to create any client in this module.
3737

3838
```go
39-
clientFactory, err := armalertsmanagement.NewClientFactory(<subscription ID>, cred, nil)
39+
clientFactory, err := armalertsmanagement.NewClientFactory(<subscription ID>, <issueName>, cred, nil)
4040
```
4141

4242
You can use `ClientOptions` in package `github.com/Azure/azure-sdk-for-go/sdk/azcore/arm` to set endpoint to connect with public and sovereign clouds as well as Azure Stack. For more information, please see the documentation for `azcore` at [pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore](https://pkg.go.dev/github.com/Azure/azure-sdk-for-go/sdk/azcore).
@@ -47,7 +47,7 @@ options := arm.ClientOptions {
4747
Cloud: cloud.AzureChina,
4848
},
4949
}
50-
clientFactory, err := armalertsmanagement.NewClientFactory(<subscription ID>, cred, &options)
50+
clientFactory, err := armalertsmanagement.NewClientFactory(<subscription ID>, <issueName>, cred, &options)
5151
```
5252

5353
## Clients

0 commit comments

Comments
 (0)