INNER CODE UNIT · Go

testAccSentryDashboardDataSourceConfig

jianyuan/terraform-provider-sentry · sentry/data_source_sentry_dashboard_test.go:68

func testAccSentryDashboardDataSourceConfig(dashboardTitle string) string {
	return testAccSentryOrganizationDataSourceConfig + fmt.Sprintf(`
resource "sentry_dashboard" "test" {
	organization = data.sentry_organization.test.slug
	title        = "%[1]s"

	widget {
		title        = "Custom Widget"
		display_type = "table"

		query {
			name       = "Metric"

			fields     = ["geo.country_code", "geo.region", "count()"]
			aggregates = ["count()"]
			conditions = "!event.type:transaction has:geo.country_code"
		}

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…