Documentation ¶
Index ¶
- type DSoptions
- type DataOperations
- type Downsample
- type ExpParse
- type ExpQuery
- type FilterValueOperation
- type Key
- type Merge
- type MetaInfo
- type MetricName
- type Plot
- func (plot *Plot) DeleteNumberTS(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) DeleteTextTS(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ExpressionCheck(w http.ResponseWriter, expQuery ExpQuery)
- func (plot *Plot) ExpressionCheckGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (plot *Plot) ExpressionCheckPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (plot *Plot) ExpressionCompile(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (plot *Plot) ExpressionExpandGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ExpressionExpandPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ExpressionParseGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
- func (plot *Plot) ExpressionParsePOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ExpressionQueryGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ExpressionQueryPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) FilterMetrics(keyset, metricName string, size int) ([]string, int, gobol.Error)
- func (plot *Plot) FilterTagKeys(keyset, tagKname string, size int) ([]string, int, gobol.Error)
- func (plot *Plot) FilterTagValues(keyset, tagVname string, size int) ([]string, int, gobol.Error)
- func (plot Plot) GetGroups(filters []structs.TSDBfilter, tsobs []TSDBobj) (groups [][]TSDBobj)
- func (plot *Plot) GetTextSeries(ttl int, keys []string, start, end int64, search *regexp.Regexp, keyset string, ...) (TST, uint32, gobol.Error)
- func (plot *Plot) GetTimeSeries(ttl int, keys []string, start, end int64, opers structs.DataOperations, ...) (TS, uint32, gobol.Error)
- func (plot *Plot) ListMeta(keyset, tsType, metric string, tags map[string]string, onlyids bool, ...) ([]TsMetaInfo, int, gobol.Error)
- func (plot *Plot) ListMetaNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListMetaText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListMetricsNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListMetricsText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListNumberTagKeysByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListNumberTagValuesByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListPoints(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListTagsNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListTagsText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListTextTagKeysByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) ListTextTagValuesByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) Lookup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) MetaFilterOpenTSDB(keyset, metric string, filters []structs.TSDBfilter, size int) ([]TSDBobj, int, gobol.Error)
- func (plot *Plot) MetaOpenTSDB(keyset, metric string, tags map[string][]string, size, from int) ([]TSDBobj, int, gobol.Error)
- func (plot *Plot) Query(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) RawDataQuery(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) Suggest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type Pnt
- type Pnts
- type RateOperation
- type RawDataMetadata
- type RawDataNumberPoint
- type RawDataQuery
- type RawDataQueryNumberPoints
- type RawDataQueryNumberResults
- type RawDataQueryTextPoints
- type RawDataQueryTextResults
- type RawDataTextPoint
- type Response
- type Series
- type SeriesType
- type TS
- type TSDBfilter
- type TSDBlookup
- type TSDBobj
- type TSDBrateOptions
- type TSDBresponse
- type TSDBresponses
- type TST
- type TSmeta
- type Tag
- type TagKey
- type TagValue
- type TextPnt
- type TextPnts
- type TsMetaInfo
- type TsQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataOperations ¶
type DataOperations struct { Downsample Downsample Merge string Rate RateOperation Order []string FilterValue FilterValueOperation }
type Downsample ¶
type ExpParse ¶
type FilterValueOperation ¶
type MetricName ¶
type MetricName struct {
Name string `json:"name"`
}
type Plot ¶
type Plot struct { MaxTimeseries int LogQueryTSThreshold int // contains filtered or unexported fields }
func (*Plot) DeleteNumberTS ¶
func (plot *Plot) DeleteNumberTS(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
DeleteNumberTS - delete number serie(s)
func (*Plot) DeleteTextTS ¶
func (plot *Plot) DeleteTextTS(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
DeleteTextTS - delete text serie(s)
func (*Plot) ExpressionCheck ¶
func (plot *Plot) ExpressionCheck(w http.ResponseWriter, expQuery ExpQuery)
func (*Plot) ExpressionCheckGET ¶
func (plot *Plot) ExpressionCheckGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Plot) ExpressionCheckPOST ¶
func (plot *Plot) ExpressionCheckPOST(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Plot) ExpressionCompile ¶
func (plot *Plot) ExpressionCompile(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Plot) ExpressionExpandGET ¶
func (plot *Plot) ExpressionExpandGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ExpressionExpandPOST ¶
func (plot *Plot) ExpressionExpandPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ExpressionParseGET ¶
func (plot *Plot) ExpressionParseGET(w http.ResponseWriter, r *http.Request, _ httprouter.Params)
func (*Plot) ExpressionParsePOST ¶
func (plot *Plot) ExpressionParsePOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ExpressionQueryGET ¶
func (plot *Plot) ExpressionQueryGET(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ExpressionQueryPOST ¶
func (plot *Plot) ExpressionQueryPOST(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) FilterMetrics ¶
func (*Plot) FilterTagKeys ¶
func (*Plot) FilterTagValues ¶
func (Plot) GetGroups ¶
func (plot Plot) GetGroups(filters []structs.TSDBfilter, tsobs []TSDBobj) (groups [][]TSDBobj)
func (*Plot) GetTextSeries ¶
func (*Plot) GetTimeSeries ¶
func (*Plot) ListMetaNumber ¶
func (plot *Plot) ListMetaNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListMetaText ¶
func (plot *Plot) ListMetaText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListMetricsNumber ¶
func (plot *Plot) ListMetricsNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListMetricsText ¶
func (plot *Plot) ListMetricsText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListNumberTagKeysByMetric ¶
func (plot *Plot) ListNumberTagKeysByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListNumberTagKeysByMetric - returns tag keys filtered by metric
func (*Plot) ListNumberTagValuesByMetric ¶
func (plot *Plot) ListNumberTagValuesByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListNumberTagValuesByMetric - returns tag values filtered by metric
func (*Plot) ListPoints ¶
func (plot *Plot) ListPoints(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListPoints - only used on unit tests... must be removed
func (*Plot) ListTagsNumber ¶
func (plot *Plot) ListTagsNumber(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListTagsText ¶
func (plot *Plot) ListTagsText(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) ListTextTagKeysByMetric ¶
func (plot *Plot) ListTextTagKeysByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListTextTagKeysByMetric - returns text tag keys filtered by metric
func (*Plot) ListTextTagValuesByMetric ¶
func (plot *Plot) ListTextTagValuesByMetric(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
ListTextTagValuesByMetric - returns text tag values filtered by metric
func (*Plot) Lookup ¶
func (plot *Plot) Lookup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) MetaFilterOpenTSDB ¶
func (plot *Plot) MetaFilterOpenTSDB(keyset, metric string, filters []structs.TSDBfilter, size int) ([]TSDBobj, int, gobol.Error)
MetaFilterOpenTSDB - creates a metadata query
func (*Plot) MetaOpenTSDB ¶
func (*Plot) Query ¶
func (plot *Plot) Query(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) RawDataQuery ¶
func (plot *Plot) RawDataQuery(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
RawDataQuery - returns the raw query
func (*Plot) Suggest ¶
func (plot *Plot) Suggest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
type RateOperation ¶
type RateOperation struct { Enabled bool Options TSDBrateOptions }
type RawDataMetadata ¶
RawDataMetadata - the raw data (metadata only)
type RawDataNumberPoint ¶
RawDataNumberPoint - represents a raw number point result
type RawDataQuery ¶
type RawDataQuery struct { RawDataMetadata Type string `json:"type"` Since string `json:"since"` Until string `json:"until"` EstimateSize bool `json:"estimateSize"` }
RawDataQuery - the raw data query JSON
type RawDataQueryNumberPoints ¶
type RawDataQueryNumberPoints struct { Metadata RawDataMetadata `json:"metadata"` Values []RawDataNumberPoint `json:"points"` }
RawDataQueryNumberPoints - the metadata and value results
type RawDataQueryNumberResults ¶
type RawDataQueryNumberResults struct { Results []RawDataQueryNumberPoints `json:"results"` Total int `json:"total"` }
RawDataQueryNumberResults - the final raw query number results
type RawDataQueryTextPoints ¶
type RawDataQueryTextPoints struct { Metadata RawDataMetadata `json:"metadata"` Texts []RawDataTextPoint `json:"points"` }
RawDataQueryTextPoints - the metadata and text results
type RawDataQueryTextResults ¶
type RawDataQueryTextResults struct { Results []RawDataQueryTextPoints `json:"results"` Total int `json:"total"` }
RawDataQueryTextResults - the final raw query text results
type RawDataTextPoint ¶
RawDataTextPoint - represents a raw text point result
type Response ¶
type Response struct { TotalRecords int `json:"totalRecords,omitempty"` Payload interface{} `json:"payload,omitempty"` Message interface{} `json:"message,omitempty"` }
type Series ¶
type Series struct { Text interface{} `json:"text,omitempty"` Trend interface{} `json:"trend,omitempty"` Points interface{} `json:"points,omitempty"` }
type SeriesType ¶
type TSDBfilter ¶
type TSDBlookup ¶
type TSDBrateOptions ¶
type TSDBresponse ¶
type TSDBresponses ¶
type TSDBresponses []TSDBresponse
func (TSDBresponses) Len ¶
func (r TSDBresponses) Len() int
func (TSDBresponses) Less ¶
func (r TSDBresponses) Less(i, j int) bool
func (TSDBresponses) Swap ¶
func (r TSDBresponses) Swap(i, j int)