summaryrefslogtreecommitdiff
path: root/cloudinit/reporting/handlers.py
diff options
context:
space:
mode:
authorScott Moser <smoser@ubuntu.com>2015-08-31 13:57:05 -0400
committerScott Moser <smoser@ubuntu.com>2015-08-31 13:57:05 -0400
commit7820a43baf94e11ce458476a442edd726a406aba (patch)
tree2c8c711ef80b9d8ee44221596c8e9e512332d986 /cloudinit/reporting/handlers.py
parent50bcb0f77d29a76a03946c6da13b15be25257402 (diff)
downloadvyos-cloud-init-7820a43baf94e11ce458476a442edd726a406aba.tar.gz
vyos-cloud-init-7820a43baf94e11ce458476a442edd726a406aba.zip
events: add timestamp and origin, support file posting
This adds 'timestamp' and 'origin' to events. The timestamp is simply that, a floating point timestamp of when the event occurred. The origin indicates the source / reporter of this. It is useful to have a single endpoint with multiple different things reporting to it. For example, MAAS will configure cloud-init and curtin to report to the same endpoint and then it can differenciate who made the post. Admittedly, they could use multiple endpoints, but this this seems sane. Also, add support for posting files at the close of an event. This is utilized in curtin to post a log file when the install is done. files are posted on success or fail of the event.
Diffstat (limited to 'cloudinit/reporting/handlers.py')
0 files changed, 0 insertions, 0 deletions