Skip to content

Commit

Permalink
fix: e2m test
Browse files Browse the repository at this point in the history
  • Loading branch information
celaus committed Jan 7, 2025
1 parent f64311c commit 5bdbde1
Showing 1 changed file with 22 additions and 20 deletions.
42 changes: 22 additions & 20 deletions coralogix/resource_coralogix_events2metric_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,7 @@ logs_query = {
metric_fields = {
method = {
target_base_metric_name = "methodtwo"
source_field = "duration"
},
geo_point = {
Expand Down Expand Up @@ -230,34 +231,35 @@ permutations = {

func testAccCoralogixResourceSpans2Metric(l *events2MetricTestFields) string {
return fmt.Sprintf(`resource "coralogix_events2metric" "test" {
name = "%s"
description = "%s"
spans_query = {
name = "%s"
description = "%s"
spans_query = {
lucene = "remote_addr_enriched:/.*/"
applications = ["nginx"]
actions = ["action-name"]
services = ["service-name"]
}
actions = ["action-name"]
services = ["service-name"]
}
metric_fields = {
metric_fields = {
method = {
source_field = "duration"
target_base_metric_name = "methodtwo"
source_field = "duration"
},
geo_point = {
source_field = "location_geopoint"
aggregations = {
max = {
enable = false
}
min = {
enable = false
}
avg = {
enable = true
source_field = "location_geopoint"
aggregations = {
max = {
enable = false
}
min = {
enable = false
}
avg = {
enable = true
}
}
}
}
}
}
metric_labels = {
Status = "status"
Expand Down

0 comments on commit 5bdbde1

Please sign in to comment.