+ client: add response information to the filtered query log items
This commit is contained in:
@@ -253,3 +253,10 @@ export const ENCRYPTION_SOURCE = {
|
||||
PATH: 'path',
|
||||
CONTENT: 'content',
|
||||
};
|
||||
|
||||
export const FILTERED_STATUS = {
|
||||
FILTERED_BLACK_LIST: 'FilteredBlackList',
|
||||
NOT_FILTERED_WHITE_LIST: 'NotFilteredWhiteList',
|
||||
FILTERED_BLOCKED_SERVICE: 'FilteredBlockedService',
|
||||
REWRITE: 'Rewrite',
|
||||
};
|
||||
|
||||
@@ -28,6 +28,7 @@ export const normalizeLogs = logs => logs.map((log) => {
|
||||
filterId,
|
||||
rule,
|
||||
service_name,
|
||||
status,
|
||||
} = log;
|
||||
const { host: domain, type } = question;
|
||||
const responsesArray = response ? response.map((response) => {
|
||||
@@ -44,6 +45,7 @@ export const normalizeLogs = logs => logs.map((log) => {
|
||||
filterId,
|
||||
rule,
|
||||
serviceName: service_name,
|
||||
status,
|
||||
};
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user