Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
Signed-off-by: Abhinav Tamaskar <[email protected]>
  • Loading branch information
atammy-narmi committed Jan 9, 2024
1 parent 60209bd commit 81c3427
Showing 1 changed file with 44 additions and 1 deletion.
45 changes: 44 additions & 1 deletion provider/resource_opensearch_monitor_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,50 @@ var testAccOpensearchOpenDistroMonitorJSON = `
var testAccOpensearchOpenDistroMonitor = `
resource "opensearch_monitor" "test_monitor" {
body = <<EOF
` + testAccOpensearchOpenDistroMonitorJSON + `
{
"name": "test-monitor",
"type": "monitor",
"monitor_type": "query_level_monitor",
"enabled": true,
"schedule": {
"period": {
"interval": 1,
"unit": "MINUTES"
}
},
"inputs": [
{
"search": {
"indices": ["*"],
"query": {
"size": 0,
"aggregations": {},
"query": {
"bool": {
"adjust_pure_negative": true,
"boost": 1,
"filter": [
{
"range": {
"@timestamp": {
"boost": 1,
"from": "||-1h",
"to": "",
"include_lower": true,
"include_upper": true,
"format": "epoch_millis"
}
}
}
]
}
}
}
}
}
],
"triggers": []
}
EOF
}
`

0 comments on commit 81c3427

Please sign in to comment.