Skip to content
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@ public AzPredictorTelemetryTests(ModelFixture modelFixture)
[InlineData(@"C:\Users\MyName\exe")]
[InlineData(@"az storage")]
[InlineData(@"get")]
[InlineData(@"-StorageAccountKey""xxx""NewAzStorageContainer -context xxx")]
[InlineData(@"-StorageAccountKey""xxx""New-AzStorageContainer -context xxx")]
[InlineData(@"New-AzureStorageContext-StorageAccountName ""xxx"" -StorageAccountKey ""xxx""")]
[InlineData(@"sig=xxxxxxxxxxx/Sensor-Azure")]
public async Task VerifyOnCommandLineAcceptedForOneUnsupportedCommandHistory(string inputData)
{
var expectedTelemetryCount = 2;
Expand Down Expand Up @@ -556,8 +560,12 @@ public async Task VerifyOnCommandLineAcceptedException()
[InlineData("Set-Az", "Set-Az")]
[InlineData("Get-azR", "Get-azR")]
[InlineData("start_of_snippet", "NonVerb-AzResource")]
[InlineData("start_of_snippet", "Get")]
[InlineData("start_of_snippet", "Set-")]
[InlineData("Get", "Get")]
[InlineData("Set-", "Set-")]
[InlineData("start_of_snippet", @"-StorageAccountKey""xxx""NewAzStorageContainer -context xxx")]
[InlineData("start_of_snippet", @"-StorageAccountKey""xxx""New-AzStorageContainer -context xxx")]
[InlineData("start_of_snippet", @"New-AzureStorageContext-StorageAccountName ""xxx"" -StorageAccountKey ""xxx""")]
[InlineData("start_of_snippet", @"sig=xxxxxxxxxxx/Sensor-Azure")]
public void VerifyUserInputInGetSuggestionEvent(string expectedUserInput, string input)
{
var expectedTelemetryCount = 1;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
RootModule = 'Az.Tools.Predictor.psm1'

# Version number of this module.
ModuleVersion = '1.1.0'
ModuleVersion = '1.1.1'

# Supported PSEditions
CompatiblePSEditions = 'Core'
Expand Down
3 changes: 3 additions & 0 deletions tools/Az.Tools.Predictor/Az.Tools.Predictor/ChangeLog.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@
-->
## Upcoming Release

## Version 1.1.1
* Updated data collection mechanism

## Version 1.1.0
* Updated data collection mechanism

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public sealed class GetSuggestionTelemetryData : ITelemetryData
/// <summary>
/// The telemetry property name for "Prediction".
/// </summary>
public const string PropertyNamePrediction = "Prediction";
public const string PropertyNamePrediction = "Prediction2";

/// <summary>
/// The telemetry property name for "SuggestionSessionId".
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public sealed class HistoryTelemetryData : ITelemetryData
/// <summary>
/// The telemetry property name for "Command".
/// </summary>
public const string PropertyNameCommand = "Command";
public const string PropertyNameCommand = "Command2";

/// <summary>
/// The telemetry property name for "Success".
Expand Down
2 changes: 1 addition & 1 deletion tools/Az.Tools.Predictor/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<TargetFramework>net6.0</TargetFramework>
<AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath>
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
<Version>1.1.0</Version>
<Version>1.1.1</Version>
<Authors>Microsoft Corporation</Authors>
<Company>Microsoft Corporation</Company>
<Copyright>Microsoft Corporation. All rights reserved.</Copyright>
Expand Down