Documentation
¶
Index ¶
- func CollectMetricData(agg interface{}, timeBeforeGroup bool) ([]insight.MetricData, string)
- func GenerateQuery(metric *insight.Metric) (interface{}, error)
- func InitAPI()
- type FieldsMetadata
- type Function
- type InsightAPI
- func (h *InsightAPI) HandleGetMetadata(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (h *InsightAPI) HandleGetMetricData(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- func (h *InsightAPI) HandleGetPreview(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
- type RenderTemplateContext
- type RenderTemplateRequest
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CollectMetricData ¶
func CollectMetricData(agg interface{}, timeBeforeGroup bool) ([]insight.MetricData, string)
func GenerateQuery ¶
Types ¶
type FieldsMetadata ¶
type FieldsMetadata struct { Aggregatable map[string]elastic.ElasticField Dates map[string]elastic.ElasticField }
type InsightAPI ¶
func (*InsightAPI) HandleGetMetadata ¶
func (h *InsightAPI) HandleGetMetadata(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (*InsightAPI) HandleGetMetricData ¶
func (h *InsightAPI) HandleGetMetricData(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
func (*InsightAPI) HandleGetPreview ¶
func (h *InsightAPI) HandleGetPreview(w http.ResponseWriter, req *http.Request, ps httprouter.Params)
type RenderTemplateContext ¶
type RenderTemplateRequest ¶
type RenderTemplateRequest struct { Contexts []RenderTemplateContext `json:"contexts"` Template string `json:"template"` }
Source Files
¶
Click to show internal directories.
Click to hide internal directories.