Ecosyste.ms: Packages

An open API service providing package, version and dependency metadata of many open source software ecosystems and registries.

Top 8.6% on proxy.golang.org

proxy.golang.org : github.com/clambin/simplejson/v2

Package simplejson provides a Go implementation for Grafana's SimpleJSON datasource: https://grafana.com/grafana/plugins/grafana-simple-json-datasource A simplejson server is an HTTP server that supports one or more handlers. Each handler can support multiple targets, each of which can be supported by a timeseries or table query. Optionally tag can be used to alter the behaviour of the query (e.g. filtering what data should be returned). Finally, a handler can support annotation, i.e. a set of timestamps with associated text. To create a SimpleJSON server, create a Server and run it: This starts a server, listening on port 8080, with one target "my-target", served by myHandler. A handler serves incoming requests from Grafana, e.g. queries, requests for annotations or tag. The Handler interface contains all functions a handler needs to implement. It contains only one function (Endpoints). This function returns the Grafana SimpleJSON endpoints that the handler supports. Those can be: Here's an example of a handler that supports timeseries queries: Timeseries queries return values as a list of timestamp/value tuples. Here's an example of a timeseries query handler: Table Queries, on the other hand, return data organized in columns and rows. Each column needs to have the same number of rows: simplejson exports two Prometheus metrics for performance analytics: For information on query arguments, annotations and tags, refer to the documentation for those data structures.

Registry - Source - Documentation - JSON
purl: pkg:golang/github.com/clambin/simplejson/v2
Keywords: grafana, simplejson
License: MIT
Latest release: over 2 years ago
First release: over 1 year ago
Namespace: github.com/clambin/simplejson
Stars: 2 on GitHub
Forks: 0 on GitHub
See more repository details: repos.ecosyste.ms
Last synced: 27 days ago

    Loading...
    Readme
    Loading...