@grafana/k6-test-builder 0.8.14 → 0.8.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +11 -1
- package/dist/index.js +7 -7
- package/dist/module.js +7 -7
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -2,9 +2,19 @@ import { FocusEventHandler, AnchorHTMLAttributes, ReactNode, ElementType, ReactE
|
|
|
2
2
|
import { InvalidArchiveError } from "har-to-k6";
|
|
3
3
|
import { ThemeOptions } from "@material-ui/core/styles/createTheme";
|
|
4
4
|
import { GrafanaTheme2 } from "@grafana/data";
|
|
5
|
+
interface VUhBreakdown {
|
|
6
|
+
base_total_vuh: number;
|
|
7
|
+
protocol_vuh: number;
|
|
8
|
+
browser_vuh: number;
|
|
9
|
+
reduction_rate: number | null;
|
|
10
|
+
reduction_rate_breakdown: {
|
|
11
|
+
volume: number;
|
|
12
|
+
local_run: number;
|
|
13
|
+
} | null;
|
|
14
|
+
}
|
|
5
15
|
interface VuhStats {
|
|
6
16
|
vuh_usage: number | undefined;
|
|
7
|
-
|
|
17
|
+
vuh_breakdown: VUhBreakdown;
|
|
8
18
|
}
|
|
9
19
|
interface Metadata {
|
|
10
20
|
vuh: VuhStats;
|
package/dist/index.js
CHANGED
|
@@ -15691,12 +15691,12 @@ const $723b70ee4d7f62e8$export$1ae172e61ce3735b = /*#__PURE__*/ (0, $gkIgo$react
|
|
|
15691
15691
|
|
|
15692
15692
|
|
|
15693
15693
|
|
|
15694
|
-
const $4e99116d1d1b712a$export$f4f5234705b8ee7d = ({
|
|
15695
|
-
const {
|
|
15696
|
-
const original = (0, $4bac6ee95b8c8b72$export$24567f54a9be5ab9)(
|
|
15697
|
-
const
|
|
15698
|
-
const
|
|
15699
|
-
const reductionText =
|
|
15694
|
+
const $4e99116d1d1b712a$export$f4f5234705b8ee7d = ({ vuh_breakdown: vuh_breakdown, vuh_usage: vuh_usage = 0 })=>{
|
|
15695
|
+
const { base_total_vuh: base_total_vuh = 0, reduction_rate: reduction_rate = 0 } = vuh_breakdown;
|
|
15696
|
+
const original = (0, $4bac6ee95b8c8b72$export$24567f54a9be5ab9)(base_total_vuh);
|
|
15697
|
+
const reduced = (0, $4bac6ee95b8c8b72$export$24567f54a9be5ab9)(vuh_usage);
|
|
15698
|
+
const discount = (0, $4bac6ee95b8c8b72$export$c37640da124effef)(reduction_rate !== null && reduction_rate !== void 0 ? reduction_rate : 0);
|
|
15699
|
+
const reductionText = discount > 0 ? `; however, you were billed ${reduced} VUh due to a ${discount}% discount applied based on the size of the test.` : '. This test run was not eligible for any discounts.';
|
|
15700
15700
|
return /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsxs)($4e99116d1d1b712a$var$Container, {
|
|
15701
15701
|
children: [
|
|
15702
15702
|
/*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsxs)("span", {
|
|
@@ -15739,7 +15739,7 @@ const $420b9b2911eb0b31$export$692b9323eea6a0ee = ()=>{
|
|
|
15739
15739
|
if (!(vuh !== null && vuh !== void 0 && vuh.vuh_usage)) return null;
|
|
15740
15740
|
return /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $gkIgo$materialuicore.Tooltip), {
|
|
15741
15741
|
title: /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsx)((0, $4e99116d1d1b712a$export$f4f5234705b8ee7d), {
|
|
15742
|
-
vuh
|
|
15742
|
+
...vuh
|
|
15743
15743
|
}),
|
|
15744
15744
|
interactive: true,
|
|
15745
15745
|
children: /*#__PURE__*/ (0, $gkIgo$reactjsxruntime.jsxs)((0, $7091d48bbccc61e3$export$eb2fcfdbd7ba97d4), {
|
package/dist/module.js
CHANGED
|
@@ -15667,12 +15667,12 @@ const $f90e6ac18264291c$export$1ae172e61ce3735b = /*#__PURE__*/ (0, $b7VBt$forwa
|
|
|
15667
15667
|
|
|
15668
15668
|
|
|
15669
15669
|
|
|
15670
|
-
const $7c10312fad43a1ee$export$f4f5234705b8ee7d = ({
|
|
15671
|
-
const {
|
|
15672
|
-
const original = (0, $f54872b9dc7588c3$export$24567f54a9be5ab9)(
|
|
15673
|
-
const
|
|
15674
|
-
const
|
|
15675
|
-
const reductionText =
|
|
15670
|
+
const $7c10312fad43a1ee$export$f4f5234705b8ee7d = ({ vuh_breakdown: vuh_breakdown, vuh_usage: vuh_usage = 0 })=>{
|
|
15671
|
+
const { base_total_vuh: base_total_vuh = 0, reduction_rate: reduction_rate = 0 } = vuh_breakdown;
|
|
15672
|
+
const original = (0, $f54872b9dc7588c3$export$24567f54a9be5ab9)(base_total_vuh);
|
|
15673
|
+
const reduced = (0, $f54872b9dc7588c3$export$24567f54a9be5ab9)(vuh_usage);
|
|
15674
|
+
const discount = (0, $f54872b9dc7588c3$export$c37640da124effef)(reduction_rate !== null && reduction_rate !== void 0 ? reduction_rate : 0);
|
|
15675
|
+
const reductionText = discount > 0 ? `; however, you were billed ${reduced} VUh due to a ${discount}% discount applied based on the size of the test.` : '. This test run was not eligible for any discounts.';
|
|
15676
15676
|
return /*#__PURE__*/ (0, $b7VBt$jsxs)($7c10312fad43a1ee$var$Container, {
|
|
15677
15677
|
children: [
|
|
15678
15678
|
/*#__PURE__*/ (0, $b7VBt$jsxs)("span", {
|
|
@@ -15715,7 +15715,7 @@ const $d8f115728c3a4b86$export$692b9323eea6a0ee = ()=>{
|
|
|
15715
15715
|
if (!(vuh !== null && vuh !== void 0 && vuh.vuh_usage)) return null;
|
|
15716
15716
|
return /*#__PURE__*/ (0, $b7VBt$jsx)((0, $b7VBt$Tooltip), {
|
|
15717
15717
|
title: /*#__PURE__*/ (0, $b7VBt$jsx)((0, $7c10312fad43a1ee$export$f4f5234705b8ee7d), {
|
|
15718
|
-
vuh
|
|
15718
|
+
...vuh
|
|
15719
15719
|
}),
|
|
15720
15720
|
interactive: true,
|
|
15721
15721
|
children: /*#__PURE__*/ (0, $b7VBt$jsxs)((0, $9d9ef6b1aa606543$export$eb2fcfdbd7ba97d4), {
|