go-datadog-api
go-datadog-api copied to clipboard
A Go implementation of the Datadog API.
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...
When a Dashboard in Datadog contains a scatterplot, the resulting API response from GetDashboard cannot be parsed. Error: ``` 2019/11/01 01:32:13 GetDashboard fatal: json: cannot unmarshal object into Go struct...
Events can be related, when posting with a parent_id - https://docs.datadoghq.com/api/?lang=bash#post-an-event Could you please add a field for related_event_id in the Event struct? `ParentId *int 'json:"related_event_id,omitempty"'`
Hi, Can you provide an example of how to init a DataPoint struct for PostMetrics call?
It is useful to be able to search the event stream for unaggregated events. GetEvents() does not appear to support the optional 'unaggregated' parameter documented here: * https://docs.datadoghq.com/api/?lang=python#query-the-event-stream
The generated code for `GetIncludeTags()` returns `false` by default: https://github.com/zorkian/go-datadog-api/blob/master/datadog-accessors.go#L10560 However, the API reference documentation says the default value of `include_tags` is `true`: > `include_tags` a boolean indicating whether notifications...
This PR adds support for `unaggregated` parameter for query events. See: https://docs.datadoghq.com/api/?lang=python#query-the-event-stream ~~This change is not backwards compatible as it changes the function signature. This function could potentially be rewritten...
`TileDefMarker.Label` is a `*string`, but for one of my screenboards Datadog returns `true`, which results in this error: > json: cannot unmarshal bool into Go struct field TileDefMarker.label of type...
Hi all, #190 changed the type for `Screenboard.Height` and `Screenboard.Width` from `*string` to `*int` (see https://github.com/zorkian/go-datadog-api/pull/190/files#diff-7d71d2abb56836dce85c7c7b114c80dcL20) but I believe they should stay as strings, at least `width` since it can...
I got the following error. ``` FATA[0001] json: cannot unmarshal string into Go struct field Screenboard.width of type int ``` I investigated this error and found that `width` is occasionally...