|
| 1 | +// Jest Snapshot v1, https://jestjs.io/docs/snapshot-testing |
| 2 | + |
| 3 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state above threshold=5 alertValue=10 1`] = `"🚨 Alert for "My Search" - 10 lines found"`; |
| 4 | + |
| 5 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state above_exclusive threshold=5 alertValue=10 1`] = `"🚨 Alert for "My Search" - 10 lines found"`; |
| 6 | + |
| 7 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state below threshold=5 alertValue=2 1`] = `"🚨 Alert for "My Search" - 2 lines found"`; |
| 8 | + |
| 9 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state below_or_equal threshold=5 alertValue=3 1`] = `"🚨 Alert for "My Search" - 3 lines found"`; |
| 10 | + |
| 11 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state equal threshold=5 alertValue=5 1`] = `"🚨 Alert for "My Search" - 5 lines found"`; |
| 12 | + |
| 13 | +exports[`buildAlertMessageTemplateTitle saved search alerts ALERT state not_equal threshold=5 alertValue=10 1`] = `"🚨 Alert for "My Search" - 10 lines found"`; |
| 14 | + |
| 15 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) above threshold=5 okValue=3 1`] = `"✅ Alert for "My Search" - 3 lines found"`; |
| 16 | + |
| 17 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) above_exclusive threshold=5 okValue=3 1`] = `"✅ Alert for "My Search" - 3 lines found"`; |
| 18 | + |
| 19 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) below threshold=5 okValue=10 1`] = `"✅ Alert for "My Search" - 10 lines found"`; |
| 20 | + |
| 21 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) below_or_equal threshold=5 okValue=10 1`] = `"✅ Alert for "My Search" - 10 lines found"`; |
| 22 | + |
| 23 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) equal threshold=5 okValue=10 1`] = `"✅ Alert for "My Search" - 10 lines found"`; |
| 24 | + |
| 25 | +exports[`buildAlertMessageTemplateTitle saved search alerts OK state (resolved) not_equal threshold=5 okValue=5 1`] = `"✅ Alert for "My Search" - 5 lines found"`; |
| 26 | + |
| 27 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state above threshold=5 alertValue=10 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 10 meets or exceeds 5"`; |
| 28 | + |
| 29 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state above_exclusive threshold=5 alertValue=10 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 10 exceeds 5"`; |
| 30 | + |
| 31 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state below threshold=5 alertValue=2 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 2 falls below 5"`; |
| 32 | + |
| 33 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state below_or_equal threshold=5 alertValue=3 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 3 falls to or below 5"`; |
| 34 | + |
| 35 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state decimal threshold 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 10.1 meets or exceeds 1.5"`; |
| 36 | + |
| 37 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state equal threshold=5 alertValue=5 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 5 equals 5"`; |
| 38 | + |
| 39 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state integer threshold rounds value 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 11 meets or exceeds 5"`; |
| 40 | + |
| 41 | +exports[`buildAlertMessageTemplateTitle tile alerts ALERT state not_equal threshold=5 alertValue=10 1`] = `"🚨 Alert for "Test Chart" in "My Dashboard" - 10 does not equal 5"`; |
| 42 | + |
| 43 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) above threshold=5 okValue=3 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 3 falls below 5"`; |
| 44 | + |
| 45 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) above_exclusive threshold=5 okValue=3 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 3 falls to or below 5"`; |
| 46 | + |
| 47 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) below threshold=5 okValue=10 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 10 meets or exceeds 5"`; |
| 48 | + |
| 49 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) below_or_equal threshold=5 okValue=10 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 10 exceeds 5"`; |
| 50 | + |
| 51 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) equal threshold=5 okValue=10 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 10 does not equal 5"`; |
| 52 | + |
| 53 | +exports[`buildAlertMessageTemplateTitle tile alerts OK state (resolved) not_equal threshold=5 okValue=5 1`] = `"✅ Alert for "Test Chart" in "My Dashboard" - 5 equals 5"`; |
| 54 | + |
| 55 | +exports[`renderAlertTemplate saved search alerts ALERT state above threshold=5 alertValue=10 1`] = ` |
| 56 | +" |
| 57 | +10 lines found, which meets or exceeds the threshold of 5 lines |
| 58 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 59 | +
|
| 60 | +\`\`\` |
| 61 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 62 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 63 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 64 | +\`\`\`" |
| 65 | +`; |
| 66 | + |
| 67 | +exports[`renderAlertTemplate saved search alerts ALERT state above_exclusive threshold=5 alertValue=10 1`] = ` |
| 68 | +" |
| 69 | +10 lines found, which exceeds the threshold of 5 lines |
| 70 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 71 | +
|
| 72 | +\`\`\` |
| 73 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 74 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 75 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 76 | +\`\`\`" |
| 77 | +`; |
| 78 | + |
| 79 | +exports[`renderAlertTemplate saved search alerts ALERT state below threshold=5 alertValue=2 1`] = ` |
| 80 | +" |
| 81 | +2 lines found, which falls below the threshold of 5 lines |
| 82 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 83 | +
|
| 84 | +\`\`\` |
| 85 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 86 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 87 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 88 | +\`\`\`" |
| 89 | +`; |
| 90 | + |
| 91 | +exports[`renderAlertTemplate saved search alerts ALERT state below_or_equal threshold=5 alertValue=3 1`] = ` |
| 92 | +" |
| 93 | +3 lines found, which falls to or below the threshold of 5 lines |
| 94 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 95 | +
|
| 96 | +\`\`\` |
| 97 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 98 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 99 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 100 | +\`\`\`" |
| 101 | +`; |
| 102 | + |
| 103 | +exports[`renderAlertTemplate saved search alerts ALERT state equal threshold=5 alertValue=5 1`] = ` |
| 104 | +" |
| 105 | +5 lines found, which equals the threshold of 5 lines |
| 106 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 107 | +
|
| 108 | +\`\`\` |
| 109 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 110 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 111 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 112 | +\`\`\`" |
| 113 | +`; |
| 114 | + |
| 115 | +exports[`renderAlertTemplate saved search alerts ALERT state not_equal threshold=5 alertValue=10 1`] = ` |
| 116 | +" |
| 117 | +10 lines found, which does not equal the threshold of 5 lines |
| 118 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 119 | +
|
| 120 | +\`\`\` |
| 121 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 122 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 123 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 124 | +\`\`\`" |
| 125 | +`; |
| 126 | + |
| 127 | +exports[`renderAlertTemplate saved search alerts ALERT state with group 1`] = ` |
| 128 | +"Group: "http" |
| 129 | +10 lines found, which meets or exceeds the threshold of 5 lines |
| 130 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 131 | +
|
| 132 | +\`\`\` |
| 133 | +"2023-03-17 22:14:01","error","Failed to connect to database" |
| 134 | +"2023-03-17 22:13:45","error","Connection timeout after 30s" |
| 135 | +"2023-03-17 22:12:30","error","Retry limit exceeded" |
| 136 | +\`\`\`" |
| 137 | +`; |
| 138 | + |
| 139 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) above threshold=5 okValue=3 1`] = ` |
| 140 | +"The alert has been resolved. |
| 141 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 142 | +" |
| 143 | +`; |
| 144 | + |
| 145 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) above_exclusive threshold=5 okValue=3 1`] = ` |
| 146 | +"The alert has been resolved. |
| 147 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 148 | +" |
| 149 | +`; |
| 150 | + |
| 151 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) below threshold=5 okValue=10 1`] = ` |
| 152 | +"The alert has been resolved. |
| 153 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 154 | +" |
| 155 | +`; |
| 156 | + |
| 157 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) below_or_equal threshold=5 okValue=10 1`] = ` |
| 158 | +"The alert has been resolved. |
| 159 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 160 | +" |
| 161 | +`; |
| 162 | + |
| 163 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) equal threshold=5 okValue=10 1`] = ` |
| 164 | +"The alert has been resolved. |
| 165 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 166 | +" |
| 167 | +`; |
| 168 | + |
| 169 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) not_equal threshold=5 okValue=5 1`] = ` |
| 170 | +"The alert has been resolved. |
| 171 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 172 | +" |
| 173 | +`; |
| 174 | + |
| 175 | +exports[`renderAlertTemplate saved search alerts OK state (resolved) with group 1`] = ` |
| 176 | +"Group: "http" - The alert has been resolved. |
| 177 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 178 | +" |
| 179 | +`; |
| 180 | + |
| 181 | +exports[`renderAlertTemplate tile alerts ALERT state above threshold=5 alertValue=10 1`] = ` |
| 182 | +" |
| 183 | +10 meets or exceeds 5 |
| 184 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 185 | +" |
| 186 | +`; |
| 187 | + |
| 188 | +exports[`renderAlertTemplate tile alerts ALERT state above_exclusive threshold=5 alertValue=10 1`] = ` |
| 189 | +" |
| 190 | +10 exceeds 5 |
| 191 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 192 | +" |
| 193 | +`; |
| 194 | + |
| 195 | +exports[`renderAlertTemplate tile alerts ALERT state below threshold=5 alertValue=2 1`] = ` |
| 196 | +" |
| 197 | +2 falls below 5 |
| 198 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 199 | +" |
| 200 | +`; |
| 201 | + |
| 202 | +exports[`renderAlertTemplate tile alerts ALERT state below_or_equal threshold=5 alertValue=3 1`] = ` |
| 203 | +" |
| 204 | +3 falls to or below 5 |
| 205 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 206 | +" |
| 207 | +`; |
| 208 | + |
| 209 | +exports[`renderAlertTemplate tile alerts ALERT state decimal threshold 1`] = ` |
| 210 | +" |
| 211 | +10.1 meets or exceeds 1.5 |
| 212 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 213 | +" |
| 214 | +`; |
| 215 | + |
| 216 | +exports[`renderAlertTemplate tile alerts ALERT state equal threshold=5 alertValue=5 1`] = ` |
| 217 | +" |
| 218 | +5 equals 5 |
| 219 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 220 | +" |
| 221 | +`; |
| 222 | + |
| 223 | +exports[`renderAlertTemplate tile alerts ALERT state integer threshold rounds value 1`] = ` |
| 224 | +" |
| 225 | +11 meets or exceeds 5 |
| 226 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 227 | +" |
| 228 | +`; |
| 229 | + |
| 230 | +exports[`renderAlertTemplate tile alerts ALERT state not_equal threshold=5 alertValue=10 1`] = ` |
| 231 | +" |
| 232 | +10 does not equal 5 |
| 233 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 234 | +" |
| 235 | +`; |
| 236 | + |
| 237 | +exports[`renderAlertTemplate tile alerts ALERT state with group 1`] = ` |
| 238 | +"Group: "us-east-1" |
| 239 | +10 meets or exceeds 5 |
| 240 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 241 | +" |
| 242 | +`; |
| 243 | + |
| 244 | +exports[`renderAlertTemplate tile alerts OK state (resolved) above threshold=5 okValue=3 1`] = ` |
| 245 | +"The alert has been resolved. |
| 246 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 247 | +" |
| 248 | +`; |
| 249 | + |
| 250 | +exports[`renderAlertTemplate tile alerts OK state (resolved) above_exclusive threshold=5 okValue=3 1`] = ` |
| 251 | +"The alert has been resolved. |
| 252 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 253 | +" |
| 254 | +`; |
| 255 | + |
| 256 | +exports[`renderAlertTemplate tile alerts OK state (resolved) below threshold=5 okValue=10 1`] = ` |
| 257 | +"The alert has been resolved. |
| 258 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 259 | +" |
| 260 | +`; |
| 261 | + |
| 262 | +exports[`renderAlertTemplate tile alerts OK state (resolved) below_or_equal threshold=5 okValue=10 1`] = ` |
| 263 | +"The alert has been resolved. |
| 264 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 265 | +" |
| 266 | +`; |
| 267 | + |
| 268 | +exports[`renderAlertTemplate tile alerts OK state (resolved) equal threshold=5 okValue=10 1`] = ` |
| 269 | +"The alert has been resolved. |
| 270 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 271 | +" |
| 272 | +`; |
| 273 | + |
| 274 | +exports[`renderAlertTemplate tile alerts OK state (resolved) not_equal threshold=5 okValue=5 1`] = ` |
| 275 | +"The alert has been resolved. |
| 276 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 277 | +" |
| 278 | +`; |
| 279 | + |
| 280 | +exports[`renderAlertTemplate tile alerts OK state (resolved) with group 1`] = ` |
| 281 | +"Group: "us-east-1" - The alert has been resolved. |
| 282 | +Time Range (UTC): [Mar 17 10:10:00 PM - Mar 17 10:15:00 PM) |
| 283 | +" |
| 284 | +`; |
0 commit comments