C# 클래스 Microsoft.Azure.Commands.Insights.EventCmdletBase

Base class for the Azure Insights SDK EventService Cmdlets
상속: InsightsClientCmdletBase
파일 보기 프로젝트 열기: Azure/azure-powershell

Private Properties

프로퍼티 타입 설명
ProcessGeneralParameters string
ValidateDateTimeRangeAndAdddefaults string

보호된 메소드들

메소드 설명
AddConditionIfPResent ( string currentQueryFilter, string name, string value ) : string

Adds a condition to the query filter based on the give name and the value

GetDefaultQueryTimeRange ( ) : System.TimeSpan

Gets the default query time range

KeepTheRecord ( Microsoft.Azure.Insights.Models.EventData record ) : bool

A predicate to filter in/out the records from original list of records obtained from the SDK.

This method is intended to allow descendants of this class to further filter the results.

An example of this is when the filtering is needed based on Category and ResourceUri at the same time. The SDK does not allow these two fields to be in the query filter togheter. So the call should filter by one and then use this function to filter by the second one.

ProcessParameters ( ) : string

Process the general parameters (i.e. defined in this class) and the particular parameters (i.e. the parameters added by the descendants of this class).

ProcessParticularParameters ( string currentQueryFilter ) : string

Process the parameters defined by the descendants of this class

ProcessRecordInternal ( ) : void

Execute the cmdlet

SetMaxEventsIfPresent ( string currentQueryFilter, string name, int value ) : void

Sets the max number of records to fetch

비공개 메소드들

메소드 설명
ProcessGeneralParameters ( ) : string

Process the parameters defined by this class

ValidateDateTimeRangeAndAdddefaults ( ) : string

Validates that the range of dates (start / end) makes sense, it is not to great (less 15 days), and adds the defaul values if needed

메소드 상세

AddConditionIfPResent() 보호된 메소드

Adds a condition to the query filter based on the give name and the value
protected AddConditionIfPResent ( string currentQueryFilter, string name, string value ) : string
currentQueryFilter string The current query filter
name string The name to be used in the new condition
value string The value to be used in the new condition.If this value is null, the currentQueryFilter is returned unmodified.
리턴 string

GetDefaultQueryTimeRange() 보호된 메소드

Gets the default query time range
protected GetDefaultQueryTimeRange ( ) : System.TimeSpan
리턴 System.TimeSpan

KeepTheRecord() 보호된 메소드

A predicate to filter in/out the records from original list of records obtained from the SDK.

This method is intended to allow descendants of this class to further filter the results.

An example of this is when the filtering is needed based on Category and ResourceUri at the same time. The SDK does not allow these two fields to be in the query filter togheter. So the call should filter by one and then use this function to filter by the second one.

protected KeepTheRecord ( Microsoft.Azure.Insights.Models.EventData record ) : bool
record Microsoft.Azure.Insights.Models.EventData A record from the original list of records obtained from the sdk
리턴 bool

ProcessParameters() 보호된 메소드

Process the general parameters (i.e. defined in this class) and the particular parameters (i.e. the parameters added by the descendants of this class).
protected ProcessParameters ( ) : string
리턴 string

ProcessParticularParameters() 보호된 추상적인 메소드

Process the parameters defined by the descendants of this class
protected abstract ProcessParticularParameters ( string currentQueryFilter ) : string
currentQueryFilter string The current query filter
리턴 string

ProcessRecordInternal() 보호된 메소드

Execute the cmdlet
protected ProcessRecordInternal ( ) : void
리턴 void

SetMaxEventsIfPresent() 보호된 메소드

Sets the max number of records to fetch
protected SetMaxEventsIfPresent ( string currentQueryFilter, string name, int value ) : void
currentQueryFilter string
name string
value int
리턴 void