Skip to content

Commit 99c2392

Browse files
bingikarthikBingi Narasimha Karthik
and
Bingi Narasimha Karthik
authored
Feature/Smart Detector Alert Rules (#4375)
* Feature/Smart Detector Alert Rules * Remove test files * Add changes to v2/azure-arm.yaml * Update v2/azure-arm.yaml * Update smartDetectorAlertRule to smartDetectorAlertRules * Update name in v2/azure-arm.yaml * Update SmartDetectorAlertRules name * Add Detector.ID * Fix fomat types for State and Severity * Add samples folder * Update supportedFrom version * Fix scopesReferences to scopeReferences * Add ActionGroups and Detector mandatory fields * Updates on Test_AlertsManagement_SmartDetectorAlertRules_CRUD.yaml and Test_Samples_CreationAndDeletion/Test_Alertsmanagement_v1api20210401_CreationAndDeletion.yaml * Update structure for detector config * Update ActionGroup name * Create refs for ActionGroup * Update detector config setting * Update detector config setting with reference * Update detector config status setting * Revert changes made to v1api20210401_smartdetectoralertrule.yaml and alertsmanagement_smartdetectoralertrules_crud_v20210401_test.go * Fix go formatting issue * Use ARMID for detector configs * Revert changes to .gitmodules * Remove azure-rest-api-specs * v2/specs/azure-rest-api-specs update * Keep armReference: false * Using detector.armReference: false * Update v2/specs/azure-rest-api-specs * Pass actiongroup object for creation * Update SmartDetectorAlertRule scopeReferences * add recordings/Test_AlertsManagement_SmartDetectorAlertRules_CRUD.yaml * Add v2/internal/controllers/recordings/Test_AlertsManagement_SmartDetectorAlertRules_CRUD.yaml * Commit generated files * commit generated files * Update v2/specs/azure-rest-api-specs * Update v2/specs/azure-rest-api-specs * Add generated files * Add generated file --------- Co-authored-by: Bingi Narasimha Karthik <[email protected]>
1 parent 96937f1 commit 99c2392

29 files changed

+9748
-17
lines changed

docs/hugo/content/reference/_index.md

+8
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,14 @@ grouped by the originating ARM service.
1818

1919
To install the CRDs for these resources, your ASO configuration must include `alertsmanagement.azure.com/*` as a one of the configured CRD patterns. See [CRD Management in ASO](https://azure.github.io/azure-service-operator/guide/crd-management/) for details on doing this for both [Helm](https://azure.github.io/azure-service-operator/guide/crd-management/#helm) and [YAML](https://azure.github.io/azure-service-operator/guide/crd-management/#yaml) based installations.
2020

21+
### Next Release
22+
23+
Development of these new resources is complete and they will be available in the next release of ASO.
24+
25+
| Resource | ARM Version | CRD Version | Supported From | Sample |
26+
|------------------------|-------------|---------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
27+
| SmartDetectorAlertRule | 2021-04-01 | v1api20210401 | v2.11.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/alertsmanagement/v1api20210401/v1api20210401_smartdetectoralertrule.yaml) |
28+
2129
### Released
2230

2331
These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API.

docs/hugo/content/reference/alertsmanagement/_index.md

+8
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,14 @@ no_list: true
55
---
66
To install the CRDs for these resources, your ASO configuration must include `alertsmanagement.azure.com/*` as a one of the configured CRD patterns. See [CRD Management in ASO](https://azure.github.io/azure-service-operator/guide/crd-management/) for details on doing this for both [Helm](https://azure.github.io/azure-service-operator/guide/crd-management/#helm) and [YAML](https://azure.github.io/azure-service-operator/guide/crd-management/#yaml) based installations.
77

8+
### Next Release
9+
10+
Development of these new resources is complete and they will be available in the next release of ASO.
11+
12+
| Resource | ARM Version | CRD Version | Supported From | Sample |
13+
|------------------------|-------------|---------------|----------------|-------------------------------------------------------------------------------------------------------------------------------------------------------|
14+
| SmartDetectorAlertRule | 2021-04-01 | v1api20210401 | v2.11.0 | [View](https://github.com/Azure/azure-service-operator/tree/main/v2/samples/alertsmanagement/v1api20210401/v1api20210401_smartdetectoralertrule.yaml) |
15+
816
### Released
917

1018
These resource(s) are available for use in the current release of ASO. Different versions of a given resource reflect different versions of the Azure ARM API.

v2/api/alertsmanagement/customizations/smart_detector_alert_rule_extension_types_gen.go

+20
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

v2/api/alertsmanagement/customizations/structure.txt

+1
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@
22
github.com/Azure/azure-service-operator/v2/api/alertsmanagement/customizations
33
------------------------------------------------------------------------------
44
PrometheusRuleGroupExtension: Object (0 properties)
5+
SmartDetectorAlertRuleExtension: Object (0 properties)

v2/api/alertsmanagement/v1api20210401/arm/smart_detector_alert_rule_spec_types_gen.go

+124
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)