Skip to content

Commit

Permalink
New Resource: azurerm_monitor_data_collection_rule (#17342)
Browse files Browse the repository at this point in the history
  • Loading branch information
teowa authored Jul 19, 2022
1 parent ee0ab94 commit 4146eda
Show file tree
Hide file tree
Showing 31 changed files with 3,120 additions and 1 deletion.
1 change: 1 addition & 0 deletions internal/provider/services.go
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,7 @@ func SupportedTypedServices() []sdk.TypedServiceRegistration {
keyvault.Registration{},
loadbalancer.Registration{},
loadtest.Registration{},
monitor.Registration{},
mssql.Registration{},
policy.Registration{},
resource.Registration{},
Expand Down
6 changes: 6 additions & 0 deletions internal/services/monitor/client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ import (
"github.com/Azure/azure-sdk-for-go/services/preview/alertsmanagement/mgmt/2019-06-01-preview/alertsmanagement"
classic "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-07-01-preview/insights"
newActionGroupClient "github.com/Azure/azure-sdk-for-go/services/preview/monitor/mgmt/2021-09-01-preview/insights"
"github.com/hashicorp/go-azure-sdk/resource-manager/insights/2021-04-01/datacollectionrules"
"github.com/hashicorp/terraform-provider-azurerm/internal/common"
)

Expand All @@ -24,6 +25,7 @@ type Client struct {
ActionGroupsClient *newActionGroupClient.ActionGroupsClient
ActivityLogAlertsClient *insights.ActivityLogAlertsClient
AlertRulesClient *classic.AlertRulesClient
DataCollectionRulesClient *datacollectionrules.DataCollectionRulesClient
DiagnosticSettingsClient *classic.DiagnosticSettingsClient
DiagnosticSettingsCategoryClient *classic.DiagnosticSettingsCategoryClient
LogProfilesClient *classic.LogProfilesClient
Expand Down Expand Up @@ -55,6 +57,9 @@ func NewClient(o *common.ClientOptions) *Client {
AlertRulesClient := classic.NewAlertRulesClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&AlertRulesClient.Client, o.ResourceManagerAuthorizer)

DataCollectionRulesClient := datacollectionrules.NewDataCollectionRulesClientWithBaseURI(o.ResourceManagerEndpoint)
o.ConfigureClient(&DataCollectionRulesClient.Client, o.ResourceManagerAuthorizer)

DiagnosticSettingsClient := classic.NewDiagnosticSettingsClientWithBaseURI(o.ResourceManagerEndpoint, o.SubscriptionId)
o.ConfigureClient(&DiagnosticSettingsClient.Client, o.ResourceManagerAuthorizer)

Expand Down Expand Up @@ -84,6 +89,7 @@ func NewClient(o *common.ClientOptions) *Client {
ActionGroupsClient: &ActionGroupsClient,
ActivityLogAlertsClient: &ActivityLogAlertsClient,
AlertRulesClient: &AlertRulesClient,
DataCollectionRulesClient: &DataCollectionRulesClient,
DiagnosticSettingsClient: &DiagnosticSettingsClient,
DiagnosticSettingsCategoryClient: &DiagnosticSettingsCategoryClient,
LogProfilesClient: &LogProfilesClient,
Expand Down
Loading

0 comments on commit 4146eda

Please sign in to comment.