resourcegraph

package
v0.0.0-testrgm3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 21, 2023 License: AGPL-3.0 Imports: 18 Imported by: 0

Documentation

Index

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
}

AzureResourceGraphDatasource calls the Azure Resource Graph API's

func (*AzureResourceGraphDatasource) ExecuteTimeSeriesQuery

func (e *AzureResourceGraphDatasource) ExecuteTimeSeriesQuery(ctx context.Context, logger log.Logger, originalQueries []backend.DataQuery, dsInfo types.DatasourceInfo, client *http.Client, url string, tracer tracing.Tracer) (*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)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL