Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added new Prometheus Rule Groups type #16613

Merged
merged 31 commits into from
Nov 19, 2021
Merged

Added new Prometheus Rule Groups type #16613

merged 31 commits into from
Nov 19, 2021

Conversation

giladsu
Copy link
Contributor

@giladsu giladsu commented Oct 31, 2021

MSFT employees can try out our new experience at OpenAPI Hub - one location for using our validation tools and finding your workflow.

Changelog

Add a changelog entry for this PR by answering the following questions:

  1. What's the purpose of the update?
    • new service onboarding
    • new API version
    • update existing version for new feature
    • update existing version to fix swagger quality issue in s360
    • Other, please clarify
  2. When are you targeting to deploy the new service/feature to public regions? Please provide the date or, if the date is not yet available, the month.
  3. When do you expect to publish the swagger? Please provide date or, the the date is not yet available, the month.
  4. If updating an existing version, please select the specific langauge SDKs and CLIs that must be refreshed after the swagger is published.
    • SDK of .NET (need service team to ensure code readiness)
    • SDK of Python
    • SDK of Java
    • SDK of Js
    • SDK of Go
    • PowerShell
    • CLI
    • Terraform
    • No refresh required for updates in this PR

Contribution checklist:

If any further question about AME onboarding or validation tools, please view the FAQ.

ARM API Review Checklist

Applicability: ⚠️

If your changes encompass only the following scenarios, you should SKIP this section, as these scenarios do not require ARM review.

  • Change to data plane APIs
  • Adding new properties
  • All removals

Otherwise your PR may be subject to ARM review requirements. Complete the following:

  • Check this box if any of the following apply to the PR so that label “WaitForARMFeedback” will be added automatically to begin ARM API Review. Failure to comply may result in delays to the manifest.

    • Adding a new service
    • Adding new API(s)
    • Adding a new API version
      -[ ] To review changes efficiently, ensure you copy the existing version into the new directory structure for first commit and then push new changes, including version updates, in separate commits.
  • Ensure you've reviewed following guidelines including ARM resource provider contract and REST guidelines. Estimated time (4 hours). This is required before you can request review from ARM API Review board.

  • If you are blocked on ARM review and want to get the PR merged with urgency, please get the ARM oncall for reviews (RP Manifest Approvers team under Azure Resource Manager service) from IcM and reach out to them.

Breaking Change Review Checklist

If any of the following scenarios apply to the PR, request approval from the Breaking Change Review Board as defined in the Breaking Change Policy.

  • Removing API(s) in a stable version
  • Removing properties in a stable version
  • Removing API version(s) in a stable version
  • Updating API in a stable or public preview version with Breaking Change Validation errors
  • Updating API(s) in public preview over 1 year (refer to Retirement of Previews)

Action: to initiate an evaluation of the breaking change, create a new intake using the template for breaking changes. Addition details on the process and office hours are on the Breaking change Wiki.

Please follow the link to find more details on PR review process.

@openapi-workflow-bot
Copy link

