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

Inheritance: EventCmdletBase
Afficher le fichier Open project: Azure/azure-powershell Class Usage Examples

Private Properties

Свойство Type Description

Méthodes protégées

Méthode 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 méthode

Gets the default query time range
protected GetDefaultQueryTimeRange ( ) : System.TimeSpan
Résultat System.TimeSpan

KeepTheRecord() protected méthode

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
Résultat bool

ProcessParticularParameters() protected méthode

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
Résultat string