graphite

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2024 License: Apache-2.0 Imports: 32 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FunctionDetailsHandler

func FunctionDetailsHandler(funcName string, w http.ResponseWriter, r *http.Request) error

FunctionDetailsHandler implements /functions/<func_name> handler.

See https://graphite.readthedocs.io/en/latest/functions.html#function-api

func FunctionsHandler

func FunctionsHandler(w http.ResponseWriter, r *http.Request) error

FunctionsHandler implements /functions handler.

See https://graphite.readthedocs.io/en/latest/functions.html#function-api

func MetricsExpandHandler

func MetricsExpandHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

MetricsExpandHandler implements /metrics/expand handler.

See https://graphite-api.readthedocs.io/en/latest/api.html#metrics-expand

func MetricsExpandResponseByQuery

func MetricsExpandResponseByQuery(m map[string][]string, jsonp string) string

func MetricsExpandResponseFlat

func MetricsExpandResponseFlat(paths []string, jsonp string) string

func MetricsFindHandler

func MetricsFindHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

MetricsFindHandler implements /metrics/find handler.

See https://graphite-api.readthedocs.io/en/latest/api.html#metrics-find

func MetricsFindResponse

func MetricsFindResponse(paths []string, delimiter, format string, addWildcards bool, jsonp string) string

func MetricsIndexHandler

func MetricsIndexHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

MetricsIndexHandler implements /metrics/index.json handler.

See https://graphite-api.readthedocs.io/en/latest/api.html#metrics-index-json

func MetricsIndexResponse

func MetricsIndexResponse(metricNames []string, jsonp string) string

func RenderHandler

func RenderHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

RenderHandler implements /render endpoint from Graphite Render API.

See https://graphite.readthedocs.io/en/stable/render_api.html

func RenderJSONResponse

func RenderJSONResponse(nextSeries nextSeriesFunc, jsonp string) string

func StreamMetricsExpandResponseByQuery

func StreamMetricsExpandResponseByQuery(qw422016 *qt422016.Writer, m map[string][]string, jsonp string)

func StreamMetricsExpandResponseFlat

func StreamMetricsExpandResponseFlat(qw422016 *qt422016.Writer, paths []string, jsonp string)

func StreamMetricsFindResponse

func StreamMetricsFindResponse(qw422016 *qt422016.Writer, paths []string, delimiter, format string, addWildcards bool, jsonp string)

func StreamMetricsIndexResponse

func StreamMetricsIndexResponse(qw422016 *qt422016.Writer, metricNames []string, jsonp string)

func StreamRenderJSONResponse

func StreamRenderJSONResponse(qw422016 *qt422016.Writer, nextSeries nextSeriesFunc, jsonp string)

func StreamTagValuesResponse

func StreamTagValuesResponse(qw422016 *qt422016.Writer, tagName string, tagValues []string)

func StreamTagsAutoCompleteResponse

func StreamTagsAutoCompleteResponse(qw422016 *qt422016.Writer, ss []string, jsonp string)

func StreamTagsFindSeriesResponse

func StreamTagsFindSeriesResponse(qw422016 *qt422016.Writer, paths []string)

func StreamTagsResponse

func StreamTagsResponse(qw422016 *qt422016.Writer, tags []string)

func StreamTagsTagMultiSeriesResponse

func StreamTagsTagMultiSeriesResponse(qw422016 *qt422016.Writer, canonicalPaths []string, isJSONResponse bool)

func TagValuesHandler

func TagValuesHandler(startTime time.Time, tagName string, w http.ResponseWriter, r *http.Request) error

TagValuesHandler implements /tags/<tag_name> endpoint from Graphite Tags API.

See https://graphite.readthedocs.io/en/stable/tags.html#exploring-tags

func TagValuesResponse

func TagValuesResponse(tagName string, tagValues []string) string

func TagsAutoCompleteResponse

func TagsAutoCompleteResponse(ss []string, jsonp string) string

func TagsAutoCompleteTagsHandler

func TagsAutoCompleteTagsHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsAutoCompleteTagsHandler implements /tags/autoComplete/tags endpoint from Graphite Tags API.

See https://graphite.readthedocs.io/en/stable/tags.html#auto-complete-support

func TagsAutoCompleteValuesHandler

func TagsAutoCompleteValuesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsAutoCompleteValuesHandler implements /tags/autoComplete/values endpoint from Graphite Tags API.

See https://graphite.readthedocs.io/en/stable/tags.html#auto-complete-support

func TagsDelSeriesHandler

func TagsDelSeriesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsDelSeriesHandler implements /tags/delSeries handler.

See https://graphite.readthedocs.io/en/stable/tags.html#removing-series-from-the-tagdb

func TagsFindSeriesHandler

func TagsFindSeriesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsFindSeriesHandler implements /tags/findSeries endpoint from Graphite Tags API.

See https://graphite.readthedocs.io/en/stable/tags.html#exploring-tags

func TagsFindSeriesResponse

func TagsFindSeriesResponse(paths []string) string

func TagsHandler

func TagsHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsHandler implements /tags endpoint from Graphite Tags API.

See https://graphite.readthedocs.io/en/stable/tags.html#exploring-tags

func TagsResponse

func TagsResponse(tags []string) string

func TagsTagMultiSeriesHandler

func TagsTagMultiSeriesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsTagMultiSeriesHandler implements /tags/tagMultiSeries handler.

See https://graphite.readthedocs.io/en/stable/tags.html#adding-series-to-the-tagdb

func TagsTagMultiSeriesResponse

func TagsTagMultiSeriesResponse(canonicalPaths []string, isJSONResponse bool) string

func TagsTagSeriesHandler

func TagsTagSeriesHandler(startTime time.Time, w http.ResponseWriter, r *http.Request) error

TagsTagSeriesHandler implements /tags/tagSeries handler.

See https://graphite.readthedocs.io/en/stable/tags.html#adding-series-to-the-tagdb

func WriteMetricsExpandResponseByQuery

func WriteMetricsExpandResponseByQuery(qq422016 qtio422016.Writer, m map[string][]string, jsonp string)

func WriteMetricsExpandResponseFlat

func WriteMetricsExpandResponseFlat(qq422016 qtio422016.Writer, paths []string, jsonp string)

func WriteMetricsFindResponse

func WriteMetricsFindResponse(qq422016 qtio422016.Writer, paths []string, delimiter, format string, addWildcards bool, jsonp string)

func WriteMetricsIndexResponse

func WriteMetricsIndexResponse(qq422016 qtio422016.Writer, metricNames []string, jsonp string)

func WriteRenderJSONResponse

func WriteRenderJSONResponse(qq422016 qtio422016.Writer, nextSeries nextSeriesFunc, jsonp string)

func WriteTagValuesResponse

func WriteTagValuesResponse(qq422016 qtio422016.Writer, tagName string, tagValues []string)

func WriteTagsAutoCompleteResponse

func WriteTagsAutoCompleteResponse(qq422016 qtio422016.Writer, ss []string, jsonp string)

func WriteTagsFindSeriesResponse

func WriteTagsFindSeriesResponse(qq422016 qtio422016.Writer, paths []string)

func WriteTagsResponse

func WriteTagsResponse(qq422016 qtio422016.Writer, tags []string)

func WriteTagsTagMultiSeriesResponse

func WriteTagsTagMultiSeriesResponse(qq422016 qtio422016.Writer, canonicalPaths []string, isJSONResponse bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL