go-datadog-api icon indicating copy to clipboard operation
go-datadog-api copied to clipboard

ServiceLevelObjectiveHistory generates error during unmarshalling

Open Atilla-Bilgic opened this issue 5 years ago • 0 comments

Many thanks for your effort to build this flawless component. I hope this contribution may help to improve.

The struct definition for .data.series.denominator.metadata.unit needs to be replaced by an interface or another struct definition. Sample data returned from Datadog through their API that crashes the component can be seen below. ******** Sample Data ******** "metadata": { "unit": [ { "family": "network", "scale_factor": 1.0, "name": "request", "short_name": "req", "plural": "requests", "id": 19 }, null ], ...} ******* End of Sample *****

Atilla-Bilgic avatar Mar 24 '20 11:03 Atilla-Bilgic