-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
New Resource:
azurerm_dynatrace_monitor
(#27432)
* New resources: azurerm_dynatrace_monitors, azurerm_dynatrace_tag_rules * Adding documentation * Add subcategory * Renaming parameters * change variable names * Fix acc tests * Renaming variables * fix schema * fix imports * retrigger teamcity run * rebase dynatrace * Update API * New Resource: azurerm_dynatrace_monitors * sort imports * Fix imports * Fix lint * Fix gencheck * Fix gofmt * Remove redundant condition * Address PR comments * Update docs * Update expand/flatten identity helper * Add prechecks * remove effective date, testing * modified tests, replace pointers * modified docs * upgrade vendor * fix go gen * skip tests * inclined some functions, changed docs * fix imports * update vendors * inlined values, add tracking issue * Format code to follow guidance * format acc test
- Loading branch information
1 parent
d749958
commit 4b761e8
Showing
55 changed files
with
3,514 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
package client | ||
|
||
import ( | ||
"fmt" | ||
|
||
"github.com/hashicorp/go-azure-sdk/resource-manager/dynatrace/2023-04-27/monitors" | ||
"github.com/hashicorp/terraform-provider-azurerm/internal/common" | ||
) | ||
|
||
type Client struct { | ||
*monitors.MonitorsClient | ||
} | ||
|
||
func NewClient(o *common.ClientOptions) (*Client, error) { | ||
monitorClient, err := monitors.NewMonitorsClientWithBaseURI(o.Environment.ResourceManager) | ||
if err != nil { | ||
return nil, fmt.Errorf("building Dynatrace Monitor client: %+v", err) | ||
} | ||
o.Configure(monitorClient.Client, o.Authorizers.ResourceManager) | ||
|
||
return &Client{ | ||
MonitorsClient: monitorClient, | ||
}, nil | ||
} |
Oops, something went wrong.