Closed mrodriguezio closed 5 years ago
As you defined your json tags:
AddField("MetricName", "", `json:"metric_name,omitempty"`).
AddField("TreatMissingData", "", `json:"treat_missing_data,omitempty"`).
This means initial json input should contains keys "metric_name,omitempty" and "treat_missing_data,omitempty" and not:
"MetricName":"CPUUtilization",
"TreatMissingData":"notBreaching",
So, json package use tags for both read and write.
I'm trying to get this work, but getting unexpected results.
Actual output:
Expected output:
Any advice is highly appreciated :sweat_smile:!