Commit 74aed08
PPL Alerting: Execute Monitor and Monitor Stats (#1960)
* PPL Alerting initial commit
Signed-off-by: Dennis Toepker <[email protected]>
* removing unused get alerts params and adding serde tests for alertsv2 request and response
Signed-off-by: Dennis Toepker <[email protected]>
* adding get alerts rbac IT
Signed-off-by: Dennis Toepker <[email protected]>
* misc changes
Signed-off-by: Dennis Toepker <[email protected]>
* removing actioned upon TODO
Signed-off-by: Dennis Toepker <[email protected]>
* adding execute monitor request/response serde tests that are currently failing
Signed-off-by: Dennis Toepker <[email protected]>
* adding request response serde tests and passing in explicit readers and writers for PPLSQLMonitorRunResult serde
Signed-off-by: Dennis Toepker <[email protected]>
* finishing out request/response serde tests
Signed-off-by: Dennis Toepker <[email protected]>
* minor changes in tests
Signed-off-by: Dennis Toepker <[email protected]>
* adding debug logs for playground
Signed-off-by: Dennis Toepker <[email protected]>
* adding expires null check in alert expiration
Signed-off-by: Dennis Toepker <[email protected]>
* removing null check as expires duration should never be null
Signed-off-by: Dennis Toepker <[email protected]>
* cleanup
Signed-off-by: Dennis Toepker <[email protected]>
* updating timestamp field check to include any date type that includes the string date
Signed-off-by: Dennis Toepker <[email protected]>
* addressing PR comments
Signed-off-by: Dennis Toepker <[email protected]>
* misc logs changes
Signed-off-by: Dennis Toepker <[email protected]>
* changing default max query results to 1000 and replacing get alerts filters with constants
Signed-off-by: Dennis Toepker <[email protected]>
* putting query index parsing logic in try catch
Signed-off-by: Dennis Toepker <[email protected]>
* adding backtick trimming when reading index names in ppl query
Signed-off-by: Dennis Toepker <[email protected]>
* adding time measurements and logs
Signed-off-by: Dennis Toepker <[email protected]>
* refactoring PPL query execution call to use transport service with timeout instead of client
Signed-off-by: Dennis Toepker <[email protected]>
* adding monitor run timeout test
Signed-off-by: Dennis Toepker <[email protected]>
* removing return in timeout catch block to allow for monitors to get updated with last triggered times
Signed-off-by: Dennis Toepker <[email protected]>
* addressing pr comments
Signed-off-by: Dennis Toepker <[email protected]>
* addressing pr comments
Signed-off-by: Dennis Toepker <[email protected]>
* update monitor now ignores seqNo and primaryTerm, and eliminating monitor stats v2 api in favor of version parameter in existing monitor stats api
Signed-off-by: Dennis Toepker <[email protected]>
* adding experimental tags
Signed-off-by: Dennis Toepker <[email protected]>
---------
Signed-off-by: Dennis Toepker <[email protected]>
Co-authored-by: Dennis Toepker <[email protected]>1 parent d9614ba commit 74aed08
File tree
65 files changed
+3513
-393
lines changed- alerting/src
- main/kotlin/org/opensearch/alerting
- actionv2
- alertsv2
- modelv2
- resthandlerv2
- script
- settings
- transportv2
- transport
- workflow
- test/kotlin/org/opensearch/alerting
- actionv2
- alertsv2
- modelv2
- resthandler
- core/src/main/kotlin/org/opensearch/alerting/core
- action/node
- ppl
- resthandler
- schedule
- settings
Some content is hidden
Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.
65 files changed
+3513
-393
lines changedLines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
15 | 15 | | |
16 | 16 | | |
17 | 17 | | |
| 18 | + | |
18 | 19 | | |
19 | 20 | | |
20 | 21 | | |
| |||
62 | 63 | | |
63 | 64 | | |
64 | 65 | | |
| 66 | + | |
65 | 67 | | |
66 | 68 | | |
67 | 69 | | |
| |||
99 | 101 | | |
100 | 102 | | |
101 | 103 | | |
| 104 | + | |
102 | 105 | | |
103 | 106 | | |
104 | 107 | | |
| |||
245 | 248 | | |
246 | 249 | | |
247 | 250 | | |
| 251 | + | |
248 | 252 | | |
249 | 253 | | |
250 | 254 | | |
251 | | - | |
| 255 | + | |
252 | 256 | | |
253 | 257 | | |
254 | 258 | | |
| |||
288 | 292 | | |
289 | 293 | | |
290 | 294 | | |
| 295 | + | |
291 | 296 | | |
292 | 297 | | |
293 | 298 | | |
| |||
481 | 486 | | |
482 | 487 | | |
483 | 488 | | |
| 489 | + | |
484 | 490 | | |
485 | 491 | | |
486 | 492 | | |
| |||
Lines changed: 120 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
13 | 14 | | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
14 | 19 | | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
15 | 28 | | |
16 | 29 | | |
| 30 | + | |
17 | 31 | | |
| 32 | + | |
| 33 | + | |
18 | 34 | | |
19 | 35 | | |
20 | 36 | | |
21 | 37 | | |
22 | 38 | | |
23 | 39 | | |
24 | 40 | | |
| 41 | + | |
25 | 42 | | |
26 | 43 | | |
27 | 44 | | |
| |||
31 | 48 | | |
32 | 49 | | |
33 | 50 | | |
34 | | - | |
35 | | - | |
| 51 | + | |
| 52 | + | |
36 | 53 | | |
37 | 54 | | |
38 | 55 | | |
| |||
49 | 66 | | |
50 | 67 | | |
51 | 68 | | |
52 | | - | |
53 | | - | |
| 69 | + | |
| 70 | + | |
54 | 71 | | |
55 | 72 | | |
56 | 73 | | |
| |||
100 | 117 | | |
101 | 118 | | |
102 | 119 | | |
| 120 | + | |
| 121 | + | |
| 122 | + | |
| 123 | + | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
| 127 | + | |
| 128 | + | |
| 129 | + | |
| 130 | + | |
| 131 | + | |
| 132 | + | |
| 133 | + | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
| 145 | + | |
| 146 | + | |
| 147 | + | |
| 148 | + | |
| 149 | + | |
| 150 | + | |
| 151 | + | |
| 152 | + | |
| 153 | + | |
| 154 | + | |
| 155 | + | |
| 156 | + | |
| 157 | + | |
| 158 | + | |
| 159 | + | |
| 160 | + | |
| 161 | + | |
| 162 | + | |
| 163 | + | |
| 164 | + | |
| 165 | + | |
| 166 | + | |
| 167 | + | |
| 168 | + | |
| 169 | + | |
| 170 | + | |
| 171 | + | |
| 172 | + | |
| 173 | + | |
| 174 | + | |
| 175 | + | |
| 176 | + | |
| 177 | + | |
| 178 | + | |
| 179 | + | |
| 180 | + | |
| 181 | + | |
| 182 | + | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
| 193 | + | |
| 194 | + | |
| 195 | + | |
| 196 | + | |
| 197 | + | |
| 198 | + | |
| 199 | + | |
| 200 | + | |
| 201 | + | |
| 202 | + | |
| 203 | + | |
| 204 | + | |
| 205 | + | |
| 206 | + | |
| 207 | + | |
| 208 | + | |
| 209 | + | |
| 210 | + | |
| 211 | + | |
| 212 | + | |
| 213 | + | |
| 214 | + | |
| 215 | + | |
| 216 | + | |
| 217 | + | |
| 218 | + | |
103 | 219 | | |
Lines changed: 1 addition & 115 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
5 | 5 | | |
6 | 6 | | |
7 | 7 | | |
8 | | - | |
9 | | - | |
10 | | - | |
11 | | - | |
12 | | - | |
| 8 | + | |
13 | 9 | | |
14 | | - | |
15 | 10 | | |
16 | 11 | | |
17 | 12 | | |
18 | | - | |
19 | | - | |
20 | | - | |
21 | | - | |
22 | | - | |
23 | | - | |
24 | | - | |
25 | 13 | | |
26 | 14 | | |
27 | 15 | | |
28 | 16 | | |
29 | | - | |
30 | 17 | | |
31 | 18 | | |
32 | | - | |
33 | 19 | | |
34 | 20 | | |
35 | | - | |
36 | 21 | | |
37 | 22 | | |
38 | 23 | | |
| |||
93 | 78 | | |
94 | 79 | | |
95 | 80 | | |
96 | | - | |
97 | | - | |
98 | | - | |
99 | | - | |
100 | | - | |
101 | | - | |
102 | | - | |
103 | | - | |
104 | | - | |
105 | | - | |
106 | | - | |
107 | | - | |
108 | | - | |
109 | | - | |
110 | | - | |
111 | | - | |
112 | | - | |
113 | | - | |
114 | | - | |
115 | | - | |
116 | | - | |
117 | | - | |
118 | | - | |
119 | | - | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | | - | |
128 | | - | |
129 | | - | |
130 | | - | |
131 | | - | |
132 | | - | |
133 | | - | |
134 | | - | |
135 | | - | |
136 | | - | |
137 | | - | |
138 | | - | |
139 | | - | |
140 | | - | |
141 | | - | |
142 | | - | |
143 | | - | |
144 | | - | |
145 | | - | |
146 | | - | |
147 | | - | |
148 | | - | |
149 | | - | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
161 | | - | |
162 | | - | |
163 | | - | |
164 | | - | |
165 | | - | |
166 | | - | |
167 | | - | |
168 | | - | |
169 | | - | |
170 | | - | |
171 | | - | |
172 | | - | |
173 | | - | |
174 | | - | |
175 | | - | |
176 | | - | |
177 | | - | |
178 | | - | |
179 | | - | |
180 | | - | |
181 | | - | |
182 | | - | |
183 | | - | |
184 | | - | |
185 | | - | |
186 | | - | |
187 | | - | |
188 | | - | |
189 | | - | |
190 | | - | |
191 | | - | |
192 | | - | |
193 | | - | |
194 | | - | |
195 | 81 | | |
0 commit comments