Skip to content
This repository was archived by the owner on Jun 5, 2025. It is now read-only.

Conversation

@bbonaby
Copy link
Contributor

@bbonaby bbonaby commented Apr 17, 2024

Summary of the pull request

This PR adds the necessary telemetry events to get the success/failure of the following environment operations:

  1. Start compute system operation,
  2. ShutDown compute system operation,
  3. Terminate compute system operation,
  4. Delete compute system operation,
  5. Save compute system operation,
  6. Pause compute system operation,
  7. Resume compute system operation,
  8. Restart compute system operation,
  9. CreateSnapshot compute system operation,
  10. ApplyConfiguration to compute system operation.
  11. PinToStartMenu to compute system operation.
  12. PinToTaskBar to compute system operation.

A telemetry event called EnvironmentOperationUserEvent was created with the ProductAndServiceUsage tag as all of these operations are a result of a user interaction.

Two new classes called ComputeSystemOperationStartedData and ComputeSystemOperationCompletedData were created to allow the OperationsViewModel to communicate the start and completion of the operations with the ComputeSystemViewModel class.

Related Issue: #2565

References and relevant issues

Detailed description of the pull request / Additional comments

Validation steps performed

PR checklist

  • Closes #xxx
  • Tests added/passed
  • Documentation updated

@bbonaby bbonaby merged commit 94e8a40 into main Apr 17, 2024
@krschau krschau added this to the Dev Home v0.13 milestone Apr 17, 2024
@bbonaby bbonaby linked an issue Apr 17, 2024 that may be closed by this pull request
private Action? DevHomeAction { get; }

public OperationsViewModel(string name, string icon, Func<string, Task<ComputeSystemOperationResult>> command)
public OperationsViewModel(string name, string icon, Func<string, Task<ComputeSystemOperationResult>> command, ComputeSystemOperations computeSystemOperation)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could have combined this and the other constructor with a parameter default value.

return (_stringResource.GetLocalized(StringResourceKey.ConfigurationUnitSummaryFull, unit.Intent, unit.Type, packageId, unitDescription), packageName);
}

private void LogCompletionTelemetry(TaskFinishedState taskFinishedState)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could directly send the EnvironmentsTelemetryStatus. And using this function at line 382 would be better.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Launching local VM needs UI to show it is doing something.

5 participants