MonitorExtensions.GetActivityLogs メソッド

定義

アクティビティ ログからのレコードの一覧を提供します。

  • 要求パス/サブスクリプション/{subscriptionId}/providers/Microsoft.Insights/eventtypes/management/values
  • 操作IdActivityLogs_List
public static Azure.Pageable<Azure.ResourceManager.Monitor.Models.EventDataInfo> GetActivityLogs (this Azure.ResourceManager.Resources.SubscriptionResource subscriptionResource, string filter, string select = default, System.Threading.CancellationToken cancellationToken = default);
static member GetActivityLogs : Azure.ResourceManager.Resources.SubscriptionResource * string * string * System.Threading.CancellationToken -> Azure.Pageable<Azure.ResourceManager.Monitor.Models.EventDataInfo>
<Extension()>
Public Function GetActivityLogs (subscriptionResource As SubscriptionResource, filter As String, Optional select As String = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Pageable(Of EventDataInfo)

パラメーター

subscriptionResource
SubscriptionResource

SubscriptionResourceメソッドが実行するインスタンス。

filter
String

収集されるデータのセットを減らします。<br>この引数は必須であり、少なくとも開始日/時刻も必要です。<br>$filter 引数は非常に制限されており、次のパターンのみを許可します。<br>- リソース グループのイベントの一覧表示: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' と eventTimestamp le '2014-07-20T04:36:37.6407898Z' と resourceGroupName eq 'resourceGroupName<'br>- リソースのイベントの一覧表示: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' と eventTimestamp le '2014-07-20T04:36:37.6407898Z' と resourceUri eq 'resourceURI' 。<br>- 時間範囲のサブスクリプションのイベントを一覧表示します:$filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' および eventTimestamp le '2014-07-20T04:36:37.6407898Z' 。<br>- リソース プロバイダーのイベントを一覧表示する: $filter=eventTimestamp ge '2014-07-16T04:36:37.6407898Z' および eventTimestamp le '2014-07-20T04:36:37.6407898Z' と resourceProvider eq 'resourceProviderName'<br>- 関連付け ID のイベントを一覧表示する: $filter=eventTimestamp ge '2014-07-16T04:36:36:37.6407898Z' および eventTimestamp le '2014-07-20T04:36:37.6407898Z' と correlationId eq 'correlationID' 。<br><br>NOTE: 他の構文は使用できません。

select
String

指定されたプロパティのみを使用してイベントをフェッチするために使用されます。<br>$select 引数は、返されるプロパティ名のコンマ区切りのリストです。 使用できる値は、authorizationclaimscorrelationIddescriptioneventDataIdeventNameeventTimestamphttpRequestleveloperationIdoperationNamepropertiesresourceGroupName、resourceProviderNameresourceIdstatussubmissionTimestampsubStatussubscriptionId です。

cancellationToken
CancellationToken

使用する取り消しトークン。

戻り値

反復処理するために複数の EventDataInfo サービス要求を受け取る可能性がある のコレクション。

例外

filter が null です。

適用対象