Documentation ¶
Index ¶
- Constants
- type AzureResourceGraphDatasource
- func (e *AzureResourceGraphDatasource) ExecuteTimeSeriesQuery(ctx context.Context, originalQueries []backend.DataQuery, ...) (*backend.QueryDataResponse, error)
- func (e *AzureResourceGraphDatasource) ResourceRequest(rw http.ResponseWriter, req *http.Request, cli *http.Client) (http.ResponseWriter, error)
- type AzureResourceGraphQuery
- type AzureResourceGraphResponse
Constants ¶
View Source
const ArgAPIVersion = "2021-06-01-preview"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AzureResourceGraphDatasource ¶
type AzureResourceGraphDatasource struct { Proxy types.ServiceProxy Logger log.Logger }
AzureResourceGraphDatasource calls the Azure Resource Graph API's
func (*AzureResourceGraphDatasource) ExecuteTimeSeriesQuery ¶
func (e *AzureResourceGraphDatasource) ExecuteTimeSeriesQuery(ctx context.Context, originalQueries []backend.DataQuery, dsInfo types.DatasourceInfo, client *http.Client, url string, fromAlert bool) (*backend.QueryDataResponse, error)
executeTimeSeriesQuery does the following: 1. builds 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 (*AzureResourceGraphDatasource) ResourceRequest ¶
func (e *AzureResourceGraphDatasource) ResourceRequest(rw http.ResponseWriter, req *http.Request, cli *http.Client) (http.ResponseWriter, error)
type AzureResourceGraphQuery ¶
type AzureResourceGraphQuery struct { RefID string ResultFormat string URL string JSON json.RawMessage InterpolatedQuery string TimeRange backend.TimeRange QueryType string }
AzureResourceGraphQuery is the query request that is built from the saved values for from the UI
type AzureResourceGraphResponse ¶
type AzureResourceGraphResponse struct {
Data types.AzureResponseTable `json:"data"`
}
AzureResourceGraphResponse is the json response object from the Azure Resource Graph Analytics API.
Click to show internal directories.
Click to hide internal directories.