update for tech summit workshop

This commit is contained in:
David
2020-09-23 14:46:48 -04:00
parent a651b9cd73
commit a066ed3bd1
8 changed files with 149 additions and 4 deletions
+27
View File
@@ -0,0 +1,27 @@
import http from 'k6/http';
import { sleep } from 'k6';
import { Rate, Counter, Gauge, Trend } from 'k6/metrics';
const successRate = new Rate('success_rate');
const failureCount = new Counter('failures');
const lastStatusCode = new Gauge('status_code');
const responseTime = new Trend('response_time', true);
export const options = {
scenarios: {
ramp_to_current: {},
maintain_current: {},
ramp_to_expected: {},
maintain_expected: {},
},
thresholds: {},
};
/**
* This is the test case that should be executed.
*
* @param {any} data the data returned by setup
*/
export default function makeAPIRequest(data) {
}