Skip to main content

recommendations_history_for_hosting_environments

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

Overview

Namerecommendations_history_for_hosting_environments
TypeResource
Idazure.app_service.recommendations_history_for_hosting_environments

Fields

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringResource Id.
namestringResource Name.
kindstringKind of resource.
propertiesobjectRecommendation resource specific properties
typestringResource type.

Methods

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
listselectresourceGroupName, hostingEnvironmentName, subscriptionIdexpiredOnly, $filterDescription for Get past recommendations for an app, optionally specified by the time range.

Parameters

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
hostingEnvironmentNamestringName of the hosting environment.
resourceGroupNamestringName of the resource group to which the resource belongs.
subscriptionIdstringYour Azure subscription ID. This is a GUID-formatted string (e.g. 00000000-0000-0000-0000-000000000000).
$filterstringFilter is specified by using OData syntax. Example: $filter=channel eq 'Api' or channel eq 'Notification' and startTime eq 2014-01-01T00:00:00Z and endTime eq 2014-12-31T23:59:59Z and timeGrain eq duration'[PT1H|PT1M|P1D]
expiredOnlybooleanSpecify false to return all recommendations. The default is true, which returns only expired recommendations.

SELECT examples

Description for Get past recommendations for an app, optionally specified by the time range.

SELECT
id,
name,
kind,
properties,
type
FROM azure.app_service.recommendations_history_for_hosting_environments
WHERE resourceGroupName = '{{ resourceGroupName }}' -- required
AND hostingEnvironmentName = '{{ hostingEnvironmentName }}' -- required
AND subscriptionId = '{{ subscriptionId }}' -- required
AND expiredOnly = '{{ expiredOnly }}'
AND $filter = '{{ $filter }}'
;