Skip to main content

predictive_metrics

Creates, updates, deletes, gets or lists a predictive_metrics resource.

Overview

Namepredictive_metrics
TypeResource
Idazure.monitor.predictive_metrics

Fields

NameDatatypeDescription
dataarraythe value of the collection.
intervalstringThe interval (window size) for which the metric data was returned in. This may be adjusted in the future and returned back from what was originally requested. This is not present if a metadata request was made.
metricNamestringThe metrics being queried
targetResourceIdstringresource of the predictive metric.
timespanstringThe timespan for which the data was retrieved. Its value consists of two datetimes concatenated, separated by '/'. This may be adjusted in the future and returned back from what was originally requested.

Methods

NameAccessible byRequired ParamsDescription
getSELECTaggregation, autoscaleSettingName, interval, metricName, resourceGroupName, subscriptionId, timespanget predictive autoscale metric future data

SELECT examples

get predictive autoscale metric future data

SELECT
data,
interval,
metricName,
targetResourceId,
timespan
FROM azure.monitor.predictive_metrics
WHERE aggregation = '{{ aggregation }}'
AND autoscaleSettingName = '{{ autoscaleSettingName }}'
AND interval = '{{ interval }}'
AND metricName = '{{ metricName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND subscriptionId = '{{ subscriptionId }}'
AND timespan = '{{ timespan }}';