# -*- coding: utf-8 -*-

import json
import random

from fiqs.testing.gen_data import random_shop_id, random_timestamp


def gen_traffic_data(size):
    for i in range(size):
        print(json.dumps({
            'id': i + 1,
            'shop_id': random_shop_id(),
            'timestamp': random_timestamp(),
            'duration': random.choice([600, 900]),
            'incoming_traffic': random.randint(0, 200),
            'outgoing_traffic': random.randint(0, 200),
        }))


if __name__ == '__main__':
    size = 500
    gen_traffic_data(size)

e2a83ddafbc8ba833514dd95fb0788174a68c4d6
<mask token>

<mask token>


def gen_traffic_data(size):
    for i in range(size):
        print(json.dumps({'id': i + 1, 'shop_id': random_shop_id(),
            'timestamp': random_timestamp(), 'duration': random.choice([600,
            900]), 'incoming_traffic': random.randint(0, 200),
            'outgoing_traffic': random.randint(0, 200)}))


<mask token>

<mask token>


def gen_traffic_data(size):
    for i in range(size):
        print(json.dumps({'id': i + 1, 'shop_id': random_shop_id(),
            'timestamp': random_timestamp(), 'duration': random.choice([600,
            900]), 'incoming_traffic': random.randint(0, 200),
            'outgoing_traffic': random.randint(0, 200)}))


if __name__ == '__main__':
    size = 500
    gen_traffic_data(size)

import json
import random
from fiqs.testing.gen_data import random_shop_id, random_timestamp


def gen_traffic_data(size):
    for i in range(size):
        print(json.dumps({'id': i + 1, 'shop_id': random_shop_id(),
            'timestamp': random_timestamp(), 'duration': random.choice([600,
            900]), 'incoming_traffic': random.randint(0, 200),
            'outgoing_traffic': random.randint(0, 200)}))


if __name__ == '__main__':
    size = 500
    gen_traffic_data(size)

# -*- coding: utf-8 -*-

import json
import random

from fiqs.testing.gen_data import random_shop_id, random_timestamp


def gen_traffic_data(size):
    for i in range(size):
        print(json.dumps({
            'id': i + 1,
            'shop_id': random_shop_id(),
            'timestamp': random_timestamp(),
            'duration': random.choice([600, 900]),
            'incoming_traffic': random.randint(0, 200),
            'outgoing_traffic': random.randint(0, 200),
        }))


if __name__ == '__main__':
    size = 500
    gen_traffic_data(size)
