Skip to content

Commit

Permalink
Merge pull request #1760 from aziontech/dev
Browse files Browse the repository at this point in the history
DEPLOY 2024.09.27
  • Loading branch information
lucasmendes21 authored Sep 27, 2024
2 parents 5f4bbe2 + e27f840 commit 1695439
Show file tree
Hide file tree
Showing 49 changed files with 1,127 additions and 426 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "azion-console-kit",
"version": "1.22.3",
"version": "1.22.4",
"private": false,
"type": "module",
"repository": {
Expand Down
1 change: 1 addition & 0 deletions src/assets/c3.scss
Original file line number Diff line number Diff line change
Expand Up @@ -191,6 +191,7 @@ C3 dependency omits its styling for some reason. Thus it was needed to add this
border: 1px solid var(--surface-border);
box-shadow: 0 4px 8px 0 rgba(0, 0, 0, 0.2);
width: max-content;
max-width: 500px;
}

.c3-tooltip {
Expand Down
7 changes: 4 additions & 3 deletions src/helpers/real-time-filters-rules.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ const FILTER_BLACK_LIST = [
'naxsiAttackFamilyIlike'
]

const SUPPORTED_FILTER_TYPE = ['String', 'Int', 'Float', 'IntRange', 'FloatRange']
const FIELDS_LIKE = ['configurationIdIn', 'zoneIdIn', 'edgeFunctionIdIn']
const SUPPORTED_FILTER_TYPE = ['String', 'Int', 'Float', 'IntRange', 'FloatRange', 'GenericScalar']
const FIELDS_LIKE = ['configurationIdIn', 'zoneIdIn', 'edgeFunctionIdIn', 'botCategoryIn']

const ALIAS_MAPPING = {
configurationId: 'domain'
Expand Down Expand Up @@ -52,7 +52,8 @@ const MOST_RELEVANT_FIELDS = {
const FILTER_LIKE_TYPE = {
configurationIdIn: 'ArrayObject',
zoneIdIn: 'ArrayObject',
edgeFunctionIdIn: 'ArrayObject'
edgeFunctionIdIn: 'ArrayObject',
botCategoryIn: 'ArrayObject'
}

const FILTER_LIKE_ALIAS = {
Expand Down
4 changes: 3 additions & 1 deletion src/modules/real-time-metrics/chart/format-c3-graph-props.js
Original file line number Diff line number Diff line change
Expand Up @@ -108,7 +108,9 @@ export function formatC3XAxis(chartData, resultChart) {
xAxis.min = CHART_RULES.RESET_COUNT
xAxis.tick = {
...xAxis.tick,
width: CHART_RULES.LABEL.rotatedWidth
width: CHART_RULES.LABEL.rotatedWidth,
multiline: true,
multilineMax: 2
}
}

Expand Down
6 changes: 6 additions & 0 deletions src/modules/real-time-metrics/constants/dashboards.js
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,12 @@ const PAGES_DASHBOARDS = {
label: 'Overview',
path: 'overview',
dataset: 'botManagerMetrics'
},
{
id: '659868342290523846',
label: 'Breakdown',
path: 'breakdown',
dataset: 'securityMetrics'
}
]
}
Expand Down
15 changes: 11 additions & 4 deletions src/modules/real-time-metrics/constants/help-center-urls.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,19 +78,26 @@ const HELP_CENTER_URLS = {
}
},
botManager: {
botManagerSummary: {
botManagerOverview: {
badBotHits: '/real-time-metrics/bot-manager-advanced/overview/bad-bot-hits',
goodBotHits: '/real-time-metrics/bot-manager-advanced/overview/good-bot-hits',
botHits: '/real-time-metrics/bot-manager-advanced/overview/bot-hits',
transactions: '/real-time-metrics/bot-manager-advanced/overview/transactions',
botTraffic: '/real-time-metrics/bot-manager-advanced/overview/bot-traffic',
topBotAction: '/real-time-metrics/bot-manager-advanced/overview/top-bot-action',
botCaptchaLine: '/real-time-metrics/bot-manager-advanced/overview/bot-captcha-line-graph',
topBotCaptchaPie: '/real-time-metrics/bot-manager-advanced/overview/top-bot-captcha-pie-graph',
topBotClassification: '/real-time-metrics/bot-manager-advanced/overview/top-bot-classifications',
topBotCaptchaPie:
'/real-time-metrics/bot-manager-advanced/overview/top-bot-captcha-pie-graph',
topBotClassification:
'/real-time-metrics/bot-manager-advanced/overview/top-bot-classifications',
botActivityMap: '/real-time-metrics/bot-manager-advanced/overview/bot-activity-map'
},
botManagerBreakdown: {
impactedUrls: '/real-time-metrics/bot-manager-advanced/breakdown/impacted-urls',
topIps: '/real-time-metrics/bot-manager-advanced/breakdown/top-ips',
topImpactedUrls: '/real-time-metrics/bot-manager-advanced/breakdown/top-impacted-urls'
}
},
}
}

export default HELP_CENTER_URLS
14 changes: 13 additions & 1 deletion src/modules/real-time-metrics/constants/reports-texts.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,7 +175,7 @@ const REPORTS_TEXTS = {
}
},
botManager: {
botManagerSummary: {
botManagerOverview: {
badBotHits: {
description: 'Number of requests identified as bad bots.'
},
Expand Down Expand Up @@ -206,6 +206,18 @@ const REPORTS_TEXTS = {
botActivityMap: {
description: 'Sum of requests identified as bots, presented by the country of origin.'
}
},
botManagerBreakdown: {
impactedUrls: {
description: 'Sum of the detected bot actions, broken down by the affected URLs.'
},
topIps: {
description:
'Sum of the detected bot actions, broken down by the highest-ranking IP addresses.'
},
topImpactedUrls: {
description: 'Sum of the detected bot actions, broken down by the most affected URLs.'
}
}
}
}
Expand Down
Loading

0 comments on commit 1695439

Please sign in to comment.