def write_to_database()

in src/dynamo.py [0:0]


def write_to_database(dynamodb, table_name: str, item: Dict[str, str]):
    # TTL attributes must be in seconds and use the epoch time format
    # Return the time in seconds since the epoch as a floating point number
    monitor_table = dynamodb.Table(table_name)
    monitor_table.put_item(Item=dump_to_dynamodb(item))