ℹ️ SignalFx was acquired by Splunk in October 2019. See Splunk SignalFx for more information.
This is a programmatic interface in Go for SignalFx's metadata and ingest APIs.
import "github.com/signalfx/signalfx-go"
// The client can be customized by backing options onto the end. Check the
// godoc for more info!
// Instantiate your own client if you want to customize its options
// or test with a RoundTripper
httpClient := &http.Client{…}
client := signalfx.NewClient("your-token-here", HTTPClient(httpClient))
// Then do things!
chart, err := client.GetChart("abc123IdHere")
We're working on it, feel free to file an issue if an endpoint is missing!
The request and response bodies for this library are machine generated from our OpenAPI specs using OpenAPI code generator. This is a real boon for everyone, keeping the documentation as a source of truth and ensuring that this library has support for all the things!
This means that some of our type names are verbose. It's fine, you only type code once and the benefits are worth it.