Gaming Analytics Pipeline
Gaming Analytics Pipeline

Appendix B:Using the Heat Map Generator

Use the following commands to generate a heat map.

To see command line help:

python <root>/heatmap-generator/generate_heatmap.py --help

To generate and display a heat map using the included sample data file (heatmap-sample-data.txt) for a DB cluster in the US East (N. Virginia) Region:

python .heatmap-generator/generate_heatmap.py --db_host <Amazon Redshift DNS hostname> -r us-east-1

Note

You can find the Amazon Redshift DNS hostname in the AWS CloudFormation stack Outputs tab. The cluster name is value of the RedshiftHost key.

To run the above command and save the data to an output file:

python .heatmap-generator/generate_heatmap.py --db_host <Amazon Redshift DNS hostname> -r us-east-1 -o <path_to_output_file>

To generate a heat map from data from the random data generator:

python .heatmap-generator/generate_heatmap.py --db_host <Amazon Redshift DNS hostname> -r us-east-1 --event_type test_event --level_id test_level