zorkian / go-datadog-api

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

use the new hosts search endpoint #302

Open eloyekunle opened 4 years ago

eloyekunle commented 4 years ago

From the Datadog API reference: The prefix host: is also supported for the query to seach over host names, but it is deprecated, use the host search endpoint instead.

This PR updates the library to use the host search endpoint for hosts search.

eloyekunle commented 4 years ago

I have re-added the old function.

eloyekunle commented 4 years ago

@jirikuncar any luck?