MCPcopy
hub / github.com/browserless/browserless / get

Method get

src/metrics.ts:61–80  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

59 }
60
61 public get(): Omit<IBrowserlessStats, 'cpu' | 'memory'> {
62 const currentStat = {
63 error: this.error,
64 maxConcurrent: this.concurrent,
65 queued: this.queued,
66 rejected: this.rejected,
67 running: this.running,
68 sessionTimes: this.sessionTimes,
69 successful: this.successful,
70 timedout: this.timedout,
71 unauthorized: this.unauthorized,
72 unhealthy: this.unhealthy,
73 };
74
75 return {
76 ...currentStat,
77 ...this.calculateStats(currentStat.sessionTimes),
78 date: Date.now(),
79 };
80 }
81
82 public reset() {
83 this.successful = 0;

Callers 15

sFunction · 0.80
eFunction · 0.80
docs.jsFile · 0.80
LeFunction · 0.80
oFunction · 0.80
_eFunction · 0.80
OeFunction · 0.80
XtFunction · 0.80
CrFunction · 0.80
TrFunction · 0.80
hFunction · 0.80
glFunction · 0.80

Calls 1

calculateStatsMethod · 0.95

Tested by

no test coverage detected