Generates random kpi values by current time
eg --help
eg --sample <sample file name>
eg --sample ./1.sample
[
{
"kpi": "hpsm-1",
"value1": 0,
"value2": 30
},
{
"kpi": "internet-rub",
"value1": 100000,
"value2": 300000
},
{
"kpi": "lte-users",
"value1": 1000,
"value2": 3000
}
]
A = 0.877976 * (1 / (1 + (9 - hours) ^ 2) + 1 / (1 + (12 - hours) ^ 2) + 1 / (1 + (17 - hours) ^ 2))
hours = [0 .. 24) -- current hours
b - activity hours
[
{
"kpi": "hpsm-1",
"value1": 0,
"value2": 30,
"activity": {
"00:00": 0.001,
"08:30": 0.5,
"09:00": 1.0,
"10:30": 0.5,
"12:00": 1.0,
"14:30": 0.5,
"17:00": 1.0,
"17:30": 0.5,
"24:00": 0.001
}
},
{
"kpi": "internet-rub",
"value1": 100000,
"value2": 300000,
"activity": {
"00:00": 0.001,
"08:30": 0.5,
"09:00": 1.0,
"10:30": 0.5,
"12:00": 1.0,
"14:30": 0.5,
"17:00": 1.0,
"17:30": 0.5,
"24:00": 0.001
}
},
{
"kpi": "lte-users",
"value1": 1000,
"value2": 3000,
"activity": {
"00:00": 0.001,
"08:30": 0.5,
"09:00": 1.0,
"10:30": 0.5,
"12:00": 1.0,
"14:30": 0.5,
"17:00": 1.0,
"17:30": 0.5,
"24:00": 0.001
}
}
]
{"time": "2018-09-07T01:01:12.0714295", "hpsm-1": 2, "internet-rub": 120825, "lte-users": 1155}