Documentation ¶
Index ¶
- Constants
- type LabelDescriptor
- type Service
- func (s *Service) CallResource(ctx context.Context, req *backend.CallResourceRequest, ...) error
- func (s *Service) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
- func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
Constants ¶
View Source
const ( PreprocessorTypeNone preprocessorType = iota PreprocessorTypeRate PreprocessorTypeDelta )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LabelDescriptor ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func ProvideService ¶
func ProvideService(httpClientProvider httpclient.Provider, tracer tracing.Tracer) *Service
func (*Service) CallResource ¶
func (s *Service) CallResource(ctx context.Context, req *backend.CallResourceRequest, sender backend.CallResourceResponseSender) error
func (*Service) CheckHealth ¶
func (s *Service) CheckHealth(ctx context.Context, req *backend.CheckHealthRequest) (*backend.CheckHealthResult, error)
func (*Service) QueryData ¶
func (s *Service) QueryData(ctx context.Context, req *backend.QueryDataRequest) (*backend.QueryDataResponse, error)
QueryData takes in the frontend queries, parses them into the CloudMonitoring query format executes the queries against the CloudMonitoring API and parses the response into data frames
Source Files ¶
Click to show internal directories.
Click to hide internal directories.