Skip to content

Commit bc0c7e3

Browse files
authored
feat: Adds datadog plugin resources (#5192)
#### Summary This pull request adds datadog resources as part of #4794 implementation <!-- Explain what problem this PR addresses --> <!--
1 parent 1074233 commit bc0c7e3

99 files changed

Lines changed: 3461 additions & 44 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

plugins/source/datadog/client/client.go

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import (
55
"fmt"
66

77
"github.com/DataDog/datadog-api-client-go/v2/api/datadog"
8-
"github.com/DataDog/datadog-api-client-go/v2/api/datadogV2"
98
"github.com/cloudquery/plugin-sdk/schema"
109
"github.com/cloudquery/plugin-sdk/specs"
1110
"github.com/pkg/errors"
@@ -83,11 +82,9 @@ func Configure(ctx context.Context, logger zerolog.Logger, s specs.Source) (sche
8382
apiClient := datadog.NewAPIClient(configuration)
8483

8584
client := Client{
86-
logger: logger,
87-
Accounts: cfSpec.Accounts,
88-
DDServices: DatadogServices{
89-
UsersAPI: datadogV2.NewUsersApi(apiClient),
90-
},
85+
logger: logger,
86+
Accounts: cfSpec.Accounts,
87+
DDServices: NewDatadogServices(apiClient),
9188
}
9289

9390
// Return the initialized client, and it will be passed to your resources

plugins/source/datadog/client/mocks/dashboard_lists_api.go

Lines changed: 53 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/source/datadog/client/mocks/dashboards_api.go

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/source/datadog/client/mocks/downtimes_api.go

Lines changed: 74 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/source/datadog/client/mocks/hosts_api.go

Lines changed: 58 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

plugins/source/datadog/client/mocks/incidents_api.go

Lines changed: 100 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)