Sync DNS2 production changes - removed obsolete test suite and refactored structure

This commit is contained in:
Krystie
2026-03-23 10:47:15 +01:00
parent 1ac50918ab
commit d76644d948
288 changed files with 8965 additions and 15731 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
}
};
}