Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ResponseTableToFrame ¶
func ResponseTableToFrame(table *types.AzureResponseTable) (*data.Frame, error)
ResponseTableToFrame converts an AzureResponseTable to a data.Frame.
Types ¶
type AzureLogAnalyticsDatasource ¶
type AzureLogAnalyticsDatasource struct {
Proxy types.ServiceProxy
}
AzureLogAnalyticsDatasource calls the Azure Log Analytics API's
func (*AzureLogAnalyticsDatasource) ExecuteTimeSeriesQuery ¶
func (e *AzureLogAnalyticsDatasource) ExecuteTimeSeriesQuery(ctx context.Context, originalQueries []backend.DataQuery, dsInfo types.DatasourceInfo, client *http.Client, url string, tracer tracing.Tracer) (*backend.QueryDataResponse, error)
executeTimeSeriesQuery does the following: 1. build the AzureMonitor url and querystring for each query 2. executes each query by calling the Azure Monitor API 3. parses the responses for each query into data frames
func (*AzureLogAnalyticsDatasource) ResourceRequest ¶
func (e *AzureLogAnalyticsDatasource) ResourceRequest(rw http.ResponseWriter, req *http.Request, cli *http.Client)
type AzureLogAnalyticsQuery ¶
type AzureLogAnalyticsQuery struct { RefID string ResultFormat string URL string JSON json.RawMessage Params url.Values Target string TimeRange backend.TimeRange }
AzureLogAnalyticsQuery is the query request that is built from the saved values for from the UI
type AzureLogAnalyticsResponse ¶
type AzureLogAnalyticsResponse struct {
Tables []types.AzureResponseTable `json:"tables"`
}
AzureLogAnalyticsResponse is the json response object from the Azure Log Analytics API.
func (*AzureLogAnalyticsResponse) GetPrimaryResultTable ¶
func (ar *AzureLogAnalyticsResponse) GetPrimaryResultTable() (*types.AzureResponseTable, error)
GetPrimaryResultTable returns the first table in the response named "PrimaryResult", or an error if there is no table by that name.
type LogAnalyticsMeta ¶
type LogAnalyticsMeta struct { ColumnTypes []string `json:"azureColumnTypes"` Subscription string `json:"subscription"` Workspace string `json:"workspace"` EncodedQuery []byte `json:"encodedQuery"` // EncodedQuery is used for deep links. }
LogAnalyticsMeta is a type for the a Frame's Meta's Custom property.