Skip to content

Commit

Permalink
Added timestamp when running with -m flag (#228)
Browse files Browse the repository at this point in the history
  • Loading branch information
SamDesmondKing authored Aug 18, 2022
1 parent 5c7208c commit e9da448
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions unix/src/machine_stats/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -322,6 +322,7 @@ def v2_playbook_on_stats(self, stats):
server_dict["measurable_type"] = "server"
server_dict["field_name"] = custom_field + "_timeseries"
server_dict["value"] = server["custom_fields"][custom_field]
server_dict["external_timestamp"] = server["custom_fields"]["cpu_utilization_timestamp"]
server_dict["measurable"] = {
"host_name": server["host_name"]
}
Expand Down

0 comments on commit e9da448

Please sign in to comment.