Hi, @giladsu Thanks for your PR. I am workflow bot for review process. Here are some small tips.

  • Please ensure to do self-check against checklists in first PR comment.
  • PR assignee is the person auto-assigned and responsible for your current PR reviewing and merging.
  • For specs comparison cross API versions, Use API Specs Comparison Report Generator
  • If there is CI failure(s), to fix CI error(s) is mandatory for PR merging; or you need to provide justification in PR comment for explanation. How to fix?

  • Any feedback about review process or workflow bot, pls contact swagger and tools team. vsswagger@microsoft.com

    @openapi-workflow-bot
    Copy link

    [Call for Action] To better understand Azure service dev/test scenario, and support Azure service developer better on Swagger and REST API related tests in early phase, please help to fill in with this survey https://aka.ms/SurveyForEarlyPhase. It will take 5 to 10 minutes. If you already complete survey, please neglect this comment. Thanks.

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Oct 31, 2021

    Swagger Validation Report

    ️️✔️BreakingChange succeeded [Detail] [Expand]
    There are no breaking changes.
    ️⚠️LintDiff: 4 Warnings warning [Detail]
    The following errors/warnings are introduced by current PR:
    Rule Message
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: autoResolved
    Location: Microsoft.AlertsManagement/preview/2021-07-22-preview/PrometheusRuleGroups.json#L528
    ⚠️ R3018 - EnumInsteadOfBoolean Booleans are not descriptive and make them hard to use. Consider using string enums with allowed set of values defined. Property: isDataAction
    Location: common-types/resource-management/v3/types.json#L368
    ⚠️ R4021 - DescriptionAndTitleMissing 'PrometheusRule' model/property lacks 'description' and 'title' property. Consider adding a 'description'/'title' element. Accurate description/title is essential for maintaining reference documentation.
    Location: Microsoft.AlertsManagement/preview/2021-07-22-preview/PrometheusRuleGroups.json#L474
    ⚠️ R4030 - UniqueXmsExample Do not have duplicate name of x-ms-example, make sure every x-ms-example name unique. Duplicate x-ms-example: ListResourcePrometheusRuleGroups
    Location: Microsoft.AlertsManagement/preview/2021-07-22-preview/PrometheusRuleGroups.json#L104
    ️⚠️Avocado: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ MULTIPLE_API_VERSION The default tag contains multiple API versions swaggers.
    readme: specification/alertsmanagement/resource-manager/readme.md
    tag: specification/alertsmanagement/resource-manager/readme.md#tag-package-2019-06-preview
    ️️✔️~[Staging] ApiReadinessCheck succeeded [Detail] [Expand]
    ️️✔️ModelValidation succeeded [Detail] [Expand]
    Validation passes for ModelValidation.
    ️️✔️SemanticValidation succeeded [Detail] [Expand]
    Validation passes for SemanticValidation.
    ️⚠️Cross-Version Breaking Changes: 1 Warnings warning [Detail]
    Rule Message
    ⚠️ APIsBeingMovedToANewSpec "details":"Attention: There are some existing APIs currently documented in a new spec file. The validation may not be able to report breaking changes with these APIs. It is recommended not to rename swagger file or move public APIs to a new file when creating a new API version.The existing APIs being moved are:Operations_List;",
    "location":"https://github.com/Azure/azure-rest-api-specs/blob/bcb9c888914e9a3809ae87dd6868a8472bb6b20f/specification/alertsmanagement/resource-manager/Microsoft.AlertsManagement/preview/2021-07-22-preview/PrometheusRuleGroups.json"
    ️️✔️CredScan succeeded [Detail] [Expand]
    There is no credential detected.
    ️️✔️SDK Track2 Validation succeeded [Detail] [Expand]
    Validation passes for SDKTrack2Validation

    ️️✔️PrettierCheck succeeded [Detail] [Expand]
    Validation passes for PrettierCheck.
    ️️✔️SpellCheck succeeded [Detail] [Expand]
    Validation passes for SpellCheck.
    ️️✔️Lint(RPaaS) succeeded [Detail] [Expand]
    Validation passes for Lint(RPaaS).
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-pipeline-app
    Copy link

    openapi-pipeline-app bot commented Oct 31, 2021

    Swagger Generation Artifacts

    ️️✔️ApiDocPreview succeeded [Detail] [Expand]
     Please click here to preview with your @microsoft account. 
    ️️✔️SDK Breaking Change Tracking succeeded [Detail] [Expand]

    Breaking Changes Tracking

    ️✔️azure-sdk-for-go-track2 - armalertsmanagement - 0.2.1
    ️✔️azure-sdk-for-python-track2 - track2_azure-mgmt-alertsmanagement - 1.0.0
    ️✔️azure-sdk-for-go - alertsmanagement/mgmt/2019-03-01/alertsmanagement - v59.1.0
    ️✔️azure-sdk-for-go - alertsmanagement/mgmt/2018-05-05/alertsmanagement - v59.1.0
    ️✔️azure-sdk-for-go - preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement - v59.1.0
    ️✔️azure-sdk-for-go - preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement - v59.1.0
    ️✔️azure-sdk-for-go - preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement - v59.1.0
    ️❌ azure-sdk-for-net failed [Detail]
    • Failed [Logs]Release - Generate from 9dee51c. SDK Automation 14.0.0
      warn	Skip initScript due to not configured
      command	sudo apt-get install -y dotnet-sdk-5.0
      command	autorest --version=V2 --csharp --reflect-api-versions --license-header=MICROSOFT_MIT_NO_VERSION --use=@microsoft.azure/autorest.csharp@2.3.82 --csharp-sdks-folder=/home/vsts/work/1/s/azure-sdk-for-net/sdk ../azure-rest-api-specs/specification/alertsmanagement/resource-manager/readme.md
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
      cmderr	[Autorest] realpath(): Permission denied
    • Microsoft.Azure.Management.AlertsManagement [View full logs]  [Release SDK Changes]
      cmdout	[msbuild] /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(207,37): error CS0246: The type or namespace name 'ActionRule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(207,53): error CS0246: The type or namespace name 'ActionRule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(226,37): error CS0246: The type or namespace name 'Scope' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(226,48): error CS0246: The type or namespace name 'Scope' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(239,37): error CS0246: The type or namespace name 'Conditions' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]      3>/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(239,53): error CS0246: The type or namespace name 'Conditions' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(207,37): error CS0246: The type or namespace name 'ActionRule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(207,53): error CS0246: The type or namespace name 'ActionRule' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(226,37): error CS0246: The type or namespace name 'Scope' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(226,48): error CS0246: The type or namespace name 'Scope' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(239,37): error CS0246: The type or namespace name 'Conditions' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      cmdout	[msbuild]          /home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Helpers/ComparisonUtility.cs(239,53): error CS0246: The type or namespace name 'Conditions' could not be found (are you missing a using directive or an assembly reference?) [/home/vsts/work/1/s/azure-sdk-for-net/sdk/alertsmanagement/Microsoft.Azure.Management.AlertsManagement/tests/Microsoft.Azure.Management.AlertsManagement.Tests.csproj]
      error	Script return with result [failed] code [1] signal [null] cwd [azure-sdk-for-net]: dotnet
    ️⚠️ azure-sdk-for-python-track2 warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 9dee51c. SDK Automation 14.0.0
      command	sh scripts/automation_init.sh ../azure-sdk-for-python_tmp/initInput.json ../azure-sdk-for-python_tmp/initOutput.json
      cmderr	[automation_init.sh] WARNING: Skipping azure-nspkg as it is not installed.
      command	sh scripts/automation_generate.sh ../azure-sdk-for-python_tmp/generateInput.json ../azure-sdk-for-python_tmp/generateOutput.json
    • ️✔️track2_azure-mgmt-alertsmanagement [View full logs]  [Release SDK Changes] Breaking Change Detected
      info	[Changelog] **Features**
      info	[Changelog]
      info	[Changelog]   - Model Condition has a new parameter field
      info	[Changelog]   - Model PatchObject has a new parameter enabled
      info	[Changelog]   - Added operation group AlertProcessingRulesOperations
      info	[Changelog]
      info	[Changelog] **Breaking changes**
      info	[Changelog]
      info	[Changelog]   - Model PatchObject no longer has parameter status
      info	[Changelog]   - Removed operation group ActionRulesOperations
      info	[Changelog]   - Removed operation group SmartDetectorAlertRulesOperations
    ️️✔️ azure-sdk-for-go succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 9dee51c. SDK Automation 14.0.0
      command	sh ./eng/initScript.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️alertsmanagement/mgmt/2019-03-01/alertsmanagement [View full logs]  [Release SDK Changes]
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New function `SmartDetectorAlertRulesClient.PatchSender(*http.Request) (*http.Response, error)`
      info	[Changelog] - New function `SmartDetectorAlertRulesClient.Patch(context.Context, string, string, AlertRulePatchObject) (AlertRule, error)`
      info	[Changelog] - New function `SmartDetectorAlertRulesClient.PatchResponder(*http.Response) (AlertRule, error)`
      info	[Changelog] - New function `*AlertRulePatchObject.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `SmartDetectorAlertRulesClient.PatchPreparer(context.Context, string, string, AlertRulePatchObject) (*http.Request, error)`
      info	[Changelog] - New function `AlertRulePatchObject.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New struct `AlertRulePatchObject`
      info	[Changelog] - New struct `AlertRulePatchProperties`
      info	[Changelog]
      info	[Changelog] Total 0 breaking change(s), 10 additive change(s).
      info	[Changelog]
    • ️✔️alertsmanagement/mgmt/2018-05-05/alertsmanagement [View full logs
      info	[Changelog] No exported changes
    • ️✔️preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement [View full logsBreaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `SmartGroupsClient.GetAll` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Function `AlertsClient.GetAll` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Function `AlertsClient.GetAllPreparer` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Function `AlertsClient.GetAllComplete` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Function `SmartGroupsClient.GetAllComplete` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Function `SmartGroupsClient.GetAllPreparer` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Type of `AlertsSummaryGroup.Total` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `AlertsSummaryGroup.SmartGroupsCount` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `SmartGroupProperties.AlertsCount` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `SmartGroupAggregatedProperty.Count` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `AlertsSummaryGroupItem.Count` has been changed from `*int32` to `*int64`
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog]
      info	[Changelog] Total 10 breaking change(s), 0 additive change(s).
      info	[Changelog]
    • ️✔️preview/alertsmanagement/mgmt/2019-05-05-preview/alertsmanagement [View full logsBreaking Change Detected
      info	[Changelog] ### Breaking Changes
      info	[Changelog]
      info	[Changelog] - Function `SmartGroupsClient.GetAllComplete` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Function `AlertsClient.GetAllPreparer` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Function `AlertsClient.GetAll` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Function `SmartGroupsClient.GetAllPreparer` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Function `SmartGroupsClient.GetAll` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int32, SmartGroupsSortByFields, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, TimeRange, *int64, SmartGroupsSortByFields, string)`
      info	[Changelog] - Function `AlertsClient.GetAllComplete` parameter(s) have been changed from `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int32, AlertsSortByFields, string, string, TimeRange, string)` to `(context.Context, string, string, string, MonitorService, MonitorCondition, Severity, AlertState, string, string, *bool, *bool, *int64, AlertsSortByFields, string, string, TimeRange, string)`
      info	[Changelog] - Type of `SmartGroupProperties.AlertsCount` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `AlertsSummaryGroupItem.Count` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `SmartGroupAggregatedProperty.Count` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `AlertsSummaryGroup.Total` has been changed from `*int32` to `*int64`
      info	[Changelog] - Type of `AlertsSummaryGroup.SmartGroupsCount` has been changed from `*int32` to `*int64`
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog]
      info	[Changelog] Total 10 breaking change(s), 0 additive change(s).
      info	[Changelog]
    • ️✔️preview/alertsmanagement/mgmt/2018-05-05-preview/alertsmanagement [View full logs
      info	[Changelog] No exported changes
    ️️✔️ azure-sdk-for-go-track2 succeeded [Detail] [Expand]
    • ️✔️Succeeded [Logs]Release - Generate from 9dee51c. SDK Automation 14.0.0
      command	sh ./eng/scripts/automation_init.sh ../../../../../azure-sdk-for-go_tmp/initInput.json ../../../../../azure-sdk-for-go_tmp/initOutput.json
      command	generator automation-v2 ../../../../../azure-sdk-for-go_tmp/generateInput.json ../../../../../azure-sdk-for-go_tmp/generateOutput.json
    • ️✔️armalertsmanagement [View full logs]  [Release SDK Changes] Breaking Change Detected
      Only show 120 items here, please refer to log for details.
      info	[Changelog] - Struct `Suppression` has been removed
      info	[Changelog] - Struct `SuppressionConfig` has been removed
      info	[Changelog] - Struct `SuppressionSchedule` has been removed
      info	[Changelog] - Struct `ThrottlingInformation` has been removed
      info	[Changelog] - Field `Status` of struct `PatchProperties` has been removed
      info	[Changelog]
      info	[Changelog] ### New Content
      info	[Changelog]
      info	[Changelog] - New const `DaysOfWeekSaturday`
      info	[Changelog] - New const `Enum12Desc`
      info	[Changelog] - New const `FieldTargetResourceGroup`
      info	[Changelog] - New const `CreatedByTypeKey`
      info	[Changelog] - New const `ActionTypeAddActionGroups`
      info	[Changelog] - New const `FieldAlertContext`
      info	[Changelog] - New const `CreatedByTypeApplication`
      info	[Changelog] - New const `DaysOfWeekThursday`
      info	[Changelog] - New const `DaysOfWeekFriday`
      info	[Changelog] - New const `DaysOfWeekTuesday`
      info	[Changelog] - New const `CreatedByTypeUser`
      info	[Changelog] - New const `FieldSeverity`
      info	[Changelog] - New const `FieldTargetResourceType`
      info	[Changelog] - New const `DaysOfWeekWednesday`
      info	[Changelog] - New const `DaysOfWeekMonday`
      info	[Changelog] - New const `RecurrenceTypeWeekly`
      info	[Changelog] - New const `CreatedByTypeManagedIdentity`
      info	[Changelog] - New const `FieldAlertRuleID`
      info	[Changelog] - New const `DaysOfWeekSunday`
      info	[Changelog] - New const `FieldDescription`
      info	[Changelog] - New const `FieldMonitorService`
      info	[Changelog] - New const `FieldTargetResource`
      info	[Changelog] - New const `ActionTypeRemoveAllActionGroups`
      info	[Changelog] - New const `FieldAlertRuleName`
      info	[Changelog] - New const `Enum12Asc`
      info	[Changelog] - New const `FieldMonitorCondition`
      info	[Changelog] - New const `FieldSignalType`
      info	[Changelog] - New const `RecurrenceTypeMonthly`
      info	[Changelog] - New const `RecurrenceTypeDaily`
      info	[Changelog] - New function `*AlertProcessingRulesClient.ListBySubscription(*AlertProcessingRulesListBySubscriptionOptions) *AlertProcessingRulesListBySubscriptionPager`
      info	[Changelog] - New function `*AddActionGroups.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*AlertProcessingRulesClient.ListByResourceGroup(string, *AlertProcessingRulesListByResourceGroupOptions) *AlertProcessingRulesListByResourceGroupPager`
      info	[Changelog] - New function `*AlertProcessingRulesListByResourceGroupPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `*AlertProcessingRulesClient.GetByName(context.Context, string, string, *AlertProcessingRulesGetByNameOptions) (AlertProcessingRulesGetByNameResponse, error)`
      info	[Changelog] - New function `*Schedule.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*AlertProcessingRulesClient.Delete(context.Context, string, string, *AlertProcessingRulesDeleteOptions) (AlertProcessingRulesDeleteResponse, error)`
      info	[Changelog] - New function `PossibleEnum12Values() []Enum12`
      info	[Changelog] - New function `Schedule.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `RecurrenceType.ToPtr() *RecurrenceType`
      info	[Changelog] - New function `WeeklyRecurrence.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*WeeklyRecurrence.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*Action.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*AlertProcessingRulesListByResourceGroupPager.Err() error`
      info	[Changelog] - New function `*AlertProcessingRuleProperties.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `AlertProcessingRulesList.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*AlertProcessingRulesListBySubscriptionPager.Err() error`
      info	[Changelog] - New function `PossibleCreatedByTypeValues() []CreatedByType`
      info	[Changelog] - New function `*MonthlyRecurrence.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `ActionType.ToPtr() *ActionType`
      info	[Changelog] - New function `AddActionGroups.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `DaysOfWeek.ToPtr() *DaysOfWeek`
      info	[Changelog] - New function `CreatedByType.ToPtr() *CreatedByType`
      info	[Changelog] - New function `Enum12.ToPtr() *Enum12`
      info	[Changelog] - New function `*AlertProcessingRulesListBySubscriptionPager.PageResponse() AlertProcessingRulesListBySubscriptionResponse`
      info	[Changelog] - New function `PossibleActionTypeValues() []ActionType`
      info	[Changelog] - New function `Field.ToPtr() *Field`
      info	[Changelog] - New function `MonthlyRecurrence.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*AlertProcessingRulesListByResourceGroupPager.PageResponse() AlertProcessingRulesListByResourceGroupResponse`
      info	[Changelog] - New function `PossibleRecurrenceTypeValues() []RecurrenceType`
      info	[Changelog] - New function `DailyRecurrence.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `RemoveAllActionGroups.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `AlertProcessingRuleProperties.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `SystemData.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `PossibleFieldValues() []Field`
      info	[Changelog] - New function `PossibleDaysOfWeekValues() []DaysOfWeek`
      info	[Changelog] - New function `*AlertProcessingRulesClient.CreateOrUpdate(context.Context, string, string, AlertProcessingRule, *AlertProcessingRulesCreateOrUpdateOptions) (AlertProcessingRulesCreateOrUpdateResponse, error)`
      info	[Changelog] - New function `NewAlertProcessingRulesClient(string, azcore.TokenCredential, *arm.ClientOptions) *AlertProcessingRulesClient`
      info	[Changelog] - New function `*Recurrence.GetRecurrence() *Recurrence`
      info	[Changelog] - New function `AlertProcessingRule.MarshalJSON() ([]byte, error)`
      info	[Changelog] - New function `*AlertProcessingRulesListBySubscriptionPager.NextPage(context.Context) bool`
      info	[Changelog] - New function `*AlertProcessingRulesClient.Update(context.Context, string, string, PatchObject, *AlertProcessingRulesUpdateOptions) (AlertProcessingRulesUpdateResponse, error)`
      info	[Changelog] - New function `*Action.GetAction() *Action`
      info	[Changelog] - New function `*SystemData.UnmarshalJSON([]byte) error`
      info	[Changelog] - New function `*Recurrence.UnmarshalJSON([]byte) error`
      info	[Changelog] - New struct `Action`
      info	[Changelog] - New struct `AddActionGroups`
      info	[Changelog] - New struct `AlertProcessingRule`
      info	[Changelog] - New struct `AlertProcessingRuleProperties`
      info	[Changelog] - New struct `AlertProcessingRulesClient`
      info	[Changelog] - New struct `AlertProcessingRulesCreateOrUpdateOptions`
      info	[Changelog] - New struct `AlertProcessingRulesCreateOrUpdateResponse`
      info	[Changelog] - New struct `AlertProcessingRulesCreateOrUpdateResult`
      info	[Changelog] - New struct `AlertProcessingRulesDeleteOptions`
      info	[Changelog] - New struct `AlertProcessingRulesDeleteResponse`
      info	[Changelog] - New struct `AlertProcessingRulesDeleteResult`
      info	[Changelog] - New struct `AlertProcessingRulesGetByNameOptions`
      info	[Changelog] - New struct `AlertProcessingRulesGetByNameResponse`
      info	[Changelog] - New struct `AlertProcessingRulesGetByNameResult`
      info	[Changelog] - New struct `AlertProcessingRulesList`
      info	[Changelog] - New struct `AlertProcessingRulesListByResourceGroupOptions`
      info	[Changelog] - New struct `AlertProcessingRulesListByResourceGroupPager`
      info	[Changelog] - New struct `AlertProcessingRulesListByResourceGroupResponse`
      info	[Changelog] - New struct `AlertProcessingRulesListByResourceGroupResult`
      info	[Changelog] - New struct `AlertProcessingRulesListBySubscriptionOptions`
      info	[Changelog] - New struct `AlertProcessingRulesListBySubscriptionPager`
      info	[Changelog] - New struct `AlertProcessingRulesListBySubscriptionResponse`
      info	[Changelog] - New struct `AlertProcessingRulesListBySubscriptionResult`
      info	[Changelog] - New struct `AlertProcessingRulesUpdateOptions`
      info	[Changelog] - New struct `AlertProcessingRulesUpdateResponse`
      info	[Changelog] - New struct `AlertProcessingRulesUpdateResult`
      info	[Changelog] - New struct `DailyRecurrence`
      info	[Changelog] - New struct `MonthlyRecurrence`
      info	[Changelog] - New struct `Recurrence`
      info	[Changelog] - New struct `RemoveAllActionGroups`
      info	[Changelog] - New struct `Schedule`
      info	[Changelog] - New struct `SystemData`
      info	[Changelog] - New struct `WeeklyRecurrence`
      info	[Changelog] - New field `Field` in struct `Condition`
      info	[Changelog] - New field `Enabled` in struct `PatchProperties`
      info	[Changelog]
      info	[Changelog] Total 213 breaking change(s), 144 additive change(s).
      info	[Changelog]
    ️⚠️ azure-resource-manager-schemas warning [Detail]
    • ⚠️Warning [Logs]Release - Generate from 9dee51c. Schema Automation 14.0.0
      command	.sdkauto/initScript.sh ../azure-resource-manager-schemas_tmp/initInput.json ../azure-resource-manager-schemas_tmp/initOutput.json
      cmderr	[initScript.sh] WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile The package-lock.json file was created with an old version of npm,
      cmderr	[initScript.sh] npm WARN old lockfile so supplemental metadata must be fetched from the registry.
      cmderr	[initScript.sh] npm WARN old lockfile
      cmderr	[initScript.sh] npm WARN old lockfile This is a one-time fix-up, please be patient...
      cmderr	[initScript.sh] npm WARN old lockfile
      warn	File azure-resource-manager-schemas_tmp/initOutput.json not found to read
      command	.sdkauto/generateScript.sh ../azure-resource-manager-schemas_tmp/generateInput.json ../azure-resource-manager-schemas_tmp/generateOutput.json
    • ️✔️alertsmanagement [View full logs]  [Release Schema Changes]
    Posted by Swagger Pipeline | How to fix these errors?

    @openapi-workflow-bot
    Copy link

    Hi @giladsu, Your PR has some issues. Please fix the CI sequentially by following the order of Avocado, semantic validation, model validation, breaking change, lintDiff.

    TaskHow to fixPrioritySupport (Microsoft alias)
    AvocadoFix-AvocadoHighruowan
    Semantic validationFix-SemanticValidation-ErrorHighraychen, jianyxi
    Model validationFix-ModelValidation-ErrorHighraychen,jianyxi
    LintDiffFix-LintDiffhighjianyxi, ruoxuan
    If you need further help, please feedback via swagger feedback."

    @msyyc
    Copy link
    Member

    msyyc commented Nov 1, 2021

    Hi @giladsu Please follow the advice of openapi-workflow-bot to pass Required CI
    image
    image

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 8, 2021

    Are you onboarding these APIs using RPaaS? If not, why not?

    Currently no - this is being onboarded to our generic alert rule control plane service. We have discussed moving this to RPaaS in the future (and PrometheusRuleGroups along with it of course), but do not have a concrete timeline.

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 8, 2021

    @mentat9 - thank you for your comments. I've addressed all of them except for one where I need some more details in order to answer.

    Please let me know if I can provide any more information.

    Thanks.

    @mentat9
    Copy link
    Member

    mentat9 commented Nov 8, 2021

    @mentat9 - thank you for your comments. I've addressed all of them except for one where I need some more details in order to answer.

    Please let me know if I can provide any more information.

    Thanks.

    OK, thanks @giladsu. Most comments are resolved: a small handful still active.

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 9, 2021

    @mentat9 - thank you for your comments. I've addressed all of them except for one where I need some more details in order to answer.
    Please let me know if I can provide any more information.
    Thanks.

    OK, thanks @giladsu. Most comments are resolved: a small handful still active.

    @mentat9 - thanks. I've answered the last one. If there is something else I am missing or haven't answered, please let me know.

    @mentat9
    Copy link
    Member

    mentat9 commented Nov 9, 2021

    @mentat9 - thank you for your comments. I've addressed all of them except for one where I need some more details in order to answer.
    Please let me know if I can provide any more information.
    Thanks.

    OK, thanks @giladsu. Most comments are resolved: a small handful still active.

    @mentat9 - thanks. I've answered the last one. If there is something else I am missing or haven't answered, please let me know.

    Your comments indicate you have made updates, but you haven't pushed any changes. Also, there are still 4 unresolved comments.

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 10, 2021

    Currently no - this is being onboarded to our generic alert rule control plane service. We have discussed moving this to RPaaS in the future (and PrometheusRuleGroups along with it of course), but do not have a concrete timeline.


    In reply to: 958603876

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 10, 2021

    @mentat9 - apologies, didn't push the final changes in. everything should be updated now, but please let me know if I missed anything.


    In reply to: 964454703

    @mentat9 mentat9 added ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review and removed WaitForARMFeedback <valid label in PR review process> add this label when ARM review is required ARMChangesRequested <valid label in PR review process>add this label when require changes after ARM review labels Nov 10, 2021
    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 15, 2021

    @msyyc - can this be signed off by you to continue with the merge or are there other steps that need to be taken?

    @msyyc
    Copy link
    Member

    msyyc commented Nov 16, 2021

    Hi @giladsu, you need to ask for at least one approval from assigners before merge. Usually, assignee can't sign off the content.
    image

    @giladsu
    Copy link
    Contributor Author

    giladsu commented Nov 16, 2021

    @mentat9 - I'm not sure why but the 2 "reviewers" listed are not part of the team and it doesnt seem possible to add additional reviewers. Can you sign off or advise on how to add another reviewer to the list?

    @mentat9
    Copy link
    Member

    mentat9 commented Nov 16, 2021

    @mentat9 - I'm not sure why but the 2 "reviewers" listed are not part of the team and it doesnt seem possible to add additional reviewers. Can you sign off or advise on how to add another reviewer to the list?

    @giladsu, ARM reviewers aren't authorized to approve or merge PRs. We just review and approve changes to the REST layer. If your PR isn't getting traction, you can try email to SDK Release Owners (sdkowners@microsoft.com) to get some help.

    @msyyc msyyc merged commit 9dee51c into Azure:main Nov 19, 2021
    LeiWang3 pushed a commit to LeiWang3/azure-rest-api-specs that referenced this pull request Mar 31, 2022
    * Added new Prometheus Rule Groups type
    
    * Added list example
    
    * Added missing brackets
    
    * Added to readme
    
    * Fixed readme
    
    * Added delete example
    
    * Added get example
    
    * Added create example
    
    * Added patch example
    
    * Test
    
    * Fixes
    
    * Added missing brace
    
    * Added rule group name
    
    * Fixed
    
    * Pretier
    
    * Tool fix
    
    * Update readme
    
    * Another prettier fix
    
    * More
    
    * Added system data
    
    * Removed referenced file
    
    * Removed system data
    
    * Added location to patch
    
    * Added back systemdata
    
    * Fixed systemdata
    
    * Changes
    
    * Fixed issue
    
    * Added operations
    
    * CR fixes
    
    * Using common parameters
    
    * Last CR fixes
    Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
    Labels
    ARMSignedOff <valid label in PR review process>add this label when ARM approve updates after review CI-BreakingChange-Go CI-BreakingChange-Go-V2
    Projects
    None yet
    Development

    Successfully merging this pull request may close these issues.

    3 participants