resourcegraph

package
v0.0.85-test Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AddConfigLinks(frame data.Frame, dl string) data.Frame

func GetAzurePortalUrl

func GetAzurePortalUrl(azureCloud string) (string, error)

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, 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
}

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