signalfx / signalfx-go

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

make SearchDetectors "tags" optional #77

Closed rma-stripe closed 4 years ago

rma-stripe commented 4 years ago

For endpoint /v2/detector, name is ignored if it is blank:

If the string is empty, it's ignored and the API uses the other criteria in the query.

But the same is not true for tags, which will return an empty list. To work around this, we ignore the value of tags if it is empty.