Documentation ¶
Index ¶
- type BoolWrapper
- type DSoptions
- type DataOperations
- type Downsample
- type EsNested
- type EsNestedQuery
- type EsRegexp
- type EsRespHitsMeta
- type EsRespHitsMetric
- type EsRespHitsTag
- type EsRespHitsTagKey
- type EsRespHitsTagValue
- type EsRespHitsWrapperMeta
- type EsRespHitsWrapperMetric
- type EsRespHitsWrapperTag
- type EsRespHitsWrapperTagKey
- type EsRespHitsWrapperTagValue
- type EsRespShards
- type EsResponseMeta
- type EsResponseMetric
- type EsResponseTag
- type EsResponseTagKey
- type EsResponseTagValue
- type ExpParse
- type ExpQuery
- type FilterValueOperation
- type Key
- type Merge
- type MetaInfo
- type MetricName
- type OperatorWrapper
- type Plot
- 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, _ 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) GetGroups(filters []structs.TSDBfilter, tsobs []TSDBobj) (groups [][]TSDBobj)
- func (plot *Plot) GetTextSeries(keyspace string, keys []string, start, end int64, mergeType string, ...) (serie TST, gerr gobol.Error)
- func (plot *Plot) GetTimeSeries(keyspace string, keys []string, start, end int64, opers structs.DataOperations, ...) (serie TS, gerr gobol.Error)
- func (plot Plot) ListMeta(keyspace, esType, 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) ListMetrics(keyspace, esType, metricName string, size, from int64) ([]string, int, gobol.Error)
- 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) ListPoints(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot Plot) ListTagKey(keyspace, tagKname string, size, from int64) ([]string, int, gobol.Error)
- func (plot Plot) ListTagValue(keyspace, tagVname string, size, from int64) ([]string, int, gobol.Error)
- func (plot Plot) ListTags(keyspace, esType, tagKey string, size, from int64) ([]string, int, gobol.Error)
- 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) Lookup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) MetaFilterOpenTSDB(keyspace, id, metric string, filters []structs.TSDBfilter, size int64) ([]TSDBobj, int, gobol.Error)
- func (plot *Plot) MetaOpenTSDB(keyspace, id, metric string, tags map[string][]string, size, from int64) ([]TSDBobj, int, gobol.Error)
- func (plot *Plot) Query(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- func (plot *Plot) Suggest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
- type QueryWrapper
- type RateOperation
- type Response
- type Series
- type SeriesType
- type TS
- type TSDBfilter
- type TSDBlookup
- type TSDBobj
- type TSDBrateOptions
- type TSDBresponse
- type TSDBresponses
- type TSMarshaler
- type TST
- type TSmeta
- type Tag
- type TagKey
- type TagValue
- type Term
- type TsMetaInfo
- type TsQuery
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BoolWrapper ¶
type BoolWrapper struct {
Bool OperatorWrapper `json:"bool"`
}
type DataOperations ¶
type DataOperations struct { Downsample Downsample Merge string Rate RateOperation Order []string FilterValue FilterValueOperation }
type Downsample ¶
type EsNested ¶
type EsNested struct { Path string `json:"path"` ScoreMode string `json:"score_mode,omitempty"` Query BoolWrapper `json:"filter"` }
type EsNestedQuery ¶
type EsNestedQuery struct {
Nested EsNested `json:"nested"`
}
type EsRespHitsMeta ¶
type EsRespHitsMetric ¶
type EsRespHitsTag ¶
type EsRespHitsTagKey ¶
type EsRespHitsTagValue ¶
type EsRespHitsWrapperMeta ¶
type EsRespHitsWrapperMeta struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []EsRespHitsMeta `json:"hits"` }
type EsRespHitsWrapperMetric ¶
type EsRespHitsWrapperMetric struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []EsRespHitsMetric `json:"hits"` }
type EsRespHitsWrapperTag ¶
type EsRespHitsWrapperTag struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []EsRespHitsTag `json:"hits"` }
type EsRespHitsWrapperTagKey ¶
type EsRespHitsWrapperTagKey struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []EsRespHitsTagKey `json:"hits"` }
type EsRespHitsWrapperTagValue ¶
type EsRespHitsWrapperTagValue struct { Total int `json:"total"` MaxScore float32 `json:"max_score"` Hits []EsRespHitsTagValue `json:"hits"` }
type EsRespShards ¶
type EsResponseMeta ¶
type EsResponseMeta struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards EsRespShards `json:"_shards"` Hits EsRespHitsWrapperMeta `json:"hits"` }
type EsResponseMetric ¶
type EsResponseMetric struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards EsRespShards `json:"_shards"` Hits EsRespHitsWrapperMetric `json:"hits"` }
type EsResponseTag ¶
type EsResponseTag struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards EsRespShards `json:"_shards"` Hits EsRespHitsWrapperTag `json:"hits"` }
type EsResponseTagKey ¶
type EsResponseTagKey struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards EsRespShards `json:"_shards"` Hits EsRespHitsWrapperTagKey `json:"hits"` }
type EsResponseTagValue ¶
type EsResponseTagValue struct { Took int `json:"took"` TimedOut bool `json:"timed_out"` Shards EsRespShards `json:"_shards"` Hits EsRespHitsWrapperTagValue `json:"hits"` }
type ExpParse ¶
type FilterValueOperation ¶
type MetricName ¶
type MetricName struct {
Name string `json:"name"`
}
type OperatorWrapper ¶
type OperatorWrapper struct { Must []interface{} `json:"must,omitempty"` MustNot []interface{} `json:"must_not,omitempty"` Should []interface{} `json:"should,omitempty"` }
type Plot ¶
type Plot struct { MaxTimeseries int LogQueryThreshold int // contains filtered or unexported fields }
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, _ 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) 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) ListMetrics ¶
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) ListPoints ¶
func (plot *Plot) ListPoints(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (Plot) ListTagKey ¶
func (Plot) ListTagValue ¶
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) Lookup ¶
func (plot *Plot) Lookup(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) MetaFilterOpenTSDB ¶
func (*Plot) MetaOpenTSDB ¶
func (*Plot) Query ¶
func (plot *Plot) Query(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
func (*Plot) Suggest ¶
func (plot *Plot) Suggest(w http.ResponseWriter, r *http.Request, ps httprouter.Params)
type QueryWrapper ¶
type QueryWrapper struct { Size int64 `json:"size,omitempty"` From int64 `json:"from,omitempty"` Query BoolWrapper `json:"filter"` Fields []string `json:"fields,omitempty"` }
type RateOperation ¶
type RateOperation struct { Enabled bool Options TSDBrateOptions }
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)
type TSMarshaler ¶
type TSMarshaler struct {
// contains filtered or unexported fields
}
TSMarshaler defines how points are returned by the rest functions
func (*TSMarshaler) MarshalJSON ¶
func (m *TSMarshaler) MarshalJSON() ([]byte, error)
MarshalJSON implements the Marshaler interface
type TSmeta ¶
type TsMetaInfo ¶
Click to show internal directories.
Click to hide internal directories.