File tree Expand file tree Collapse file tree 1 file changed +4
-3
lines changed
src/data/markdown/translated-guides/en/02 Using k6 Expand file tree Collapse file tree 1 file changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -75,17 +75,18 @@ and k6 would exit with a non-zero exit code.
75
75
To use a threshold, follow these steps:
76
76
77
77
1. In the ` thresholds` property of the ` options` object, set a key using the name of the metric you want the threshold for:
78
- ` ` `
78
+ ` ` ` javascript
79
79
export const options = {
80
80
thresholds: {
81
- ...
81
+ /* ... * /
82
+ }
82
83
}
83
84
` ` `
84
85
2. Define at least one threshold expression. You can do this in two ways:
85
86
- The short format puts all threshold expressions as strings in an array.
86
87
- The long format puts each threshold in an object, with extra properties to [abort on failure](# abort).
87
88
88
- ` ` `
89
+ ` ` ` javascript
89
90
export const options = {
90
91
thresholds: {
91
92
//short format
You can’t perform that action at this time.
0 commit comments