predictive_metrics
Creates, updates, deletes, gets or lists a predictive_metrics
resource.
Overview
Name | predictive_metrics |
Type | Resource |
Id | azure.monitor.predictive_metrics |
Fields
Name | Datatype | Description |
---|---|---|
data | array | the value of the collection. |
interval | string | The 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. |
metricName | string | The metrics being queried |
targetResourceId | string | resource of the predictive metric. |
timespan | string | The 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
Name | Accessible by | Required Params | Description |
---|---|---|---|
get | SELECT | aggregation, autoscaleSettingName, interval, metricName, resourceGroupName, subscriptionId, timespan | get 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 }}';