@taskcluster/client-web 96.2.3 → 96.4.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/package.json +1 -1
- package/src/clients/WebServer.js +75 -0
- package/src/index.js +1 -0
package/package.json
CHANGED
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
// THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY.
|
|
2
|
+
|
|
3
|
+
import Client from '../Client';
|
|
4
|
+
|
|
5
|
+
export default class WebServer extends Client {
|
|
6
|
+
constructor(options = {}) {
|
|
7
|
+
super({
|
|
8
|
+
serviceName: 'web-server',
|
|
9
|
+
serviceVersion: 'v1',
|
|
10
|
+
exchangePrefix: '',
|
|
11
|
+
...options,
|
|
12
|
+
});
|
|
13
|
+
this.ping.entry = {"args":[],"category":"Monitoring","method":"get","name":"ping","query":[],"route":"/ping","stability":"stable","type":"function"}; // eslint-disable-line
|
|
14
|
+
this.lbheartbeat.entry = {"args":[],"category":"Monitoring","method":"get","name":"lbheartbeat","query":[],"route":"/__lbheartbeat__","stability":"stable","type":"function"}; // eslint-disable-line
|
|
15
|
+
this.version.entry = {"args":[],"category":"Monitoring","method":"get","name":"version","query":[],"route":"/__version__","stability":"stable","type":"function"}; // eslint-disable-line
|
|
16
|
+
this.taskGroupProfile.entry = {"args":["taskGroupId"],"category":"Profiler","method":"get","name":"taskGroupProfile","query":[],"route":"/task-group/<taskGroupId>/profile","stability":"experimental","type":"function"}; // eslint-disable-line
|
|
17
|
+
this.taskProfile.entry = {"args":["taskId"],"category":"Profiler","method":"get","name":"taskProfile","query":[],"route":"/task/<taskId>/profile","stability":"experimental","type":"function"}; // eslint-disable-line
|
|
18
|
+
this.heartbeat.entry = {"args":[],"category":"Monitoring","method":"get","name":"heartbeat","query":[],"route":"/__heartbeat__","stability":"stable","type":"function"}; // eslint-disable-line
|
|
19
|
+
}
|
|
20
|
+
/* eslint-disable max-len */
|
|
21
|
+
// Respond without doing anything.
|
|
22
|
+
// This endpoint is used to check that the service is up.
|
|
23
|
+
/* eslint-enable max-len */
|
|
24
|
+
ping(...args) {
|
|
25
|
+
this.validate(this.ping.entry, args);
|
|
26
|
+
|
|
27
|
+
return this.request(this.ping.entry, args);
|
|
28
|
+
}
|
|
29
|
+
/* eslint-disable max-len */
|
|
30
|
+
// Respond without doing anything.
|
|
31
|
+
// This endpoint is used to check that the service is up.
|
|
32
|
+
/* eslint-enable max-len */
|
|
33
|
+
lbheartbeat(...args) {
|
|
34
|
+
this.validate(this.lbheartbeat.entry, args);
|
|
35
|
+
|
|
36
|
+
return this.request(this.lbheartbeat.entry, args);
|
|
37
|
+
}
|
|
38
|
+
/* eslint-disable max-len */
|
|
39
|
+
// Respond with the JSON version object.
|
|
40
|
+
// https://github.com/mozilla-services/Dockerflow/blob/main/docs/version_object.md
|
|
41
|
+
/* eslint-enable max-len */
|
|
42
|
+
version(...args) {
|
|
43
|
+
this.validate(this.version.entry, args);
|
|
44
|
+
|
|
45
|
+
return this.request(this.version.entry, args);
|
|
46
|
+
}
|
|
47
|
+
/* eslint-disable max-len */
|
|
48
|
+
// Generate a Firefox Profiler–compatible profile from a task group.
|
|
49
|
+
// The profile contains scheduling and execution timing for all tasks.
|
|
50
|
+
/* eslint-enable max-len */
|
|
51
|
+
taskGroupProfile(...args) {
|
|
52
|
+
this.validate(this.taskGroupProfile.entry, args);
|
|
53
|
+
|
|
54
|
+
return this.request(this.taskGroupProfile.entry, args);
|
|
55
|
+
}
|
|
56
|
+
/* eslint-disable max-len */
|
|
57
|
+
// Generate a Firefox Profiler–compatible profile from a task's log output.
|
|
58
|
+
// Parses `public/logs/live.log` (or `live_backing.log`) for timing data.
|
|
59
|
+
/* eslint-enable max-len */
|
|
60
|
+
taskProfile(...args) {
|
|
61
|
+
this.validate(this.taskProfile.entry, args);
|
|
62
|
+
|
|
63
|
+
return this.request(this.taskProfile.entry, args);
|
|
64
|
+
}
|
|
65
|
+
/* eslint-disable max-len */
|
|
66
|
+
// Respond with a service heartbeat.
|
|
67
|
+
// This endpoint is used to check on backing services this service
|
|
68
|
+
// depends on.
|
|
69
|
+
/* eslint-enable max-len */
|
|
70
|
+
heartbeat(...args) {
|
|
71
|
+
this.validate(this.heartbeat.entry, args);
|
|
72
|
+
|
|
73
|
+
return this.request(this.heartbeat.entry, args);
|
|
74
|
+
}
|
|
75
|
+
}
|
package/src/index.js
CHANGED
|
@@ -21,6 +21,7 @@ export { default as PurgeCache } from './clients/PurgeCache';
|
|
|
21
21
|
export { default as Queue } from './clients/Queue';
|
|
22
22
|
export { default as QueueEvents } from './clients/QueueEvents';
|
|
23
23
|
export { default as Secrets } from './clients/Secrets';
|
|
24
|
+
export { default as WebServer } from './clients/WebServer';
|
|
24
25
|
export { default as WorkerManager } from './clients/WorkerManager';
|
|
25
26
|
export { default as WorkerManagerEvents } from './clients/WorkerManagerEvents';
|
|
26
27
|
// AUTOGENERATED-END
|