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

Add support for notification_report argument in post scan actions block of dataplex data quality scan #22068

Open
ematala opened this issue Mar 26, 2025 · 0 comments · May be fixed by GoogleCloudPlatform/magic-modules#13578

Comments

@ematala
Copy link

ematala commented Mar 26, 2025

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

As a user of Dataplex, I want to be notified about (failed) data quality scans via email.

The Dataplex REST API allows to pass a notificationReport argument inside the postScanActions object to configure email notifications like so:

{
  "postScanActions": {
    "notificationReport": {
      "recipients": {
        "emails": ["[email protected]"]
      },
      "scoreThresholdTrigger": {
        "scoreThreshold": 42
      },
      // or "jobFailureTrigger": {},
      // or "jobEndTrigger": {}
    }
  }
}

In order to use this feature inside a Terraform configuration, it would be great if it was possible to pass the notification_report argument into the post_scan_actions block which currently only supports the bigquery_export argument.

New or Affected Resource(s)

  • google_dataplex_datascan

Potential Terraform Configuration

resource "google_dataplex_datascan" "auto_data_quality_scan" {
  data_quality_spec {
    post_scan_actions {
      notification_report {
        recipients {
          emails = ["[email protected]"]
        }
        score_threshold_trigger {
          score_threshold = 42
        }
        # or job_failure_trigger {}
        # or job_end_trigger {}
      }
    }
  }
}

References

b/406869591

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants