Skip to content

Commit

Permalink
New Resource : azurerm_monitor_alert_prometheus_rule_group (#21751)
Browse files Browse the repository at this point in the history
  • Loading branch information
sinbai authored May 24, 2023
1 parent ec7694d commit a311a2c
Show file tree
Hide file tree
Showing 24 changed files with 1,880 additions and 0 deletions.
6 changes: 6 additions & 0 deletions internal/services/monitor/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement" // nolint: staticcheck
classic "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-07-01-preview/insights" // nolint: staticcheck
"github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2021-08-08/alertprocessingrules"
"github.com/hashicorp/go-azure-sdk/resource-manager/alertsmanagement/2023-03-01/prometheusrulegroups"
"github.com/hashicorp/go-azure-sdk/resource-manager/insights/2015-04-01/autoscalesettings"
"github.com/hashicorp/go-azure-sdk/resource-manager/insights/2016-03-01/logprofiles"
"github.com/hashicorp/go-azure-sdk/resource-manager/insights/2018-03-01/metricalerts"
Expand Down Expand Up @@ -39,6 +40,7 @@ type Client struct {
ActionGroupsClient *actiongroupsapis.ActionGroupsAPIsClient
ActivityLogsClient *classic.ActivityLogsClient
ActivityLogAlertsClient *activitylogalertsapis.ActivityLogAlertsAPIsClient
AlertPrometheusRuleGroupClient *prometheusrulegroups.PrometheusRuleGroupsClient
AlertRulesClient *classic.AlertRulesClient
DataCollectionEndpointsClient *datacollectionendpoints.DataCollectionEndpointsClient
DataCollectionRuleAssociationsClient *datacollectionruleassociations.DataCollectionRuleAssociationsClient
Expand Down Expand Up @@ -79,6 +81,9 @@ func NewClient(o *common.ClientOptions) *Client {
ActivityLogAlertsClient := activitylogalertsapis.NewActivityLogAlertsAPIsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&ActivityLogAlertsClient.Client, o.ResourceManagerAuthorizer)

AlertPrometheusRuleGroupClient := prometheusrulegroups.NewPrometheusRuleGroupsClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&AlertPrometheusRuleGroupClient.Client, o.ResourceManagerAuthorizer)

AlertRulesClient := classic.NewAlertRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&AlertRulesClient.Client, o.ResourceManagerAuthorizer)

Expand Down Expand Up @@ -126,6 +131,7 @@ func NewClient(o *common.ClientOptions) *Client {
ActionGroupsClient: &ActionGroupsClient,
ActivityLogsClient: &activityLogsClient,
ActivityLogAlertsClient: &ActivityLogAlertsClient,
AlertPrometheusRuleGroupClient: &AlertPrometheusRuleGroupClient,
AlertRulesClient: &AlertRulesClient,
AlertProcessingRulesClient: &AlertProcessingRulesClient,
DataCollectionEndpointsClient: &DataCollectionEndpointsClient,
Expand Down
Loading

0 comments on commit a311a2c

Please sign in to comment.