qualink 0.1.1 → 0.3.0
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/LICENSE +1 -1
- package/README.md +1 -0
- package/dist/cli/command-factory.d.ts +31 -19
- package/dist/cli/commands/biome.d.ts +31 -19
- package/dist/cli/commands/coverage-dotnet.d.ts +31 -19
- package/dist/cli/commands/coverage-js.d.ts +31 -19
- package/dist/cli/commands/eslint.d.ts +31 -19
- package/dist/cli/commands/lighthouse.d.ts +31 -19
- package/dist/cli/commands/lighthouse.js +4 -1
- package/dist/cli/commands/meta.d.ts +31 -19
- package/dist/cli/commands/sarif.d.ts +31 -19
- package/dist/cli/common-args.d.ts +16 -0
- package/dist/cli/common-args.js +4 -0
- package/dist/cli/send-to-sink.js +24 -7
- package/dist/collectors/eslint.d.ts +2 -0
- package/dist/collectors/eslint.js +32 -3
- package/dist/collectors/lighthouse.d.ts +4 -1
- package/dist/collectors/lighthouse.js +89 -1
- package/dist/sinks/index.d.ts +5 -1
- package/dist/sinks/index.js +14 -0
- package/dist/sinks/loki.d.ts +30 -0
- package/dist/sinks/loki.js +84 -0
- package/dist/types.d.ts +19 -0
- package/package.json +6 -6
package/LICENSE
CHANGED
package/README.md
CHANGED
|
@@ -71,6 +71,7 @@ If needed, you can still pass explicit values with `--repo`, `--branch`, `--comm
|
|
|
71
71
|
Sink configuration:
|
|
72
72
|
|
|
73
73
|
- `--sink elastic` (default) requires `ELASTIC_URL` and `ELASTIC_API_KEY`
|
|
74
|
+
- `--sink loki` requires `LOKI_URL`. Optional: `LOKI_USERNAME`, `LOKI_PASSWORD` (basic auth), `LOKI_TENANT_ID` (`X-Scope-OrgID` header for multi-tenant setups)
|
|
74
75
|
- `--sink stdout` prints normalized documents for debugging
|
|
75
76
|
|
|
76
77
|
Dry run mode:
|
|
@@ -11,65 +11,77 @@ interface CollectorCommandConfig<TExtra extends Record<string, unknown>> {
|
|
|
11
11
|
collect: (args: CommonArgs, metadata: CommonMetadata) => Promise<CollectorResult>;
|
|
12
12
|
}
|
|
13
13
|
export declare function createCollectorCommand<TExtra extends Record<string, unknown>>(config: CollectorCommandConfig<TExtra>): import("citty").CommandDef<{
|
|
14
|
-
input: {
|
|
14
|
+
readonly input: {
|
|
15
15
|
readonly type: "string";
|
|
16
16
|
readonly required: true;
|
|
17
17
|
};
|
|
18
|
-
sink: {
|
|
18
|
+
readonly sink: {
|
|
19
19
|
readonly type: "string";
|
|
20
20
|
readonly default: "elastic";
|
|
21
21
|
};
|
|
22
|
-
repo: {
|
|
22
|
+
readonly repo: {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
category: {
|
|
25
|
+
readonly category: {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
tags: {
|
|
28
|
+
readonly tags: {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
branch: {
|
|
31
|
+
readonly branch: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
};
|
|
34
|
-
"commit-sha": {
|
|
34
|
+
readonly "commit-sha": {
|
|
35
35
|
readonly type: "string";
|
|
36
36
|
};
|
|
37
|
-
"pipeline-run-id": {
|
|
37
|
+
readonly "pipeline-run-id": {
|
|
38
38
|
readonly type: "string";
|
|
39
39
|
};
|
|
40
|
-
"pipeline-provider": {
|
|
40
|
+
readonly "pipeline-provider": {
|
|
41
41
|
readonly type: "string";
|
|
42
42
|
};
|
|
43
|
-
environment: {
|
|
43
|
+
readonly environment: {
|
|
44
44
|
readonly type: "string";
|
|
45
45
|
readonly default: "ci";
|
|
46
46
|
};
|
|
47
|
-
package: {
|
|
47
|
+
readonly package: {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
project: {
|
|
50
|
+
readonly project: {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"collector-version": {
|
|
53
|
+
readonly "collector-version": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"elastic-url": {
|
|
56
|
+
readonly "elastic-url": {
|
|
57
57
|
readonly type: "string";
|
|
58
58
|
};
|
|
59
|
-
"elastic-api-key": {
|
|
59
|
+
readonly "elastic-api-key": {
|
|
60
60
|
readonly type: "string";
|
|
61
61
|
};
|
|
62
|
-
"
|
|
62
|
+
readonly "loki-url": {
|
|
63
63
|
readonly type: "string";
|
|
64
64
|
};
|
|
65
|
-
"
|
|
65
|
+
readonly "loki-username": {
|
|
66
66
|
readonly type: "string";
|
|
67
67
|
};
|
|
68
|
-
"
|
|
68
|
+
readonly "loki-password": {
|
|
69
|
+
readonly type: "string";
|
|
70
|
+
};
|
|
71
|
+
readonly "loki-tenant-id": {
|
|
72
|
+
readonly type: "string";
|
|
73
|
+
};
|
|
74
|
+
readonly "retry-max": {
|
|
75
|
+
readonly type: "string";
|
|
76
|
+
};
|
|
77
|
+
readonly "retry-backoff-ms": {
|
|
78
|
+
readonly type: "string";
|
|
79
|
+
};
|
|
80
|
+
readonly "allow-empty": {
|
|
69
81
|
readonly type: "boolean";
|
|
70
82
|
readonly default: false;
|
|
71
83
|
};
|
|
72
|
-
"dry-run": {
|
|
84
|
+
readonly "dry-run": {
|
|
73
85
|
readonly type: "boolean";
|
|
74
86
|
readonly default: false;
|
|
75
87
|
};
|
|
@@ -1,63 +1,75 @@
|
|
|
1
1
|
export declare const biomeCommand: import("citty").CommandDef<{
|
|
2
|
-
input: {
|
|
2
|
+
readonly input: {
|
|
3
3
|
readonly type: "string";
|
|
4
4
|
readonly required: true;
|
|
5
5
|
};
|
|
6
|
-
sink: {
|
|
6
|
+
readonly sink: {
|
|
7
7
|
readonly type: "string";
|
|
8
8
|
readonly default: "elastic";
|
|
9
9
|
};
|
|
10
|
-
repo: {
|
|
10
|
+
readonly repo: {
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
|
-
category: {
|
|
13
|
+
readonly category: {
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
|
-
tags: {
|
|
16
|
+
readonly tags: {
|
|
17
17
|
readonly type: "string";
|
|
18
18
|
};
|
|
19
|
-
branch: {
|
|
19
|
+
readonly branch: {
|
|
20
20
|
readonly type: "string";
|
|
21
21
|
};
|
|
22
|
-
"commit-sha": {
|
|
22
|
+
readonly "commit-sha": {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
"pipeline-run-id": {
|
|
25
|
+
readonly "pipeline-run-id": {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
"pipeline-provider": {
|
|
28
|
+
readonly "pipeline-provider": {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
environment: {
|
|
31
|
+
readonly environment: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
readonly default: "ci";
|
|
34
34
|
};
|
|
35
|
-
package: {
|
|
35
|
+
readonly package: {
|
|
36
36
|
readonly type: "string";
|
|
37
37
|
};
|
|
38
|
-
project: {
|
|
38
|
+
readonly project: {
|
|
39
39
|
readonly type: "string";
|
|
40
40
|
};
|
|
41
|
-
"collector-version": {
|
|
41
|
+
readonly "collector-version": {
|
|
42
42
|
readonly type: "string";
|
|
43
43
|
};
|
|
44
|
-
"elastic-url": {
|
|
44
|
+
readonly "elastic-url": {
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
};
|
|
47
|
-
"elastic-api-key": {
|
|
47
|
+
readonly "elastic-api-key": {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
"
|
|
50
|
+
readonly "loki-url": {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"
|
|
53
|
+
readonly "loki-username": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"
|
|
56
|
+
readonly "loki-password": {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly "loki-tenant-id": {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly "retry-max": {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly "retry-backoff-ms": {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly "allow-empty": {
|
|
57
69
|
readonly type: "boolean";
|
|
58
70
|
readonly default: false;
|
|
59
71
|
};
|
|
60
|
-
"dry-run": {
|
|
72
|
+
readonly "dry-run": {
|
|
61
73
|
readonly type: "boolean";
|
|
62
74
|
readonly default: false;
|
|
63
75
|
};
|
|
@@ -1,63 +1,75 @@
|
|
|
1
1
|
export declare const coverageDotnetCommand: import("citty").CommandDef<{
|
|
2
|
-
input: {
|
|
2
|
+
readonly input: {
|
|
3
3
|
readonly type: "string";
|
|
4
4
|
readonly required: true;
|
|
5
5
|
};
|
|
6
|
-
sink: {
|
|
6
|
+
readonly sink: {
|
|
7
7
|
readonly type: "string";
|
|
8
8
|
readonly default: "elastic";
|
|
9
9
|
};
|
|
10
|
-
repo: {
|
|
10
|
+
readonly repo: {
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
|
-
category: {
|
|
13
|
+
readonly category: {
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
|
-
tags: {
|
|
16
|
+
readonly tags: {
|
|
17
17
|
readonly type: "string";
|
|
18
18
|
};
|
|
19
|
-
branch: {
|
|
19
|
+
readonly branch: {
|
|
20
20
|
readonly type: "string";
|
|
21
21
|
};
|
|
22
|
-
"commit-sha": {
|
|
22
|
+
readonly "commit-sha": {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
"pipeline-run-id": {
|
|
25
|
+
readonly "pipeline-run-id": {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
"pipeline-provider": {
|
|
28
|
+
readonly "pipeline-provider": {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
environment: {
|
|
31
|
+
readonly environment: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
readonly default: "ci";
|
|
34
34
|
};
|
|
35
|
-
package: {
|
|
35
|
+
readonly package: {
|
|
36
36
|
readonly type: "string";
|
|
37
37
|
};
|
|
38
|
-
project: {
|
|
38
|
+
readonly project: {
|
|
39
39
|
readonly type: "string";
|
|
40
40
|
};
|
|
41
|
-
"collector-version": {
|
|
41
|
+
readonly "collector-version": {
|
|
42
42
|
readonly type: "string";
|
|
43
43
|
};
|
|
44
|
-
"elastic-url": {
|
|
44
|
+
readonly "elastic-url": {
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
};
|
|
47
|
-
"elastic-api-key": {
|
|
47
|
+
readonly "elastic-api-key": {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
"
|
|
50
|
+
readonly "loki-url": {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"
|
|
53
|
+
readonly "loki-username": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"
|
|
56
|
+
readonly "loki-password": {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly "loki-tenant-id": {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly "retry-max": {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly "retry-backoff-ms": {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly "allow-empty": {
|
|
57
69
|
readonly type: "boolean";
|
|
58
70
|
readonly default: false;
|
|
59
71
|
};
|
|
60
|
-
"dry-run": {
|
|
72
|
+
readonly "dry-run": {
|
|
61
73
|
readonly type: "boolean";
|
|
62
74
|
readonly default: false;
|
|
63
75
|
};
|
|
@@ -1,63 +1,75 @@
|
|
|
1
1
|
export declare const coverageJsCommand: import("citty").CommandDef<{
|
|
2
|
-
input: {
|
|
2
|
+
readonly input: {
|
|
3
3
|
readonly type: "string";
|
|
4
4
|
readonly required: true;
|
|
5
5
|
};
|
|
6
|
-
sink: {
|
|
6
|
+
readonly sink: {
|
|
7
7
|
readonly type: "string";
|
|
8
8
|
readonly default: "elastic";
|
|
9
9
|
};
|
|
10
|
-
repo: {
|
|
10
|
+
readonly repo: {
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
|
-
category: {
|
|
13
|
+
readonly category: {
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
|
-
tags: {
|
|
16
|
+
readonly tags: {
|
|
17
17
|
readonly type: "string";
|
|
18
18
|
};
|
|
19
|
-
branch: {
|
|
19
|
+
readonly branch: {
|
|
20
20
|
readonly type: "string";
|
|
21
21
|
};
|
|
22
|
-
"commit-sha": {
|
|
22
|
+
readonly "commit-sha": {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
"pipeline-run-id": {
|
|
25
|
+
readonly "pipeline-run-id": {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
"pipeline-provider": {
|
|
28
|
+
readonly "pipeline-provider": {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
environment: {
|
|
31
|
+
readonly environment: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
readonly default: "ci";
|
|
34
34
|
};
|
|
35
|
-
package: {
|
|
35
|
+
readonly package: {
|
|
36
36
|
readonly type: "string";
|
|
37
37
|
};
|
|
38
|
-
project: {
|
|
38
|
+
readonly project: {
|
|
39
39
|
readonly type: "string";
|
|
40
40
|
};
|
|
41
|
-
"collector-version": {
|
|
41
|
+
readonly "collector-version": {
|
|
42
42
|
readonly type: "string";
|
|
43
43
|
};
|
|
44
|
-
"elastic-url": {
|
|
44
|
+
readonly "elastic-url": {
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
};
|
|
47
|
-
"elastic-api-key": {
|
|
47
|
+
readonly "elastic-api-key": {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
"
|
|
50
|
+
readonly "loki-url": {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"
|
|
53
|
+
readonly "loki-username": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"
|
|
56
|
+
readonly "loki-password": {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly "loki-tenant-id": {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly "retry-max": {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly "retry-backoff-ms": {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly "allow-empty": {
|
|
57
69
|
readonly type: "boolean";
|
|
58
70
|
readonly default: false;
|
|
59
71
|
};
|
|
60
|
-
"dry-run": {
|
|
72
|
+
readonly "dry-run": {
|
|
61
73
|
readonly type: "boolean";
|
|
62
74
|
readonly default: false;
|
|
63
75
|
};
|
|
@@ -1,63 +1,75 @@
|
|
|
1
1
|
export declare const eslintCommand: import("citty").CommandDef<{
|
|
2
|
-
input: {
|
|
2
|
+
readonly input: {
|
|
3
3
|
readonly type: "string";
|
|
4
4
|
readonly required: true;
|
|
5
5
|
};
|
|
6
|
-
sink: {
|
|
6
|
+
readonly sink: {
|
|
7
7
|
readonly type: "string";
|
|
8
8
|
readonly default: "elastic";
|
|
9
9
|
};
|
|
10
|
-
repo: {
|
|
10
|
+
readonly repo: {
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
|
-
category: {
|
|
13
|
+
readonly category: {
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
|
-
tags: {
|
|
16
|
+
readonly tags: {
|
|
17
17
|
readonly type: "string";
|
|
18
18
|
};
|
|
19
|
-
branch: {
|
|
19
|
+
readonly branch: {
|
|
20
20
|
readonly type: "string";
|
|
21
21
|
};
|
|
22
|
-
"commit-sha": {
|
|
22
|
+
readonly "commit-sha": {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
"pipeline-run-id": {
|
|
25
|
+
readonly "pipeline-run-id": {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
"pipeline-provider": {
|
|
28
|
+
readonly "pipeline-provider": {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
environment: {
|
|
31
|
+
readonly environment: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
readonly default: "ci";
|
|
34
34
|
};
|
|
35
|
-
package: {
|
|
35
|
+
readonly package: {
|
|
36
36
|
readonly type: "string";
|
|
37
37
|
};
|
|
38
|
-
project: {
|
|
38
|
+
readonly project: {
|
|
39
39
|
readonly type: "string";
|
|
40
40
|
};
|
|
41
|
-
"collector-version": {
|
|
41
|
+
readonly "collector-version": {
|
|
42
42
|
readonly type: "string";
|
|
43
43
|
};
|
|
44
|
-
"elastic-url": {
|
|
44
|
+
readonly "elastic-url": {
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
};
|
|
47
|
-
"elastic-api-key": {
|
|
47
|
+
readonly "elastic-api-key": {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
"
|
|
50
|
+
readonly "loki-url": {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"
|
|
53
|
+
readonly "loki-username": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"
|
|
56
|
+
readonly "loki-password": {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly "loki-tenant-id": {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly "retry-max": {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly "retry-backoff-ms": {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly "allow-empty": {
|
|
57
69
|
readonly type: "boolean";
|
|
58
70
|
readonly default: false;
|
|
59
71
|
};
|
|
60
|
-
"dry-run": {
|
|
72
|
+
readonly "dry-run": {
|
|
61
73
|
readonly type: "boolean";
|
|
62
74
|
readonly default: false;
|
|
63
75
|
};
|
|
@@ -1,63 +1,75 @@
|
|
|
1
1
|
export declare const lighthouseCommand: import("citty").CommandDef<{
|
|
2
|
-
input: {
|
|
2
|
+
readonly input: {
|
|
3
3
|
readonly type: "string";
|
|
4
4
|
readonly required: true;
|
|
5
5
|
};
|
|
6
|
-
sink: {
|
|
6
|
+
readonly sink: {
|
|
7
7
|
readonly type: "string";
|
|
8
8
|
readonly default: "elastic";
|
|
9
9
|
};
|
|
10
|
-
repo: {
|
|
10
|
+
readonly repo: {
|
|
11
11
|
readonly type: "string";
|
|
12
12
|
};
|
|
13
|
-
category: {
|
|
13
|
+
readonly category: {
|
|
14
14
|
readonly type: "string";
|
|
15
15
|
};
|
|
16
|
-
tags: {
|
|
16
|
+
readonly tags: {
|
|
17
17
|
readonly type: "string";
|
|
18
18
|
};
|
|
19
|
-
branch: {
|
|
19
|
+
readonly branch: {
|
|
20
20
|
readonly type: "string";
|
|
21
21
|
};
|
|
22
|
-
"commit-sha": {
|
|
22
|
+
readonly "commit-sha": {
|
|
23
23
|
readonly type: "string";
|
|
24
24
|
};
|
|
25
|
-
"pipeline-run-id": {
|
|
25
|
+
readonly "pipeline-run-id": {
|
|
26
26
|
readonly type: "string";
|
|
27
27
|
};
|
|
28
|
-
"pipeline-provider": {
|
|
28
|
+
readonly "pipeline-provider": {
|
|
29
29
|
readonly type: "string";
|
|
30
30
|
};
|
|
31
|
-
environment: {
|
|
31
|
+
readonly environment: {
|
|
32
32
|
readonly type: "string";
|
|
33
33
|
readonly default: "ci";
|
|
34
34
|
};
|
|
35
|
-
package: {
|
|
35
|
+
readonly package: {
|
|
36
36
|
readonly type: "string";
|
|
37
37
|
};
|
|
38
|
-
project: {
|
|
38
|
+
readonly project: {
|
|
39
39
|
readonly type: "string";
|
|
40
40
|
};
|
|
41
|
-
"collector-version": {
|
|
41
|
+
readonly "collector-version": {
|
|
42
42
|
readonly type: "string";
|
|
43
43
|
};
|
|
44
|
-
"elastic-url": {
|
|
44
|
+
readonly "elastic-url": {
|
|
45
45
|
readonly type: "string";
|
|
46
46
|
};
|
|
47
|
-
"elastic-api-key": {
|
|
47
|
+
readonly "elastic-api-key": {
|
|
48
48
|
readonly type: "string";
|
|
49
49
|
};
|
|
50
|
-
"
|
|
50
|
+
readonly "loki-url": {
|
|
51
51
|
readonly type: "string";
|
|
52
52
|
};
|
|
53
|
-
"
|
|
53
|
+
readonly "loki-username": {
|
|
54
54
|
readonly type: "string";
|
|
55
55
|
};
|
|
56
|
-
"
|
|
56
|
+
readonly "loki-password": {
|
|
57
|
+
readonly type: "string";
|
|
58
|
+
};
|
|
59
|
+
readonly "loki-tenant-id": {
|
|
60
|
+
readonly type: "string";
|
|
61
|
+
};
|
|
62
|
+
readonly "retry-max": {
|
|
63
|
+
readonly type: "string";
|
|
64
|
+
};
|
|
65
|
+
readonly "retry-backoff-ms": {
|
|
66
|
+
readonly type: "string";
|
|
67
|
+
};
|
|
68
|
+
readonly "allow-empty": {
|
|
57
69
|
readonly type: "boolean";
|
|
58
70
|
readonly default: false;
|
|
59
71
|
};
|
|
60
|
-
"dry-run": {
|
|
72
|
+
readonly "dry-run": {
|
|
61
73
|
readonly type: "boolean";
|
|
62
74
|
readonly default: false;
|
|
63
75
|
};
|
|
@@ -7,6 +7,7 @@ export const lighthouseCommand = createCollectorCommand({
|
|
|
7
7
|
description: "Collect Lighthouse metrics and relay them",
|
|
8
8
|
extraArgs: {
|
|
9
9
|
url: { type: "string", required: true },
|
|
10
|
+
"include-filmstrip": { type: "boolean", default: false },
|
|
10
11
|
},
|
|
11
12
|
async collect(args, metadata) {
|
|
12
13
|
const url = args.url;
|
|
@@ -14,7 +15,9 @@ export const lighthouseCommand = createCollectorCommand({
|
|
|
14
15
|
throw new CliError("Missing required value: url", 2);
|
|
15
16
|
}
|
|
16
17
|
const input = await loadJsonInput(args);
|
|
17
|
-
const documents = collectLighthouse(input, metadata, url
|
|
18
|
+
const documents = collectLighthouse(input, metadata, url, {
|
|
19
|
+
includeFilmstrip: args["include-filmstrip"] === true,
|
|
20
|
+
});
|
|
18
21
|
return { metricType: "lighthouse", documents };
|
|
19
22
|
},
|
|
20
23
|
});
|