annotation_query.go 538 B

123456789101112131415161718192021222324
  1. package stackdriver
  2. import (
  3. "context"
  4. "github.com/grafana/grafana/pkg/tsdb"
  5. )
  6. func (e *StackdriverExecutor) executeAnnotationQuery(ctx context.Context, tsdbQuery *tsdb.TsdbQuery) (*tsdb.Response, error) {
  7. result := &tsdb.Response{
  8. Results: make(map[string]*tsdb.QueryResult),
  9. }
  10. _, err := e.buildAnnotationQuery(tsdbQuery)
  11. if err != nil {
  12. return nil, err
  13. }
  14. return result, nil
  15. }
  16. func (e *StackdriverExecutor) buildAnnotationQuery(tsdbQuery *tsdb.TsdbQuery) (*StackdriverQuery, error) {
  17. return &StackdriverQuery{}, nil
  18. }