Skip to content

Commit 8638921

Browse files
committed
Keeping argument MaxEvents and adding MaxRecords as its alias in Gte-AzureRmLog cmdlet.
1 parent 0a636b5 commit 8638921

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/ResourceManager/Insights/Commands.Insights/ActivityLogs/GetAzureRmLogCommand.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,9 +93,9 @@ public class GetAzureRmLogCommand : LogsCmdletBase
9393
/// Gets or sets the max number of records to fetch parameter of the cmdlet
9494
/// </summary>
9595
[Parameter(ValueFromPipelineByPropertyName = true, HelpMessage = "The maximum number of records to fetch. Alias: MaxEvents for backwards compatibility")]
96-
[Alias("MaxEvents")]
96+
[Alias("MaxRecords")]
9797
[ValidateNotNullOrEmpty]
98-
public virtual int MaxRecords { get; set; }
98+
public virtual int MaxEvents { get; set; }
9999

100100
/// <summary>
101101
/// Process the parameters defined by this class (a.k.a. particular parameters)
@@ -104,7 +104,7 @@ public class GetAzureRmLogCommand : LogsCmdletBase
104104
/// <returns>The query filter with the conditions for particular parameters added</returns>
105105
protected override string ProcessParticularParameters(string currentQueryFilter)
106106
{
107-
this.SetMaxEventsIfPresent(currentQueryFilter, this.MaxRecords);
107+
this.SetMaxEventsIfPresent(currentQueryFilter, this.MaxEvents);
108108

109109
string extendedQuery = this.AddConditionIfPResent(currentQueryFilter, "correlationId", this.CorrelationId);
110110
extendedQuery = this.AddConditionIfPResent(extendedQuery, "resourceGroupName", this.ResourceGroup);

src/ResourceManager/Insights/Commands.Insights/help/Get-AzureRmLog.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -259,14 +259,14 @@ Accept pipeline input: True (ByPropertyName)
259259
Accept wildcard characters: False
260260
```
261261
262-
### -MaxRecords
262+
### -MaxEvents
263263
Specifies the total number of records to fetch for the specified filter.
264264
The default value is 1000 and the maximum value accepted is 100000. Negative values and 0 are ignored and the default value will be used.
265265
266266
```yaml
267267
Type: Int32
268268
Parameter Sets: (All)
269-
Aliases: MaxEvents
269+
Aliases: MaxRecords
270270

271271
Required: False
272272
Position: Named

0 commit comments

Comments
 (0)