Files
nginx-proxy-manager/frontend/js/models/openappsec-log.js
2023-12-13 23:41:24 +02:00

42 lines
1.0 KiB
JavaScript
Executable File

const Backbone = require('backbone');
const model = Backbone.Model.extend({
idAttribute: 'id',
defaults: function () {
return {
name: '-',
eventSeverity: '-',
assetName: '-',
securityAction: '-',
waapIncidentType: '-',
httpSourceId: '-',
sourceIp: '-',
// 'Proxy-IP': '-',
proxyIp: '-',
httpHostName: '-',
httpMethod: '-',
// 'HTTP-Response-Code': '-',
httpResponseCode: '-',
httpUriPath: '-',
// 'Protection-Name': '-',
protectionName: '-',
matchedLocation: '-',
matchedParameter: '-',
matchedSample: '-',
eventPriority: '-',
eventTopic: '-',
eventName: '-',
// Suggested Remediation if Applicable
suggestedRemediation: '-'
};
}
});
module.exports = {
Model: model,
Collection: Backbone.Collection.extend({
model: model
})
};