Hello, I need to get max and avg values from an interface, I did a script on python to do the request and print, I have some questions regarding the timestamp parameter and the type of unit that the JSON return
{
"jsonrpc": "2.0",
"method": "trend.get",
"params": {
"time_from":"1651436285",
"time_till":"1654114685",
"output": [
"itemid",
"value_min",
"value_avg",
"value_max"
],
"itemids": [
"31082"
],
"limit": "1"
},
"auth": "mytoken",
"id": 1
}
regarding timestamp, I am using the first day of the month, and the last day of the month, like the "last month" function in graphs, but if I add a clock parameter, it returns the time stamp of the first day of the month,
witch I think it's not the day that the interface has reached its max, is this method correct?
My output:
My router - 100GE 0/3/0 Max Traffic Last Month: Incoming max: 13072933528 Incoming avg: 10856783970 -> is this BPS? I tried converting to Gbps, and it is far more than the max of the interface, per example.
My router - 100GE 0/3/0 Max Traffic Last Month: Outgoing max: 14506482176 Outgoing avg: 12118952075
{
"jsonrpc": "2.0",
"method": "trend.get",
"params": {
"time_from":"1651436285",
"time_till":"1654114685",
"output": [
"itemid",
"value_min",
"value_avg",
"value_max"
],
"itemids": [
"31082"
],
"limit": "1"
},
"auth": "mytoken",
"id": 1
}
regarding timestamp, I am using the first day of the month, and the last day of the month, like the "last month" function in graphs, but if I add a clock parameter, it returns the time stamp of the first day of the month,
witch I think it's not the day that the interface has reached its max, is this method correct?
My output:
My router - 100GE 0/3/0 Max Traffic Last Month: Incoming max: 13072933528 Incoming avg: 10856783970 -> is this BPS? I tried converting to Gbps, and it is far more than the max of the interface, per example.
My router - 100GE 0/3/0 Max Traffic Last Month: Outgoing max: 14506482176 Outgoing avg: 12118952075
Comment