build_stats_message
()[source]¶Build a stats message based on retrieved listener statistics.
Example version 3 message without UDP (note that values are deltas, not absolutes):
{"id": "<amphora_id>",
"seq": 67,
"listeners": {
"<listener_id>": {
"status": "OPEN",
"stats": {
"tx": 0,
"rx": 0,
"conns": 0,
"totconns": 0,
"ereq": 0
}
}
},
"pools": {
"<pool_id>:<listener_id>": {
"status": "UP",
"members": {
"<member_id>": "no check"
}
}
},
"ver": 3
}
get_hmac
(payload, key, hex=True)[source]¶Get digest for the payload.
The hex param is for backward compatibility, so the package data sent from the existing amphorae can still be checked in the previous approach.
Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.