-
Notifications
You must be signed in to change notification settings - Fork 385
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_integration_azure] Add resource_collection_enabled #2203
[datadog_integration_azure] Add resource_collection_enabled #2203
Conversation
…collection-new-sdk
docs/resources/dashboard.md
Outdated
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
autogenerated by make docs
, not my change
docs/resources/integration_azure.md
Outdated
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product will scan resource configurations monitored by this app registration. | ||
Note: This requires `resource_collection_enabled` to be set to true. Defaults to `false`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product will scan resource configurations monitored by this app registration. | |
Note: This requires `resource_collection_enabled` to be set to true. Defaults to `false`. | |
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. | |
**Note:** This parameter requires `resource_collection_enabled` to be set to true. `resource_collection_enabled` defaults to `false`, so change it to `true` if you enable `cspm_enabled`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
the Defaults to false.
part is autogenerated at the end, however the resource_collection_enabled
is optional, the only constraint set by the API is that if cspm_enabled
is true
, then resource_collection_enabled
cannot be explicitly set to false
.
would something like the following work?
**Note:** This parameter cannot be set to true if `resource_collection_enabled` is explicitly set to false, as this feature depends on resource collection. Defaults to `false`.
docs/resources/integration_azure.md
Outdated
@@ -41,9 +41,11 @@ resource "datadog_integration_azure" "sandbox" { | |||
- `app_service_plan_filters` (String) This comma-separated list of tags (in the form `key:value,key:value`) defines a filter that Datadog uses when collecting metrics from Azure App Service Plans. Only App Service Plans that match one of the defined tags are imported into Datadog. The rest, including the apps and functions running on them, are ignored. This also filters the metrics for any App or Function running on the App Service Plan(s). Defaults to `""`. | |||
- `automute` (Boolean) Silence monitors for expected Azure VM shutdowns. Defaults to `false`. | |||
- `container_app_filters` (String) This comma-separated list of tags (in the form `key:value,key:value`) defines a filter that Datadog uses when collecting metrics from Azure Container Apps. Only Container Apps that match one of the defined tags are imported into Datadog. Defaults to `""`. | |||
- `cspm_enabled` (Boolean) Enable Cloud Security Management Misconfigurations for your organization. Defaults to `false`. | |||
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product will scan resource configurations monitored by this app registration. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product will scan resource configurations monitored by this app registration. | |
- `cspm_enabled` (Boolean) When enabled, Datadog’s Cloud Security Management product scans resource configurations monitored by this app registration. |
Updated suggestion based on our conversation.
Adds Resource Collection field (
resource_collection_enabled
) to the Azure Integration.The new field is optional with no default, as it interacts with
cspm_enabled
so we want to let the API dictate the behavior when not specified by not providing a default value here.