Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AnnotationsResponse ¶
type AnnotationsResponse struct {
Annotations []grafana.Annotation
}
AnnotationsResponse is an implementation of the grafana.AnnotationsResponse interface which captures the values passed to its method calls.
func (*AnnotationsResponse) WriteAnnotation ¶
func (res *AnnotationsResponse) WriteAnnotation(a grafana.Annotation)
WriteAnnotation satisfies the grafana.AnnotationsResponse interface.
type QueryResponse ¶
type QueryResponse struct {
// Results is a list of values which are either of type Timeserie or Table.
Results []interface{}
}
QueryResponse is an implementation of the grafana.QueryResponse interface which captures the values passed to its method calls.
func (*QueryResponse) Table ¶
func (res *QueryResponse) Table(columns ...grafana.Column) grafana.TableWriter
Table satisfies the grafana.QueryResponse interface.
func (*QueryResponse) Timeserie ¶
func (res *QueryResponse) Timeserie(target string) grafana.TimeserieWriter
Timeserie satisfies the grafana.QueryResponse interface.
type SearchResponse ¶
type SearchResponse struct { Targets []string Values []interface{} }
SearchResponse is an implementation of the grafana.SearchResponse interface which captures the values passed to its method calls.
func (*SearchResponse) WriteTarget ¶
func (res *SearchResponse) WriteTarget(target string)
WriteTarget satisfies the grafana.SearchResponse interface.
func (*SearchResponse) WriteTargetValue ¶
func (res *SearchResponse) WriteTargetValue(target string, value interface{})
WriteTargetValue satisfies the grafana.SearchResponse interface.