aws_topic_origin - bruno-beloff/scs_analysis GitHub Wiki

docs > software repositories > scs_analysis > commands > retrieving historic data


DESCRIPTION

The aws_topic_origin utility is used to discover the datetime of the earliest recorded publication on the given topic(s), for a device, or for all topics known to aws_byline.

The --credentials flag is only required where the user wishes to store multiple identities. Setting the credentials is done interactively using the command line interface.

SYNOPSIS

aws_topic_origin.py [-c CREDENTIALS] [-i INDENT] [-v] { -a | -d DEVICE | -t TOPIC_1 [...TOPIC_N] }

Options
--version show program's version number and exit
-h, --help show this help message and exit
-c CREDENTIALS_NAME, --credentials=CREDENTIALS_NAME the stored credentials to be presented
-a, --all all topics
-d DEVICE, --device=DEVICE topics for DEVICE
-t, --topics named topics
-i INDENT, --indent=INDENT pretty-print the output with INDENT
-v, --verbose report narrative to stderr

EXAMPLES

aws_topic_origin.py -v -c super south-coast-science-dev/development/loc/1/climate
aws_topic_origin.py -v -c super -a | node.py -s | csv_writer.py -v origins-2024-04-10.csv

DOCUMENT EXAMPLE

{"topic": "ricardo/gatwick/loc/1/gases", "device": "scs-bgx-507", "rec": "2019-05-10T09:17:39Z", "expiry": "2019-05-17T09:17:46Z"}

SEE ALSO

scs_analysis/aws_byline
scs_analysis/aws_topic_history
scs_analysis/cognito_user_credentials

scs_lambda/aws_message_delete