You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This script is dynamically triggered by "VisualizationReports.sh" when report "All" or "Visualization" is enabled.
4
+
# It is designed as an entry point and delegates the execution to the dedicated "anomalyDetectionGraphVisualization.sh" script that does the "heavy lifting".
5
+
6
+
# Note that "scripts/prepareAnalysis.sh" is required to run prior to this script.
7
+
8
+
# Requires anomalyDetectionGraphVisualization.sh
9
+
10
+
# Fail on any error ("-e" = exit on first error, "-o pipefail" exist on errors within piped commands)
11
+
set -o errexit -o pipefail
12
+
13
+
# Overrideable Constants (defaults also defined in sub scripts)
14
+
REPORTS_DIRECTORY=${REPORTS_DIRECTORY:-"reports"}
15
+
16
+
## Get this "scripts/reports" directory if not already set
17
+
# Even if $BASH_SOURCE is made for Bourne-like shells it is also supported by others and therefore here the preferred solution.
18
+
# CDPATH reduces the scope of the cd command to potentially prevent unintended directory changes.
19
+
# This way non-standard tools like readlink aren't needed.
20
+
ANOMALY_DETECTION_SCRIPT_DIR=${ANOMALY_DETECTION_SCRIPT_DIR:-$(CDPATH=. cd -- "$(dirname -- "${BASH_SOURCE[0]}")" && pwd -P)}
# Get the "summary" directory by taking the path of this script and selecting "summary".
24
+
ANOMALY_DETECTION_GRAPHS_DIR=${ANOMALY_DETECTION_GRAPHS_DIR:-"${ANOMALY_DETECTION_SCRIPT_DIR}/graphs"}# Contains everything (scripts, queries, templates) to create the Markdown summary report for anomaly detection
25
+
26
+
# Delegate the execution to the responsible script.
// Anomaly Detection Graphs: Find top nodes marked as "Authority" including their incoming and outgoing dependencies, sizes based on PageRank and thick outline for nodes with high Page Rank to Article Rank difference in Graphviz format.
2
+
3
+
// Step 1: Query overall statistics, e.g. min/max weight for later normalization
4
+
MATCH (sourceForStatistics)-[dependencyForStatistics:DEPENDS_ON]->(targetForStatistics)
5
+
WHERE $projection_node_labelINlabels(sourceForStatistics)
6
+
AND $projection_node_labelINlabels(targetForStatistics)
// Anomaly Detection Graphs: Find top nodes marked as "Bottleneck" including their incoming and outgoing dependencies and output them in Graphviz format.
2
+
3
+
// Step 1: Query overall statistics, e.g. min/max weight for later normalization
4
+
MATCH (sourceForStatistics)-[dependencyForStatistics:DEPENDS_ON]->(targetForStatistics)
5
+
WHERE $projection_node_labelINlabels(sourceForStatistics)
6
+
AND $projection_node_labelINlabels(targetForStatistics)
0 commit comments