Documentation ¶
Index ¶
Constants ¶
View Source
const AzureMonitorAPIVersion = "2021-05-01"
Variables ¶
This section is empty.
Functions ¶
func BuildSubscriptionMetricsURL ¶
BuildSubscriptionMetricsURL returns a URL for querying metrics for all resources in a subscription It requires to set a $filter and a region parameter
func MigrateDimensionFilters ¶
func MigrateDimensionFilters(filters []types.AzureMonitorDimensionFilter) []types.AzureMonitorDimensionFilter
Types ¶
type AzureMonitorDatasource ¶
type AzureMonitorDatasource struct {
Proxy types.ServiceProxy
}
AzureMonitorDatasource calls the Azure Monitor API - one of the four API's supported
func (*AzureMonitorDatasource) ExecuteTimeSeriesQuery ¶
func (e *AzureMonitorDatasource) 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. 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 (*AzureMonitorDatasource) ResourceRequest ¶
func (e *AzureMonitorDatasource) ResourceRequest(rw http.ResponseWriter, req *http.Request, cli *http.Client)
Click to show internal directories.
Click to hide internal directories.