Files
nginx-proxy-manager/frontend/js/models/openappsec-log.js
Rami Winestock 8631791999 wide page with sticky table heads.
updates local-policy default.
data fields fixes.
2023-12-18 18:23:02 +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
})
};