At @goller's recommendation, we're following @benbjohnson's advice laid
out here: https://github.com/benbjohnson/wtf/blob/master/errors.go and
moving errors to the top level package. This cleaned up some ugliness in
the tests where we needed to type assert.
If a request upstream is cancelled, we can propagate the cancellation
down to our queries to Influx using context's cancellation
functionality. This patch adds support for this.
Closes#49
The /sources/{id}/monitored endpoint will return an array of Services
describing services this data source has monitoring data for.
The response has a `TagKey` and `TagValue` that can be used to specifically
query for the service.
This adds a simple HTTP influx client to fetch time series results. It
implements the TimeSeries interface. Also included is an implementation
of the mrfusion.Results interface that wraps results returned from the
influx client.
We only support HTTP connections (there's also a UDP influx client). We
also require that all Queries to Influx be fully-qualified--they should
include the database and retention policies in the query.
This also makes Resuls a json.Marshaler. In order to hand results back
to clients, we need to guarantee that those results can be serialized to
json in some form. json.Marshaller is just such a guarantee!
This initializes `gdm` for tracking our application dependencies. This
was generated using verison 1.4 of `gdm` which can be fetched from
`github.com/sparcc/gdm`.
This was generated using go-swagger's `swagger` command. The specific
command used was:
`swagger generate server -f swagger.yaml --with-context`
Fixes#6
* feature/design-draft:
Update swagger definition to use Explorations instead of Explorers
Update design doc
Use the chronograf name instead of enterprise
Update swagger definition based on group discussion.
Update design to reflect discussions.
Update query response definition to simplify links.
Reword swagger definition description of dashboard PUT
Update swagger definition so users will have roles and ACLs are now Permissions.
Update swagger definition to fix /dashboards/{id} response object typo.
Update swagger definition to rename layout to dashboard.
Fix invalid swagger definitions
Update swagger interface to reflect our discussions.
Spelling
Update query proxy section
Update design document organization; Add more specifics about releases and queries.
Add a possible sequence flow for queries
Add initial draft (sketch) of design