resourcegraph

package
v11.1.4-modfix Latest Latest
Warning

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

Go to latest
Published: Aug 20, 2024 License: AGPL-3.0 Imports: 19 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
	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

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