Documentation ¶
Index ¶
- type AdxClient
- type Client
- func (c *Client) ARGClusterRequest(ctx context.Context, payload models.ARGRequestPayload, ...) ([]models.ClusterOption, error)
- func (c *Client) KustoRequest(ctx context.Context, clusterUrl string, path string, ...) (*models.TableResponse, error)
- func (c *Client) TestARGsRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, ...) error
- func (c *Client) TestKustoRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, ...) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AdxClient ¶
type AdxClient interface { TestKustoRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, properties *models.Properties, additionalHeaders map[string]string) error TestARGsRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, properties *models.Properties, additionalHeaders map[string]string) error KustoRequest(ctx context.Context, cluster string, url string, payload models.RequestPayload, userTrackingEnabled bool) (*models.TableResponse, error) ARGClusterRequest(ctx context.Context, payload models.ARGRequestPayload, additionalHeaders map[string]string) ([]models.ClusterOption, error) }
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is an http.Client used for API requests.
func New ¶
func New(ctx context.Context, instanceSettings *backend.DataSourceInstanceSettings, dsSettings *models.DatasourceSettings, azureSettings *azsettings.AzureSettings, credentials azcredentials.AzureCredentials) (*Client, error)
NewClient creates a Grafana Plugin SDK Go Http Client
func (*Client) ARGClusterRequest ¶
func (c *Client) ARGClusterRequest(ctx context.Context, payload models.ARGRequestPayload, additionalHeaders map[string]string) ([]models.ClusterOption, error)
func (*Client) KustoRequest ¶
func (c *Client) KustoRequest(ctx context.Context, clusterUrl string, path string, payload models.RequestPayload, userTrackingEnabled bool) (*models.TableResponse, error)
KustoRequest executes a Kusto Query language request to Azure's Data Explorer V1 REST API and returns a TableResponse. If there is a query syntax error, the error message inside the API's JSON error response is returned as well (if available).
func (*Client) TestARGsRequest ¶
func (c *Client) TestARGsRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, properties *models.Properties, additionalHeaders map[string]string) error
func (*Client) TestKustoRequest ¶
func (c *Client) TestKustoRequest(ctx context.Context, datasourceSettings *models.DatasourceSettings, properties *models.Properties, additionalHeaders map[string]string) error
TestKustoRequest handles a data source test request in Grafana's Datasource configuration UI.
Click to show internal directories.
Click to hide internal directories.