zorkian / go-datadog-api

A Go implementation of the Datadog API.
BSD 3-Clause "New" or "Revised" License
183 stars 156 forks source link

Widget ID is too large for int #314

Closed sepulworld closed 4 years ago

sepulworld commented 4 years ago

Hi There!

Datadog is generating widget IDs that are much larger than what Go int32 supports.

https://github.com/zorkian/go-datadog-api/blob/e717cec5ea579bd0bfaef3387ca3dc7b1b914f70/board_widgets.go#L46

Relates to upstream project issue: https://github.com/terraform-providers/terraform-provider-datadog/issues/459

Widget ID: 2906216754218349 is too large for int32. Can we please update to int64? I can put in a PR if this sounds ok with you all.