を返しますがここでhereAzureの流暢API - AppServicePlanOperations.ListMetricsWithHttpMessagesAsyncは、このメソッドのドキュメントをInternalServerError
を見つけることができる私のコードです:
var appServiceManager = AppServiceManager.Authenticate(credentials, subscriptionId);
var filter = "(name.value eq 'CpuPercentage') and startTime eq '2017-10-06T08:00:00Z' and endTime eq '2017-10-06T09:00:00Z' and timeGrain eq duration'PT1H'";
var metrics = appServiceManager.AppServicePlans.Inner.ListMetricsWithHttpMessagesAsync("myResourceGroupName", "myAppServicePlanName", false, filter).Result;
これは私が得る唯一の詳細な例外です:
1つ以上のエラーが発生しました。 (操作は無効なステータスコードを返し「InternalServerError」)---> Microsoft.Rest.Azure.CloudException:操作は無効なステータスコードを返し「InternalServerError」
ドキュメントはfilter
が、それは(ありませんこれはオプションであることを述べています私がnull
を渡すと私はBadRequestを取得します)。私は今、1つを提供しているし、今は内部サーバーのエラーをスローします。
azure-sdk-for-net
レポで問題が発生しましたが、私がfilter
文字列に間違いをしていると他の人に見てもらいたいと思っています。
感謝トム。私はあなたの発見と一緒に遊ぶつもりです、そして、それが私のニーズを満たすなら、私はあなたの答えを受け入れます – AMoghrabi