2017-02-01 3 views
1

https://management.azure.com/subscriptions/ {subsriptionid}/resourceGroups/{リソースグループ} /providers/Microsoft.Logic/workflows/ {work flow name}/metricDefinitions?api-バージョン= 2014-04-01 & $ filter = 私は上記のURLを試していますが、メトリクスの定義を見つけることができません。しかし、他のすべてのデータファクトリの場合、私はその指標を見つけることができます。Azureロジックアプリケーションのメトリック定義の検索方法は次のとおりです。

答えて

1

Azure Logic AppなどのAzureリソースに関連する統計情報と統計情報を取得するには、Azure Monitor REST APIを使用する必要があります。

APIリファレンス: List metrics definitions for a resource with Azure Monitor REST API

AzureのロジックのApp、以下のサンプルREST APIを使用して問題のGETリクエストのメトリックの定義を取得するため。

GET https://management.azure.com/subscriptions/{subscription_id}/resourceGroups/{resource_group_name}/providers/Microsoft.Logic/workflows/{logic_app_name}/providers/microsoft.insights/metricdefinitions?api-version={api-version}&$filter={filter} 

サンプル応答:

... 
     "name": { 
     "value": "RunsStarted", 
     "localizedValue": "Runs Started" 
     }, 
     "startTime": "0001-01-01T00:00:00Z", 
     "endTime": "0001-01-01T00:00:00Z", 
     "unit": "Count", 
     "primaryAggregationType": "Total", 
     "metricAvailabilities": [ 
     { 
      "timeGrain": "PT1M", 
      "retention": "P30D" 
     }, 
     { 
      "timeGrain": "PT1H", 
      "retention": "P30D" 
     } 
     ], 
... 

注:テスト済みのAPIバージョン= 2016年3月1日

+0

ありがとうございました... – Koderzzzz

+1

これが助けてくれて助けてくれてありがとうございましたら – juvchan

+0

助けてもらえますが、私はテーブルエンドポイントとテーブル情報を手に入れることができません私には時間の穀物と保持力しか与えませんでした。 – Koderzzzz

1

で期待通りAzureのロジックAppのメトリック値を取得するために働いて、GETを作りますREST APIによるリクエスト。

https://management.azure.com/subscriptions/ {0}/resourceGroups/{1} {2} /providers/Microsoft.Logic/workflows/ /providers/microsoft.insights/metrics?api-version=2016-06-01 & $フィルター= {フィルタあなたがメトリックから得たいもののように}

関連する問題