Phase 1: Add ESLint/Prettier config + baseline auto-fixes

This commit is contained in:
Krystie
2026-03-22 11:00:25 +01:00
parent 41a0cdee7e
commit e2c67a8fe8
90 changed files with 4008 additions and 3066 deletions

View File

@@ -11,11 +11,11 @@ class Metrics {
total: 0,
byStatus: {},
byMethod: {},
byPath: {}
byPath: {},
};
this.errors = {
total: 0,
byType: {}
byType: {},
};
this.business = {
containersDeployed: 0,
@@ -26,7 +26,7 @@ class Metrics {
totpLogins: 0,
siteAdded: 0,
siteRemoved: 0,
credentialRotations: 0
credentialRotations: 0,
};
}
@@ -78,19 +78,19 @@ class Metrics {
perSecond: uptimeSec > 0 ? +(this.requests.total / uptimeSec).toFixed(2) : 0,
byStatus: this.requests.byStatus,
byMethod: this.requests.byMethod,
topEndpoints
topEndpoints,
},
errors: {
total: this.errors.total,
rate: this.requests.total > 0 ? +((this.errors.total / this.requests.total) * 100).toFixed(2) : 0,
byType: this.errors.byType
byType: this.errors.byType,
},
business: this.business,
process: {
memory: process.memoryUsage(),
pid: process.pid,
nodeVersion: process.version
}
nodeVersion: process.version,
},
};
}