-
Notifications
You must be signed in to change notification settings - Fork 389
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
[APM/Dashboards] add apm_stats_query #676
Conversation
55c3028
to
01cc1d4
Compare
if v, ok := terraformQuery["primary_tag"].(string); ok && len(v) != 0 { | ||
datadogQuery.SetPrimaryTag(v) | ||
} | ||
if v, ok := terraformQuery["row_type"].(datadogV1.ApmStatsQueryRowType); ok && len(v) != 0 { |
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.
I was getting an error for terraformQuery["row_type"].(string)
and I think this is the solution, but please let me know if there's a more correct way
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.
I think it might more make sense to do datadogQuery.SetRowType(datadogV1.ApmStatsQueryRowType(v))
.
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
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.
A small comment, please add a test, and change the documentation. Thanks!
if v, ok := terraformQuery["primary_tag"].(string); ok && len(v) != 0 { | ||
datadogQuery.SetPrimaryTag(v) | ||
} | ||
if v, ok := terraformQuery["row_type"].(datadogV1.ApmStatsQueryRowType); ok && len(v) != 0 { |
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.
I think it might more make sense to do datadogQuery.SetRowType(datadogV1.ApmStatsQueryRowType(v))
.
…raform-provider-datadog into alec.barrett/apm_stats_query
388aeb8
to
18ba8f3
Compare
/azp run |
Azure Pipelines successfully started running 1 pipeline(s). |
We are supporting a new query type in dashboards for APM data sources. This PR would allow users to import and create dashboards with this query using Terraform.
See https://github.com/DataDog/datadog-api-spec/pull/579 for API spec.