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

[datadog_powerpacks] Implement support for basic widgets #2157

Merged
merged 20 commits into from
Nov 3, 2023
Merged
Show file tree
Hide file tree
Changes from 9 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 9 additions & 0 deletions datadog/internal/utils/api_instances_helper.go
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ type ApiInstances struct {
opsgenieIntegrationApiV2 *datadogV2.OpsgenieIntegrationApi
organizationsApiV2 *datadogV2.OrganizationsApi
processesApiV2 *datadogV2.ProcessesApi
powerpackApiV2 *datadogV2.PowerpackApi
restrictionPolicyApiV2 *datadogV2.RestrictionPoliciesApi
rolesApiV2 *datadogV2.RolesApi
rumApiV2 *datadogV2.RUMApi
Expand Down Expand Up @@ -487,6 +488,14 @@ func (i *ApiInstances) GetProcessesApiV2() *datadogV2.ProcessesApi {
return i.processesApiV2
}

// GetPowerpackApiV2 get instance of PowerpackApi
func (i *ApiInstances) GetPowerpackApiV2() *datadogV2.PowerpackApi {
if i.powerpackApiV2 == nil {
i.powerpackApiV2 = datadogV2.NewPowerpackApi(i.HttpClient)
}
return i.powerpackApiV2
}

// GetRolesApiV2 get instance of RolesApi
func (i *ApiInstances) GetRolesApiV2() *datadogV2.RolesApi {
if i.rolesApiV2 == nil {
Expand Down
1 change: 1 addition & 0 deletions datadog/provider.go
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ func Provider() *schema.Provider {
"datadog_monitor_config_policy": resourceDatadogMonitorConfigPolicy(),
"datadog_monitor_json": resourceDatadogMonitorJSON(),
"datadog_organization_settings": resourceDatadogOrganizationSettings(),
"datadog_powerpack": resourceDatadogPowerpack(),
"datadog_role": resourceDatadogRole(),
"datadog_rum_application": resourceDatadogRUMApplication(),
"datadog_service_account": resourceDatadogServiceAccount(),
Expand Down
Loading