Need timestamp on each UVE API & UVE Stream response
Problem:
At present, the response for /analytics/uves requests and /analytics/
Solution:
Add a new field "__T" to each UVE structure. The value of this field is UTC Timestamp and it is updated by contrail-alarm-gen when it evaluates and aggregates the UVEs.
Example:
http://<analytics-
{
"AnalyticsA
"__T": 1515010981733871,
"host_ip": "10.84.30.201",
},
"CollectorS
"__T": 1515737608360464,
{
}
]
}
...
...
}
http://<analytics-
event: update
data: {"type": "PeerStatsData", "value": {"rx_update_
event: update
data: {"type": "PeerFlapData", "value": {"flap_10m": {"value": 0}, "flap_info": {"flap_count": 1, "flap_time": 1514946277697402}, "encoding": "BGP", "__T": 1515737754157339}, "key": "ObjectBgpPeer:
Blueprint information
- Status:
- Complete
- Approver:
- Rudra Rugge
- Priority:
- Medium
- Drafter:
- Sundaresan Rajangam
- Direction:
- Needs approval
- Assignee:
- Sundaresan Rajangam
- Definition:
- Approved
- Series goal:
- Accepted for trunk
- Implementation:
- Implemented
- Milestone target:
- r5.0.0
- Started by
- Sundaresan Rajangam
- Completed by
- Sundaresan Rajangam