Freigeben über


WebSiteResource.GetHistoryForWebAppRecommendationsAsync Methode

Definition

Beschreibung für Abrufen früherer Empfehlungen für eine App, optional angegeben durch den Zeitbereich.

  • Request Path/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Web/sites/{siteName}/recommendationHistory
  • Vorgang IdRecommendations_ListHistoryForWebApp
public virtual Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceRecommendation> GetHistoryForWebAppRecommendationsAsync (bool? expiredOnly = default, string filter = default, System.Threading.CancellationToken cancellationToken = default);
abstract member GetHistoryForWebAppRecommendationsAsync : Nullable<bool> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceRecommendation>
override this.GetHistoryForWebAppRecommendationsAsync : Nullable<bool> * string * System.Threading.CancellationToken -> Azure.AsyncPageable<Azure.ResourceManager.AppService.Models.AppServiceRecommendation>
Public Overridable Function GetHistoryForWebAppRecommendationsAsync (Optional expiredOnly As Nullable(Of Boolean) = Nothing, Optional filter As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As AsyncPageable(Of AppServiceRecommendation)

Parameter

expiredOnly
Nullable<Boolean>

Geben Sie <code>false</code> an, um alle Empfehlungen zurückzugeben. Der Standardwert ist <code>true</code>, der nur abgelaufene Empfehlungen zurückgibt.

filter
String

Filter wird mithilfe der OData-Syntax angegeben. Beispiel: $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].

cancellationToken
CancellationToken

Das zu verwendende Abbruchtoken.

Gibt zurück

Eine asynchrone Sammlung von, bei der AppServiceRecommendation mehrere Dienstanforderungen zum Durchlaufen verwendet werden können.

Gilt für: