docs: enterprise refactor plan with ralph specs
This commit is contained in:
18
dist/plugins/collectors/NetworkCollector.js
vendored
Normal file
18
dist/plugins/collectors/NetworkCollector.js
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
"use strict";
|
||||
/**
|
||||
* NetworkCollector — logs all HTTP responses from the current observation.
|
||||
* The data is already captured in the observation; this collector formats it.
|
||||
*/
|
||||
Object.defineProperty(exports, "__esModule", { value: true });
|
||||
exports.NetworkCollector = void 0;
|
||||
class NetworkCollector {
|
||||
constructor() {
|
||||
this.name = 'NetworkCollector';
|
||||
}
|
||||
async collect(anomaly, _agent) {
|
||||
// HTTP responses are captured in the observation → anomaly evidence
|
||||
const httpLog = anomaly.evidence.httpLog ?? [];
|
||||
return { httpLog };
|
||||
}
|
||||
}
|
||||
exports.NetworkCollector = NetworkCollector;
|
||||
Reference in New Issue
Block a user