@@ -907,7 +907,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
907
907
}"""
908
908
909
909
val docQuery = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = testQueryName, fields = listOf ())
910
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" $testIndexPrefix * " ), listOf (docQuery))
910
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" ${ testIndexPrefix} 1 " , " ${testIndexPrefix} 2 " ), listOf (docQuery))
911
911
912
912
val trigger = randomDocumentLevelTrigger(condition = Script (" query[name=$testQueryName ]" ))
913
913
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -951,7 +951,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
951
951
}"""
952
952
953
953
val docQuery = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = testQueryName, fields = listOf ())
954
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" $testIndexPrefix * " ), listOf (docQuery))
954
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" ${ testIndexPrefix} 1 " , " ${testIndexPrefix} 2 " ), listOf (docQuery))
955
955
956
956
val trigger = randomDocumentLevelTrigger(condition = Script (" query[name=$testQueryName ]" ))
957
957
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -999,7 +999,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
999
999
}"""
1000
1000
1001
1001
val docQuery = DocLevelQuery (query = " NOT (test_field:\" us-west-1\" )" , name = testQueryName, fields = listOf ())
1002
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" $testIndexPrefix * " ), listOf (docQuery))
1002
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" ${ testIndexPrefix} 1 " , " ${testIndexPrefix} 2 " ), listOf (docQuery))
1003
1003
1004
1004
val trigger = randomDocumentLevelTrigger(condition = Script (" query[name=$testQueryName ]" ))
1005
1005
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1040,7 +1040,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1040
1040
}"""
1041
1041
1042
1042
val docQuery = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = " 3" , fields = listOf ())
1043
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery))
1043
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " ), listOf (docQuery))
1044
1044
1045
1045
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1046
1046
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1132,7 +1132,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1132
1132
name = " 5" ,
1133
1133
fields = listOf ()
1134
1134
)
1135
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery1, docQuery2))
1135
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " ), listOf (docQuery1, docQuery2))
1136
1136
1137
1137
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1138
1138
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1265,7 +1265,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1265
1265
name = " 5" ,
1266
1266
fields = listOf ()
1267
1267
)
1268
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery))
1268
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " ), listOf (docQuery))
1269
1269
1270
1270
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1271
1271
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1352,7 +1352,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1352
1352
name = " 5" ,
1353
1353
fields = listOf ()
1354
1354
)
1355
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery))
1355
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " ), listOf (docQuery))
1356
1356
1357
1357
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1358
1358
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1475,7 +1475,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1475
1475
fields = listOf ()
1476
1476
)
1477
1477
1478
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery1, docQuery2))
1478
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " , " test4 " ), listOf (docQuery1, docQuery2))
1479
1479
1480
1480
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1481
1481
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1520,7 +1520,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1520
1520
}"""
1521
1521
1522
1522
val docQuery = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = " 3" , fields = listOf ())
1523
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery))
1523
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " ), listOf (docQuery))
1524
1524
1525
1525
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1526
1526
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -1570,7 +1570,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
1570
1570
1571
1571
val docQuery1 = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = " 3" , fields = listOf ())
1572
1572
val docQuery2 = DocLevelQuery (query = " test_field_new:\" us-west-2\" " , name = " 4" , fields = listOf ())
1573
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery1, docQuery2))
1573
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " ), listOf (docQuery1, docQuery2))
1574
1574
1575
1575
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
1576
1576
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -2025,7 +2025,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
2025
2025
indexDoc(dataStreamName2, " 0" , testDoc)
2026
2026
2027
2027
val docQuery = DocLevelQuery (query = " test_field:\" us-west-2\" " , name = " 3" , fields = listOf ())
2028
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test-datastream* " ), listOf (docQuery))
2028
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test-datastream1 " , " test-datastream2 " ), listOf (docQuery))
2029
2029
2030
2030
val action = randomAction(template = randomTemplateScript(" Hello {{ctx.monitor.name}}" ), destinationId = createDestination().id)
2031
2031
val monitor = createMonitor(
@@ -2327,7 +2327,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
2327
2327
2328
2328
val query = " NOT test_field:\" us-west-1\" AND _exists_: test_field"
2329
2329
val docQuery = DocLevelQuery (query = query, name = testQueryName, fields = listOf ())
2330
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" $testIndexPrefix * " ), listOf (docQuery))
2330
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" ${ testIndexPrefix} 1, ${testIndexPrefix} 2 " ), listOf (docQuery))
2331
2331
2332
2332
val trigger = randomDocumentLevelTrigger(condition = Script (" query[name=$testQueryName ]" ))
2333
2333
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -2439,7 +2439,8 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
2439
2439
fields = listOf ()
2440
2440
)
2441
2441
2442
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test*" ), listOf (docQuery1, docQuery2))
2442
+ val docLevelInput =
2443
+ DocLevelMonitorInput (" description" , listOf (" $testIndex " , " $testIndex2 " , " $testIndex4 " ), listOf (docQuery1, docQuery2))
2443
2444
2444
2445
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
2445
2446
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
@@ -2521,7 +2522,7 @@ class DocumentMonitorRunnerIT : AlertingRestTestCase() {
2521
2522
name = " 5" ,
2522
2523
fields = listOf ()
2523
2524
)
2524
- val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test* " ), listOf (docQuery))
2525
+ val docLevelInput = DocLevelMonitorInput (" description" , listOf (" test1 " , " test2 " ), listOf (docQuery))
2525
2526
2526
2527
val trigger = randomDocumentLevelTrigger(condition = ALWAYS_RUN )
2527
2528
val monitor = createMonitor(randomDocumentLevelMonitor(inputs = listOf (docLevelInput), triggers = listOf (trigger)))
0 commit comments