|
1 | 1 | package org.opensearch.commons.alerting.model
|
2 | 2 |
|
3 | 3 | import org.opensearch.common.CheckedFunction
|
4 |
| -import org.opensearch.common.ParseField |
5 | 4 | import org.opensearch.common.UUIDs
|
6 | 5 | import org.opensearch.common.io.stream.StreamInput
|
7 | 6 | import org.opensearch.common.io.stream.StreamOutput
|
8 |
| -import org.opensearch.common.xcontent.NamedXContentRegistry |
9 |
| -import org.opensearch.common.xcontent.ToXContent |
10 |
| -import org.opensearch.common.xcontent.XContentBuilder |
11 |
| -import org.opensearch.common.xcontent.XContentParser |
12 | 7 | import org.opensearch.common.xcontent.XContentParserUtils
|
13 | 8 | import org.opensearch.commons.alerting.aggregation.bucketselectorext.BucketSelectorExtAggregationBuilder
|
14 | 9 | import org.opensearch.commons.alerting.model.Trigger.Companion.ACTIONS_FIELD
|
15 | 10 | import org.opensearch.commons.alerting.model.Trigger.Companion.ID_FIELD
|
16 | 11 | import org.opensearch.commons.alerting.model.Trigger.Companion.NAME_FIELD
|
17 | 12 | import org.opensearch.commons.alerting.model.Trigger.Companion.SEVERITY_FIELD
|
18 | 13 | import org.opensearch.commons.alerting.model.action.Action
|
| 14 | +import org.opensearch.core.ParseField |
| 15 | +import org.opensearch.core.xcontent.NamedXContentRegistry |
| 16 | +import org.opensearch.core.xcontent.ToXContent |
| 17 | +import org.opensearch.core.xcontent.XContentBuilder |
| 18 | +import org.opensearch.core.xcontent.XContentParser |
19 | 19 | import java.io.IOException
|
20 | 20 |
|
21 | 21 | data class BucketLevelTrigger(
|
@@ -83,7 +83,8 @@ data class BucketLevelTrigger(
|
83 | 83 | const val PARENT_BUCKET_PATH = "parentBucketPath"
|
84 | 84 |
|
85 | 85 | val XCONTENT_REGISTRY = NamedXContentRegistry.Entry(
|
86 |
| - Trigger::class.java, ParseField(BUCKET_LEVEL_TRIGGER_FIELD), |
| 86 | + Trigger::class.java, |
| 87 | + ParseField(BUCKET_LEVEL_TRIGGER_FIELD), |
87 | 88 | CheckedFunction { parseInner(it) }
|
88 | 89 | )
|
89 | 90 |
|
|
0 commit comments