This repository contains the poller for polling the various services reported on by game-pop. It posts the polling results to Kafka, to then be processed by other game-pop services. It is intended to be used as a scheduled AWS lambda function.
- Twitch
- KAFKA_HOST
- KAFKA_PORT
- TWITCH_CLIENT_ID
- TWITCH_CLIENT_SECRET
Data is posted in the following JSON format:
'twitch' topic:
{
"gamename": <String-exact game name from twitch>,
"timestamp": <Number-MS since UNIX Epoch at time of polling>,
"viewers": <Number-Number of viewers at time of polling>
}