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

Not able to convert the new keywords which is defined in datadog json such as formulas, response_type, name #63

Open
surajtikoo opened this issue Jul 30, 2021 · 4 comments
Labels
bug Something isn't working

Comments

@surajtikoo
Copy link

Describe the bug
As per the new datadog dashboard, few attributes are not able to convert by the datadog converter plugin

To Reproduce
Use the below JSON to reproduce the problem

{ "title": "An example screenboard which causes the issue" }

{
"title": "test.dev.edit",
"description": "",
"widgets": [
{
"id": 6724092998888202,
"layout": {
"x": 8,
"y": 20,
"width": 8,
"height": 6
},
"definition": {
"title_size": "16",
"title_align": "left",
"type": "query_value",
"requests": [
{
"formulas": [
{
"formula": "query1"
}
],
"response_format": "scalar",
"queries": [
{
"query": "avg:test.stats-cancellation}.rollup(86400)",
"data_source": "metrics",
"name": "query1",
"aggregator": "last"
}
]
}
],
"autoscale": false,
"precision": 0
}
}
],
"template_variables": [
{
"name": "DashEnv",
"default": "prod2",
"prefix": "environment"
}
],
"layout_type": "free",
"is_read_only": false,
"notify_list": [],
"id": "a9e-yvm-s3z"
}
Expected terraform code
It should be able to convert.

resource "datadog_dashboard" "not broken, woo!" { ... }

Screenshots
If applicable, add screenshots to help explain your problem.
image

Additional context
Add any other context about the problem here.

@surajtikoo surajtikoo added the bug Something isn't working label Jul 30, 2021
@fgm
Copy link

fgm commented Aug 18, 2021

See PR #62

@caleb15
Copy link

caleb15 commented Jan 14, 2022

same issue with key 'query_config'

Truncated example:

{
	"id": 1,
	"name": "foo",
	"options": {
		"queryConfig": {
			"track": "logs",
			"timeRange": {
				"to": 1630423439532,
				"live": true,
				"from": 1627831439532
			},
			"queryString": "example query",
			"indexes": [],
			"live": true,
			"queryIsFailed": false
		},
	},
}

@millad90s
Copy link

same issue with show_title
❗️Can't convert key 'show_title'

"widgets": [{ "id": 8450562588885112, "definition": { "title": "About Postgres", "title_align": "center", "type": "group", "show_title": false, }}

@fgm
Copy link

fgm commented Feb 25, 2022

@millad90s Does it work with PR #62 applied ?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

4 participants