C# Class Microsoft.Azure.Commands.Insights.Alerts.GetAzureRmAlertHistoryCommand

Inheritance: EventCmdletBase
Mostrar archivo Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Property Type Description

Protected Methods

Method Description
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 EventSource 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.

ProcessParticularParameters ( string currentQueryFilter ) : string

Processes the particular parameters if this cmdlet.

In this case it adds the condition for eventSource to be of a particular value in order to retrive only alert-related events

Method Details

GetDefaultQueryTimeRange() protected method

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

KeepTheRecord() protected method

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 EventSource 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
return bool

ProcessParticularParameters() protected method

Processes the particular parameters if this cmdlet.

In this case it adds the condition for eventSource to be of a particular value in order to retrive only alert-related events

protected ProcessParticularParameters ( string currentQueryFilter ) : string
currentQueryFilter string The current query filter
return string