signalfx / signalfx-go

Go client library and instrumentation bindings for SignalFx
https://www.signalfx.com
Apache License 2.0
14 stars 51 forks source link

Add StringOrInteger and use it for time filters #37

Closed cory-signalfx closed 5 years ago

cory-signalfx commented 5 years ago

Summary

Use a StringOrInteger type to unmarshal pesky numbers in string fields.

Motivation

The API might return a number for Chart's filters.time.end or filters.time.end. Fixes #36