mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-08-07 01:43:33 +00:00
42 lines
1.0 KiB
JavaScript
Executable File
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
|
|
})
|
|
};
|