Commit Graph

5 Commits (72e7e031cf946480990f186e7b39260ccfe3c340)

Author SHA1 Message Date
Tim Raymond baf41951ea Merge branch 'develop' into feature/#42-influx-client 2016-09-16 09:51:58 -04:00
Chris Goller 26d721290c Add API for monitored services.
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.
2016-09-15 11:28:51 -05:00
Tim Raymond 2841364ec4 Add influx client
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!
2016-09-14 13:46:43 -04:00
Chris Goller 79948edadf Add mock implementation of timeseries and explorerererererer
Signed-off-by: Will Piers <wpiers0405@gmail.com>
2016-09-12 18:32:44 -05:00
Chris Goller 6ff6bdf4a7 Add interfaces to backend data and logic. 2016-09-12 14:43:37 -05:00