You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This declaration configures thresholds for the metrics `metric_name1` and `metric_name2`.
218
218
To determine whether the threshold passes or fails, the script evaluates the `'threshold_expression'.`
219
219
220
-
The `'threshold_expression'`must follow the format:
220
+
The threshold expression must be inthe following format:
221
221
222
-
`aggregation_method operator value`
222
+
```
223
+
<aggregation_method><operator><value>
224
+
```
223
225
224
-
Examples:
226
+
For example:
225
227
226
228
- `avg < 200` // average duration must be less than 200ms
227
229
- `count >= 500` // count must be larger than or equal to 500
@@ -238,7 +240,7 @@ Each of the four [metric types](/using-k6/metrics/#metric-types) included in k6
238
240
| Rate |`rate`|
239
241
| Trend |`avg`, `min`, `max`, `med` and `p(N)` where `N` is a number between 0.0 and 100.0 meaning the percentile value to look at, e.g. `p(99.99)` means the 99.99th percentile. The unit for these values is milliseconds. |
240
242
241
-
Here is a (slightly contrived) sample script that uses all different types of metrics,
243
+
This (slightly contrived) sample script uses all different types of metrics,
0 commit comments